Search term contains in the file

Last published at: May 2nd, 2023

Description:

Search "terms" in the file contents.    

Inputs

  • inputFilePath - Path for the file on the App server
  • searchTerms - List of search terms
  • variableToStoreValue - Variable/Global to store the list of matched search terms

Returns

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

Usage:

Example:

Let’s build and execute the containsinfileDef example.       

  • Create a new definition called “ContainsInFileDef”
  • Select the definition and click the “design” button
  • Drag a "ContainsInFile" step to the canvas
  • Connect the dots between the start and "ContainsInFile" step
  • Click on the "ContainsInFile" step to configure its properties

  • Save the process definition. Create a new process instance and execute. The process step should search the "terms" in the file contents and store the match in variable.result, as configured.