Creating the Workflow to Receive Messages
After you set up the business service, you create a workflow to receive messages.
To create the new workflow to receive messages
Set up a new workflow in Siebel Tools containing the following steps, as shown in the following image, and give it a unique name such as EAITEST:
Incoming XML
UpdateSiebel
For information about the Business Process Designer, see Siebel Business Process Framework: Workflow Guide.
Create the following process properties:
Name Data Type Default String In/Out Description IncomingXML
Binary
<Value>
In/Out
By creating the IncomingXML process property, anything that is sent as data is placed in this variable. This allows you to then perform a given action on that data. If the POST method was used, then the data sent in the Body is stored in this property. If the GET method was used, then the data sent in the URL is stored in this property.
Account Message
Hierarchy
Not applicable
In/Out
This is hierarchy format of the incoming XML.
<Value>
Binary
Not applicable
In/Out
Used to get the XML string that has been read or converted.
Content-Type
String
text/html
Out
It indicates the content type of the response body. If you want to see the response in the same Web page, then you must set the Default String parameter to text/html.
Set up the Incoming XML step to use the EAI XML Converter with the XMLDocToIntObjHier method. This step converts the message, using the following input and output arguments:
Input Argument Type Property Name Property Data Type <Value>
Process Property
IncomingXML
Hierarchy
Property Name Type Output Argument Account Message
Output Argument
SiebelMessage
Set up the UpdateSiebel step to use the EAI Siebel Adapter with the Insert or the Update method and the following input and output arguments to update the Siebel Database.
Input Argument Type Property Name Property Data Type SiebelMessage
Process Property
Account Message
Hierarchy
Property Name Type Value Output Argument <Value>
Literal
<h1>Update Completed</h1>
Not applicable
Note: The HTTP response for inbound requests is determined by looking at the<Value>
portion of the output property set. HTTP response headers can be set by setting properties on the output property set. If the process properties are set as In/Out (the default), then the values appear as HTTP headers on the HTTP response from the Siebel Server. Set each process property that you do not want as an HTTP header to In or None (the latter if the process property is only for use inside the workflow).Save your workflow and test it using the Workflow Simulator.
For information about the Workflow Simulator, see Siebel Business Process Framework: Workflow Guide.