Creating a Test Workflow
You create a workflow in Siebel Tools to do the following:
-
Query the Siebel database for the record with the attachment.
-
Convert the integration object and its attachment into a Siebel Message.
-
Read an external XML file (containing an attachment) and convert it into a Siebel Message.
Note: The XML file must use the exact integration object hierarchy as the attachment integration object you created. -
Insert the record into the Siebel database.
To create a test workflow to exchange attachments
-
Create the following workflow:
-
Define the process properties as shown in the following table.
Name Data Type Error Code
String
Error Message
String
Object Id
String
Process Instance Id
String
Siebel Operation Object Id
String
SiebelMessage
Hierarchy
-
The first business service step queries the database using the EAI Siebel Adapter business service with the Query method. This step requires the following input and output arguments:
Input Argument Type Value OutputIntObjectName
Literal
Attachment integration object you created, for example, Account Attachment
PrimaryRowId
Literal
Row ID of the record to which you added an attachment
Property Name Type Output Argument SiebelMessage
Output Argument
SiebelMessage
-
The second business service step writes the integration object hierarchy to an XML file using the EAI XML Write to File business service with the WriteEAIMsg method. This step requires the following input arguments:
Input Argument Type Value FileName
Literal
File to write, for example, d:\temp\AttachmentTest_write.xml
SiebelMessage
Process Property
SiebelMessage
-
The third business service step reads an XML hierarchy and converts it into a Siebel Message using the EAI XML Read From File business service with the ReadEAIMsg method. This step requires the following input and output arguments:
Input Argument Type Value FileName
Literal
File to read, for example, d:\temp\AttachmentTest_read.xml
Note: For testing purposes, you can use a modified form of the file written in the second business step, which will automatically have the correct hierarchy. -
The fourth business service step reads the Siebel Message and inserts the record into the Siebel database using the EAI Siebel Adapter business service with the Insert method. This step requires the following input argument:
Property Name Type Output Argument SiebelMessage
Output Argument
SiebelMessage
Input Argument Type Value SiebelMessage
Process Property
SiebelMessage