Create and Activate the Human Approval Workflow
Now that you've created the human approval form and activated it, you can create the human approval workflow.
Prerequisites: Create and Activate the Human Approval Form
- Open the project.
- In the navigation pane, select Projects.
- Select Simple Expense Approval Project.
- In the left toolbar, select Human in the loop
. - Create the workflow.
- In the Workflows section, click Add.
- Complete the fields for the workflow:
Field Description Name
Enter a name for the workflow. For the tutorial, enter:
Simple Human Approval Workflow.Identifier
Leave this field as is. This field is automatically populated with a unique identifier based on the name value.
Version
Leave this field as is. Use the default value.
Description
Enter the description for the workflow:
Simple workflow to request human approval.
- Click Create.
A workflow with a start and end event is displayed in the canvas.
A start event specifies arguments that trigger the workflow. A workflow contains a single start event.
An end event marks the completion of a workflow. The end event can be configured to define the callback request and specify the output argument.

- Configure the Start event.
- Select Start event, click More
, then select Open Properties.The Properties panel is displayed. - In the Input Payload Definition section, click <<<inline>>> and enter the following JSON input:
{"claimedAmount":""}
- Click Apply to save the changes.
- Select Start event, click More
- Configure the End event.
- Select End event, click More
, then select Open Properties.The Properties panel is displayed. - In the End Event Properties, click <<<inline>>> and enter the following JSON:
{"approvalResponse":""}
- Click Apply to save the changes.
- Close the Properties panel for the End event.
- Select End event, click More
- Add and configure the user task.
- Click Show/Hide palette to display the user task activity.

- In the right pane, under Human, select the User Task and drop the user task on to the workflow canvas between the Start and End events..

- Select the user task, click More
, then select Open Properties.The Properties pane is displayed. - In the Properties pane, in the Assignees section, click Assign to
and select the user account with which you are logged in. This is the user that will see the task to approve or reject the amount claimed.
- In the Properties pane, scroll down to the UI section, and from the dropdown select the Simple Approval Form you created and activated.

- Leave all other fields as is and close the panel.
- Click Show/Hide palette to display the user task activity.
- Configure data associations for the workflow input.
A user task needs both input and output data association.
- Select the user task, click More
, then select Open Data Association.The data association editor is displayed.
- Define data input for the user task.
You're going to assign the value received from the start event to the claimedAmount field in the form.
- In the data association editor, on the left pane, click the Input tab to define data input for the user task.
- In Data Objects, expand Input and drag claimedAmount to New Association in the center pane.

- On the right pane, in User task, expand Input, then formData and drag claimAmount to the empty field in the center pane to complete the data association.

- Click Apply.
- Select the user task, click More
- Define data association for the output.
Once the user enters information in the form for the Approver Comments, we want to send that information as a response back to the integration that is calling the workflow.
- Select the user task, click More
, then select Open Data Association.The data association editor is displayed.
- In the data association editor, on the left pane, click the Output tab to define data output for the user task.
- Under User Task, expand Output and drag taskOutcome to New Association.

- On the center pane, in the empty field, type CallbackEndArgs, select it, and select ApprovalResponse.

- Click Apply.You have finished configuring the workflow.
- Click Back
to return to the Human in the loop main page.
- Select the user task, click More
- Activate the workflow.
- Next to the workflow Simple Human Approval Workflow, click
, and then select Activate.The workflow is now ready for use.
- Next to the workflow Simple Human Approval Workflow, click