ExecuteNavigateTask Widget

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

Last published at: October 4th, 2023

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 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 checkbox to Hide (tick mark)
  • Read Only - Select checkbox to Read-Only (tick mark)
  • Create Only One Instance - Create a process instance during run time
  • Open New Window - Select 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 a 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 title to the button. Select process definition from the drop down list. Provide text information to pre-prompt on click on SUBMI button during run time. Select check box “hide” or “read-only” to conceal or disable the control during run time. Select check box to create one process instance during run time. Select check box to open the page in new window.  
  • Click on the “Conditions” tab. Here, map the form inputs to the variables and these values are 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.
  • Double-click on the subForm widget to configure the “Settings” properties. Provide a name to the control. 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 child to 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 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 instance. Click on the button to map the globals between parent and child instance.  
  •  Double-click on 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 Actions menu and Edit the form instance. The rendered widget will appear as shown in the below graphic.
  • On Click, the "Execute Form" widget shall render the form based on the configuration and waits for any user input and a Submit button to proceed. The form is submitted successfully as shown in the below graphic.
  • The "Execute Form" widget shall execute the form, create a new workflow instance. Navigate to Form Instance page to view the new workflow instance created automatically.