Write to File

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:

  1. In the Business Process Editor, select the activity or resource in your project for which you want to write to a file.

  2. Select Window>Show View>Properties from the main menu bar.

  3. In the Properties View, expand the Write to File field in the Ancillary Activities section.

  4. To specify the file to be written to, click  in the Value column of the File field.

  5. 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.

  1. Click OK to save your changes and close the dialog box.

  2. To specify the text to be written, click in the Value column of the Text field.

  3. In Reference List dialog box, do any of the following to define the text:

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.

  1. Click OK to save your changes and close the dialog box.