Configure a Write to File activity

Procedure

  1. In the navigator, click Workflow > Workflows.
  2. In the resource type list, select a resource.
  3. In the Displays panel, click Workflow Management > Workflow Editor.
  4. Click the Workflow Editor tab.
  5. Double-click the step containing the activity you want to work with.
  6. In the Content field, from the drop-down arrow:
    Select...... and then
    LiteralEnter the text that you want to write to the log file.
    BindBind the content to a variable.
    ExpressionWrite an expression that will write the appropriate content to the log file.
  7. In the File Path field, enter a name for the log file.
    Note:
    • Workflow log files are automatically written to the folder %ProgramData%\Proficy\Workflow Files.
    • You can include additional folders to the file path that are relative to this path.
    • If you enter a non-existent file name, the application creates a new file.
  8. From the Include Timestamp drop-down list, select True to include a time stamp with the content being written; select False if you do not want to include a time stamp.
  9. In the Max File Size (MB) field, enter the maximum size of the log file, in MB. When the maximum file size is reached, a new file is created with the same name, but including a number; for example, <filename>.1.txt. Each successive file that is generated in this way will be incremented by one.
  10. Click Save.