Alpha - How to submit Human task data to process flow on click of button.?

I Have human task like Manager approval with boolean field, After selecting the manager decision(Like True/False) I want to submit the task with the manager decision to the process, So that process flow verify the manager decision and proceed with the next task for the case.
Please help me with the steps and code.

4 Likes

@Vignesh-U

To retrieve a variable from the human task, add it like this and map it to the corresponding process variable:

Next, define your condition based on the expected output:

Finally, from the Alpha, you can map the values like this:

2 Likes

Hi @Vyshnav_PC
I have done the same, but it is not working for me.
Could you please help me , what I am doing wrong here.



1 Like

We connected through Teams, and as discussed:

The issue is that you’re currently passing a string value instead of a boolean.
You can fix this in one of two ways:

  1. Convert the value to a boolean before sending it β€” for example, use true or false instead of "true" or "false".
  2. Update the decision logic to use string values instead β€” for example, "Approve", "Decline", etc., to keep it more readable and flexible.
1 Like