When you add an activity or resource to your business process, you can configure its properties to write information to a specified file. The output is text encoded using UTF-8.
To write to a file:
In the Business Process Editor, select the activity or resource in your project for which you want to write to a file.
Select Window>Show View>Properties from the main menu bar.
In the Properties View, expand the Write to File field in the Ancillary Activities section.
To specify the file
to be written to, click in
the Value column of the File field.
In Reference List
dialog box, click Add Literal and type the path for the target file in
the Create Literal dialog box.
For example: C:\Temp\output.txt
Tip: If you name the log file using a .log extension, the log will then be available when viewing instance logs from the Unwired Orchestrator tooling.
Click OK to save your changes and close the dialog box.
To specify the text
to be written, click in the Value column of the Text field.
In Reference List dialog box, do any of the following to define the text:
Click Add Context... to set the reference as the value of a context variable. Then, select one of the following to specify your scope of selection:
Choose Element Value Only to specify the value of the selected element as the context.
Choose Element and Sub-Tree to specify the value of the selected element plus all the values in its sub-tree as the context.
Click Add Literal... to define the reference as a literal string.
Notes:
You have the option of specifying the source context reference as the value
of a Complex type context variable, a defined literal string, or a combination
of both.
You can also edit or remove context references from the list using this
dialog box.
Click OK to save your changes and close the dialog box.