The JMS Adapter can operate in the following modes:
Send-Only mode. In this mode, the adapter (shown in the figure below as the Send workstep) sends a message to the external system.
Figure 9. Send-Only mode
After the message is sent, the workstep completes and process execution continues without delay.
Send/Receive mode. In this mode, the adapter (shown in Figure 10 as the SendReceive workstep) first sends a JMS message to the external system. After the message is sent, the workstep remains activated until a response is delivered.
Figure 10. Send/Receive mode
When the response is finally received, the adapter extracts the necessary information from the JMS message, the workstep completes and the process execution continues.
Send-Only and Receive-Only mode. This mode is always used in combination of a Send-Only workstep and a subsequent Receive-Only workstep:
Figure 11. Send-Only and Receive-Only workstep
The following procedures are typically implemented for Send-Only / Receive-Only modes.
First, the adapter in the Send workstep composes and sends a message to the external system.
After the message is sent, the workstep completes immediately and the process execution continues.
At some point later in the process, the workflow reaches the workstep (in this case, Receive) that contains an adapter configured in Receive-only mode. If the response from the EIS has been received at the time when this workstep is activated, the adapter extracts the relevant information from the message and the workstep completes immediately. If the response is not yet available at the time the workstep is activated, the Receive workstep will remain in Active state until the message is received.
Receive-Only mode. In this mode, the adapter only receives a message from the external system.
Figure 12. Receive-Only mode
After the message is received, the workstep completes and process execution continues without delay.