Export Employee (MQSeries)
This is a sample workflow process that sends an XML string for an employee to an IBM MQSeries queue.
To review the Export Employee (MQSeries) sample workflow process
Navigate to Administration - Business Process, then Workflow Processes.
Query for Export Employee (MQSeries).
With the Export Employee (MQSeries) workflow process selected, click the Process Properties tab to review the process properties defined for this workflow process.
Workflow process properties are global to the entire workflow. For example, as shown in the following table, the Export Employee (MQSeries) workflow has multiple properties. The Employee Message contains the object as an integration object hierarchy, before conversion. The Employee XML property specifies the Siebel object that has been converted to XML. The Error Code, Error Message, Object Id, and Siebel Operation Object Id properties are included in each workflow by default.
Name Data Type In/Out Default String Employee Message
Hierarchy
In/Out
-
Employee XML
Binary
In/Out
-
Error Code
String
In/Out
-
Error Message
String
In/Out
-
Object Id
String
In/Out
1-548
Siebel Operation Object Id
String
In/Out
-
Note that the Object Id process property is set to 1-548 in the Default String column. This string identifies an actual employee record in the Siebel Database by its Row Id. You can set this workflow to use the active employee record instead of specifying a hard-coded employee number. You can accomplish this by creating a button that invokes this workflow from the Administration - User, then the Employees view, or you can pass the value of the Object Id into the workflow process as an input argument.
Click the Process Designer tab in the lower applet to review the process design for this workflow process.
Double-click the Get Employee step to review its method and arguments.
This step uses the Query method of the EAI Siebel Adapter business service, with the following input arguments to get an instance of an Employee record from the Siebel Database. The Sample Employee integration object describes the structure of the Employee business object and was created using the Integration Object Builder wizard. The other part of the query criteria is the Object Id, which is a process property containing value 1-548.
Input Arguments Type Value Property Name Property Data Type Output Integration Object Name
Literal
Sample Employee
-
-
Object Id
Process Property
-
Object Id
String
The output from this step is passed in the Employee Message output argument as described in the following table.
Property Name Type Output Argument Employee Message
Output Argument
Siebel Message
Double-click the Convert to XML step to review its method and arguments.
This step uses the Property Set to XML method of the EAI XML Converter business service to convert the outbound Siebel Message to XML. The converter stores the outbound Siebel Message in the Employee XML output argument with the following input argument.
Input Arguments Type Property Name Property Data Type Siebel Message
Process Property
Employee Message
Hierarchy
The output from this step is passed in to the Employee XML output argument as shown in the following table.
Property Name Type Value Output Argument Employee XML
Output Argument
-
XML Document
Double-click the Send step to review its method and arguments.
This step invokes the EAI MQSeries Server Transport business service with the Send method to put the XML message onto the MQSeries queue, Employee. The message is represented by the Message Text argument, as shown in the following table.
Input Arguments Type Value Property Name Property Data Type Message Text
Process Property
-
Employee XML
String
Physical Queue Name
Literal
Employee
-
-
Queue Manager Name
Literal
Siebel
-
-
The Queue Manager that handles the request is called Siebel. The XML message is put onto the Employee queue, where it remains until another application retrieves it from the queue.