Try OpenEdge Now
skip to main content
Managed Adapters Guide
JMS Managed Adapter : Tutorial 3: Using the JMS Adapter in Send-Only and Receive-Only mode : Defining the process workflow for the Send-Only and Receive-Only mode
 

Defining the process workflow for the Send-Only and Receive-Only mode

To use the JMS Adapter in a Send-Only mode for one workstep, and then in a Receive-Only mode for a later workstep:
1. Create a new business process named "JMSAdapter_SendOnly_ReceiveOnly."
2. In the Dataslots content pane tab, define the following dataslots:
Dataslot name
Data type
ProductID
INTEGER
Name
CHARACTER
Price
DECIMAL
R_ProductID
INTEGER
R_Name
CHARACTER
R_Price
DECIMAL
CorrelationID
CHARACTER
The dataslots will be used to store the same information as in Tutorial 1: Using the JMS Adapter in Send-Only mode and Tutorial 2: Using the JMS Adapter in Send/Receive mode. The CorrelationID dataslot will be used to deliver the correlation ID of the outgoing message to the JMS Adapter in the receiving workstep.
3. After defining all the dataslots, click the Diagram tab and create the process workflow as shown in the following figure.
Figure 16. Process workflow with separate Send-Only and Receive-Only modes
4. The ProductInfo workstep is used to supply values for the ProductID, Name, and Price dataslots. Double-click the workstep to open the Properties view. Click the Fields tab, and add these three dataslots.
5. The Send workstep is performed by the JMS Adapter, configured in Send-Only mode. Here, the outgoing message will be posted in JMS adapter queue, and the correlation ID for this message will be stored in a dataslot. Configuring the JMS Adapter is described in Configuring the JMS Adapter for the Send workstep.
6. The Confirmation1 workstep is used to confirm that the message has been sent successfully. Double-click the workstep to open the Properties view. Click the Fields tab, and add the CorrelationID dataslot to this workstep.
7. The Receive workstep is performed again by the JMS Adapter, this time configured in Receive-Only mode. Here, the JMS Adapter will receive the response, using the Correlation ID dataslot to identify the correct message. Configuring the JMS Adapter is described in Configuring the JMS Adapter for the Receive workstep.
8. Finally, the Confirmation2 workstep is used to verify that the response has been received and processed correctly by reading the R_ProductID, R_Name, and R_Price dataslots. The values of these dataslots are retrieved from the "response" message and should match the values that were given in the first workstep. Double-click the Confirmation2 workstep to open its Properties view. Click the Fields tab, and add the R_ProductID, R_Name, and R_Price dataslots.
9. After completing configuration of all human-performed workstep, you can now configure the JMS Adapter worksteps.