Interface Admin: Difference between revisions

From Commander4j
Created page with "The interfacing functionality is very flexible and comes in 2 main parts. The core Commander4j application and its own standard xml interface messages which you can use. However it's likely that you would probably be exporting data from another system in whatever format that provides. To help bridge the gap between two incompatible systems you should consider using a middleware application. Commander4j as a separate free open source [middleware module](https://github.com..."
 
No edit summary
Line 7: Line 7:
An example of a output (outbound) message would be a Production Declaration - a message to an external system to tell it that a pallet has been made.
An example of a output (outbound) message would be a Production Declaration - a message to an external system to tell it that a pallet has been made.
<br><br>
<br><br>
$\color{yellow}{\textsf{Example Production Declaration Message}}$


```
```
<?xml version="1.0" encoding="UTF-8"?>
<?xml version="1.0" encoding="UTF-8"?>
<message>
<message>
     <hostRef>VALIVE</hostRef>
     <hostRef>VALIVE</hostRef>
     <messageRef>384133180125000029 2024-01-25T10:29:05</messageRef>
     <messageRef>384133180125000029 2024-01-25T10:29:05</messageRef>
Line 30: Line 29:
         </productionDeclaration>
         </productionDeclaration>
     </messageData>
     </messageData>
</message>
</message>
```
```
<br>
<br>

Revision as of 09:22, 19 August 2024

The interfacing functionality is very flexible and comes in 2 main parts. The core Commander4j application and its own standard xml interface messages which you can use. However it's likely that you would probably be exporting data from another system in whatever format that provides. To help bridge the gap between two incompatible systems you should consider using a middleware application. Commander4j as a separate free open source [middleware module](https://github.com/C4J/Commander4j-Middleware/releases) which has a number of sample message transformations included within it. You could for example read a CSV file from your ERP solution and use middleware to convert it into an XML message for Commander4j. Likewise you could take an output message from Commander4j and convert it into a flat ascii file for your ERP system.

Click on the [Utilities](https://github.com/C4J/Commander4j/wiki/Utilities) link for a list of associated utilities which may prove useful.

The Interface Admin screen allows you to setup both inbound and outbound messages within Commander4j. An example of a message which might be going into C4J from an external system (inbound) would be Material Master and/or Process Order.

An example of a output (outbound) message would be a Production Declaration - a message to an external system to tell it that a pallet has been made.

```

<?xml version="1.0" encoding="UTF-8"?>
<message>
   <hostRef>VALIVE</hostRef>
   <messageRef>384133180125000029 2024-01-25T10:29:05</messageRef>
   <interfaceType>Production Declaration</interfaceType>
   <messageInformation>SSCC=384133180125000029</messageInformation>
   <interfaceDirection>Input</interfaceDirection>
   <messageDate>2024-01-25T10:29:07</messageDate>
   <messageData>
       <productionDeclaration>
           <SSCC>384133180125000029</SSCC>
           <productionQuantity>0039</productionQuantity>
           <productionUOM>UNI</productionUOM>
           <expiryDate>2025-07-27T00:00:00</expiryDate>
           <productionDate>2024-01-25T10:29:05</productionDate>
           <batch>4025094774</batch>
           <processOrder>094774</processOrder>
           <confirmed>Y</confirmed>
       </productionDeclaration>
   </messageData>
</message>

```

The Interfacing menu options can be accessed using the menu shown below. However you should note that some messages will require additional settings in other screens. Continue reading for more information.

<img width="340" alt="Interface_Admin0" src="https://github.com/C4J/Commander4j/assets/20553038/755021c4-64eb-42cc-a3d0-eabbc0111438">

The Admin screen below allows you to add or remove message types.

<img width="975" alt="Interface_Admin1" src="https://github.com/C4J/Commander4j/assets/20553038/e35dcb01-b75d-4ef7-bab0-fb11dcb83bd6">

If you look at the settings for a message you will see a simple screen which specifies the input or output path where the messages will be located. Most messages will be in XML format which is the most flexible format. The Despatch message can also support EANCOM as shown here.

<img width="706" alt="Interface_Admin2" src="https://github.com/C4J/Commander4j/assets/20553038/96714e9c-7a7a-400b-8583-7a17deab6210">



Some messages will only be produced if they meet additional criteria. If you look at the Locations table for example you will see there are a number of checkbox's which determine of a message will be produced for that location.

<img width="488" alt="Interface_Admin3" src="https://github.com/C4J/Commander4j/assets/20553038/20099e01-231d-4077-85a4-6943cf7beafa">

You can monitor the status of messages using the Interface Log screen.

<img width="1000" alt="Interface_Admin4" src="https://github.com/C4J/Commander4j/assets/20553038/b152e662-3b26-4e4a-9438-35d1cc18b8ea">

The interfaces can be run from within the Desktop application for testing but you would normally run them as a background process (service in Windows). See Install Interface Services

<img width="802" alt="Interfaces_Manual" src="https://github.com/C4J/Commander4j/assets/20553038/0ae63b3a-c0a3-478d-965a-ac422bbb1479">