Splits a string using a delimiter

Use this step to split a string using a delimeter.

Last published at: July 31st, 2023

splitString Step

Description:

This step is used to split a string using a delimiter.

Inputs

  • stringVal - string to split
  • delimiter -  delimiter to be used
  • valueVariable - variable to store the split xml 
 

 

Returns

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

 

Usage:

Example:

Let’s build and execute the “splitStringDef” example.          

  • Create a new definition called “splitStringDef”
  • Select the definition and click the “design” button
  • Drag a “splitString” step to the canvas
  • Connect the dots between the start and “splitString” step
  • Define a variable/global to store the result after execution
  • Click on the "splitString" step to configure its "Settings" properties. Provide a name to the step. Provide a string text value or variable reference. Provide a delimiter to use to split the string. 
  • The “Logging” setting configuration is necessary for documentation and also measure the workflow progress and the percent complete. This is acheived by configuring the step state and percent fields individually as shown in the images below. Configure the “Logging” using the following properties.
  • Save the process definition, create a new process instance and execute. Render the process instance. Click on the process step. The step should split the string based on given delimiter and store the result in the variable/global.