Bookshelf Home | Contents | Index | Search | PDF |
Business Processes and Rules: Siebel eBusiness Application Integration Volume IV > Defining Workflows for Siebel eAI > Sample Integration Workflows >
Import Employee (MQSeries)
This is a sample workflow process that receives an XML string from an IBM MQSeries queue and updates the Employee instance in the Siebel Database.
To review the import Employee (MQSeries) workflow process
- From the application-level menu, choose View > Site Map > Business Process Administration > Workflow Processes.
- Query for Import Employee (MQSeries) workflow process.
- With the Import Employee (MQSeries) process selected, click the Process Properties tab to review its process properties.
Workflow process properties are global to the entire workflow. For example, as shown in the following table, the Import Employee (MQSeries) workflow has several properties. The Employee Message contains the object as an integration object hierarchy, when converted. The object must be in that format before it can be inserted or updated in the Siebel environment. The Employee XML property defines the MQSeries message as XML recognizable by Siebel applications. The Error Code, Error Message, Object Id, Process Instance Id, and Siebel Operation Object Id properties are included in each workflow by default.
- Click the Process Designer tab in the bottom applet to review the process design for this workflow process.
NOTE: When using the MQSeries Receiver, remember the MQ Receiver task will read the message from the queue and pass it into your workflow process in the <Value> field. This means your workflow process does not need to read the message from the MQSeries Queue. To get the XML string that has been read, you need to create a process property and set its default value as follows: Name=MyXMLStringProperty and Default=<Value>. You should use this process property as the input to the EAI XML Converter business service.
- Double-click the first step after Start to review its method and arguments.
This step uses the Receive method of the EAI MQSeries Server Transport to get the inbound message from the Employee physical queue named in the Physical Queue Name argument. This step uses the following input arguments.
As shown in the following table, the output from this step is put into the Employee XML process property with the assumption that the inbound message is already in XML format.
- Double-click the second step and review its method and arguments.
This step uses the XML to Property Set method of the EAI XML Converter to convert the inbound message to the Siebel business object format. The step uses the following input argument.
Input Arguments Type Property Name Property Data Type XML Document Process Property Employee XML BinaryThe output from this step is passed in the Employee Message output argument as described in the following table.
- Double-click the third step and review its method and arguments.
This step uses the EAI Siebel Adapter business service with the Insert or Update method and the following input argument to update the database.
Input Arguments Type Property Name Property Data Type Siebel Message Process Property Employee Message HierarchyThe EAI Siebel Adapter checks the Siebel Database for an Employee record that matches the current instance of Employee in the Employee Message property. If an Employee record matching the current instance does not exist in the database, the EAI Siebel Adapter inserts the record into the database; otherwise, it updates the existing record with the instance.
Bookshelf Home | Contents | Index | Search | PDF |
Business Processes and Rules: Siebel eBusiness Application Integration Volume IV Published: 18 April 2003 |