clsDynamicTaskBuilder step

Use this step to dynamically build tasks based on the XML

Last published at: July 27th, 2024

Description:

This step dynamically builds the tasks based on the XML. 

 

Inputs

  • taskXML – Task XML
 

 

Returns

  • true  – true condition
  • false – false condition
 

 

 

Usage:

 

 

Example:

Let’s build and execute the clsDynamicTaskBuilderDef example.

  • Create a new definition called “clsDynamicTaskBuilderDef.”
  • Select the definition and click the “design” button
  • Drag the above steps to the canvas 
  • Connect the dots between the start and other steps as above
  • Define a variable/global to store the XML data

 

  • Click the "updateGlobals" step to configure its "Settings" properties. Provide a name to the step.

 

  • Click the "updateGlobals" step to configure its "Advanced" properties. Click on the button to configure the multiple globals. A popup window is displayed as below. Provide the global name and the global value. Click the Save button to confirm. 

 

  • The global value contains the Task attributes as key-pair values in HTML tags. 
<tasks order="serial"> <task name="ToDo1 - Send Flowers" desc="Send flowers" owner="admin" duration="5" durationType="days" includeWeekends="1"/> <task name="ToDo2 - Send Chocolates" desc="Send chocolates" owner="admin" duration="3" durationType="days" includeWeekends="1"/> </tasks> 

 

  • Click the "clsDynamicTaskBuilder" step to configure its "Settings" properties. Give the step a name. Fill in the variable/global reference with the XML data. 

 

  • The “Logging” setting configuration is necessary for documentation and also measures the workflow progress and the percent complete. This is achieved 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 to view its properties. The step should create tasks dynamically based on the XML data, as shown below.