ExecuteNavigateTask Widget

Use this widget to execute any workflow and navigate to task automatically.

Last published at: July 27th, 2024

Description:

ExecuteNavigateTask widget is very similar to “Execute Workflow” widget. Use this on the form to execute any workflow, and if the process has assigned any task/form to the current user, then the system automatically navigates to the first task assigned by the process.

Inputs

  • ID/Name - Name of widget generated by FlowWright (read-only field)
  • Execute Button Text - Enter description for Execute Button Text
  • Select Workflow Definition - Select the existing workflow definition 
  • Pre-prompt message - Provide text information to pre-prompt after submit 
  • Input Mapping (Variables) - Identify input variables required in the workflow
  • Input Mapping (Globals) - Identify input globals required  in the workflow 
  • Output Mapping (Variables) - Identify output variables to hold the result in the workflow
  • Output Mapping (Globals) - Identify output globals to hold the result in the workflow 
  • Hide - Select the checkbox to Hide (tick mark)
  • Read Only - Select the checkbox to Read-Only (tick mark)
  • Create Only One Instance - Create a process instance during run time
  • Open New Window - Select the checkbox to open the page in a new window
  • Tool Tip - Enter information to display on mouse hover on form render
  • Styles - Enter the CSS scripts for widget styles
  • Apply Classes - Select between custom classes defined 
  • Save - Save the input values 
  • Delete - Remove this form widget from the designer page 
  • Close - Close the input popup window
 

 

Design:

 

 

Example:

Let's build and execute the “ExecuteNavigateTaskDef” example. 

  • Create a new form definition called “ExecuteNavigateTaskDef” 
  • Select the Open Designer checkbox and click the “Create” button
  • Drag an ExecuteNavigateTask, Label, and Textbox widgets to the canvas

 

  • Double-click on the widget to configure the “Settings” properties. Provide a name to the control. Provide a title to the button. Select process definition from the drop-down list. Provide text information to pre-prompt on clicking on the SUBMIT button during run time. Select the “hide” or “read-only” check box to conceal or turn off the control during run time. Select the check box to create one process instance during run time. Select the check box to open the page in the new window.  

 

  • Click on the “Conditions” tab. Here, map the form inputs to the variables; these values will be available while executing the process workflow. 

 

  • Create a new process definition called “PDExecuteTaskNavigate” for the above form. Configure the subworkflow step to use another process definition.

Image

 

  • Double-click on the subForm widget to configure the “Settings” properties. Give the control a name. Select the form definition from the drop-down list. 

 

  • Click on the “Advanced” tab. Select “Yes” to pass variables from parent to child instance. Select “Yes” to pass variables back from the child to the parent instance. Select “Yes” to pass globals from parent to child instance. Select “Yes” to pass globals back from child to parent instance. Select “Yes” to synchronize the child execution to complete first and the parent execution to follow next. Select execution priority from the drop-down list. Click on the button to map the variables between parent and child instances. Click on the button to map the globals between parent and child instances.  

 

  •  Double-click the Rout form step to configure the “Settings” properties. Provide a name to the control. Select the form definition to route. Provide a variable/global to hold the form instance ID. 

 

  • Click on the “Advanced tab”. Select the users to route to. 

 

  • Generate a new Form Instance. Navigate to the Actions menu and Edit the form instance. The rendered widget will appear as shown in the graphic below.
  • On Click, the "Execute Form" widget renders the form based on the configuration and waits for user input and a Submit button to proceed. The form is submitted successfully, as shown in the graphic below.
  • The "Execute Form" widget executes the form and creates a new workflow instance. Navigate to the Form Instance page to view the new workflow instance created automatically.