Receiving a Message and Writing It to a File
This example uses the Receive method of the EAI File Transport business service to receive a message as a file, then it uses the Send method of the EAI File Transport business service and the FileTranspSubsys named subsystem to write the message to a file.
To receive a message and write it to a file
Define an EAI File Transport named subsystem, for example:
create named subsystem FileConnSubsys_sub for subsystem FileTranspSubsys with FileName="D:\temp\FileOut.txt", AppendToFile=true
Create a workflow containing the following steps, as shown in the following image:
Receive
Write to File
Note: For details on the Business Process Designer, see Siebel Business Process Framework: Workflow Guide.Define the following process properties:
Name Data Type In/Out Default String BinaryMsg
Binary
In/Out
Not applicable
Error Code
String
In/Out
Not applicable
Error Message
String
In/Out
Not applicable
Object Id
String
In/Out
Not applicable
Process Instance Id
String
In/Out
Not applicable
Siebel Operation Object Id
String
In/Out
Not applicable
Set up the first business service step to use the EAI File Transport business service with the Receive method and the following input and output arguments:
Input Argument Type Value FileName
Literal
D:\temp\InputToFile.txt
Property Name Type Output Argument BinaryMsg
Output Argument
<Value>
Set up the second business service step to use the EAI File Transport business service with the Send method and the following input arguments:
Input Argument Type Value Property Name <Value>
Process Property
Not applicable
BinaryMsg
ConnectionSubsystem
Literal
FileConnSubsys_sub
Not applicable