Integration Platform Technologies: Siebel Enterprise Application Integration > Siebel EAI and File Attachments > Using Inline XML to Exchange Attachments >
Creating a Test Workflow
You create a workflow in Siebel Tools to do the following:
To create a test workflow to exchange attachments
- Create the following workflow:
- Define the process properties:
|
|
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:
|
|
|
OutputIntObjectName |
Literal |
Attachment integration object you created, for example, Account Attachment |
PrimaryRowId |
Literal |
Row ID of the record to which you added an attachment |
|
|
|
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:
|
|
|
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:
|
|
|
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.
|
|
|
|
SiebelMessage |
Output Argument |
SiebelMessage |
- 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:
|
|
|
SiebelMessage |
Process Property |
SiebelMessage |
|