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

Defining the process workflow for the Send/Receive mode

To define process workflow for send/receive mode:
1. Create a new business process named, "JMSAdapter_SendReceive."
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
The first three dataslots are used to store the same information as in Tutorial 3. The three new dataslots will be used to confirm the successful delivery of the message and that the information from the "response" is correctly received.
3. When you have defined all the dataslots, click the Diagram content pane tab and create the process workflow by adding the following worksteps.
Figure 15. Process workflow for the Send/Receive mode
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 Confirmation 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 Confirmation workstep to open the Properties view. Open the Fields tab and add the R_ProductID, R_Name, and R_Price dataslots.
6. The SendReceive workstep is performed by the JMS Adapter, and is used to send the message and receive the response.