Append line to the file

Last published at: May 2nd, 2023

Description:

Append line to the file, provide a file path and the content to append.  Adds the content to the end of the file. File is created, if the file doesn’t exist.

Inputs

  • inputFilePath– Path for the file (on the App Server)
  • appendText– Enter you text to be append in the file

Returns

  • True – step executed successfully
  • False – step failed to execute

Usage:

Example:

Let’s build and execute the appendlinetofileDef example

  • Create a new definition called “appendlinetofileDef”
  • Select the definition and click the “design” button
  • Drag a "appendLineToFile" step to the canvas
  • Connect the dots between the start and appendlinetofile step
  • Click on the “appendlinetofile” step to configure its properties
  • Configure the following values for the properties as shown on the below graphic

  • Save the process definition, create a process instance and execute.  The Step should append the text to the file.