How can I grab the form field data and use in the workflow #1239
-
Hi, I am new to the formsflow ai. I am making an approval workflow. I want to split the workflow and assign to different parties to be an approver based on the forms field value user selected. For example, I have a radio option (which is Programme) in the application form. I want to have different approver to the form based on user selected Programme. If the user selects MBA programme, I want to assign an MBA programme officer to approve/reject the application. Therefore, what should I do to achieve my purpose? Is there any special setup in the form or workflow? Or I need to create an api to work for it? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
Beta Was this translation helpful? Give feedback.
-
This may be due to the order of using the Listener & script. The script should have been executed before the listener captured the values. |
Beta Was this translation helpful? Give feedback.
Use FormBPMDataPipelineListener which copies form data to camunda.
Now form data will be available in the execution.
Write a script before the approver task to set the assignee based on the value from the form field.
Then in the approver task use the variable in the assignee/candidate group.
Instead of a script, you can also use a dmn to decide on the assignee.