How do you set business process variables in a Forms process that calls a workflow?
I tried adding an output value, but not sure how to map this back to forms variables.
How do you set business process variables in a Forms process that calls a workflow?
I tried adding an output value, but not sure how to map this back to forms variables.
Hi Chad,
The same place you create input parameters when creating your Workflow, you can also create output parameters. Once you have created these output parameters, you can use the Assign Token Value activity to update the value of that output anywhere in your workflow. When your workflow terminates, these output parameters are passed to the business process that invoked the workflow. You can configure which Business Process Variable these output parameters set in the Workflow Service Task step of your Business Process (note, you have to have Wait for the selected workflow to finish running selected in order for the Output values options to show up).
Hi Chad, in your Workflow, create Input Values for each of the Fields you will be looking to pass from the Forms process to your workflow. Then in the Forms process, in the Workflow Service Task, when you select the Workflow, you will then be presented the Input Values which you will map the appropriate Field forms to.
Hi Steve
I see this option to send data to the workflow, but what I am looking for here is how to Set Business Process Variables in the workflow, the activity is missing.
Set Business Process Variables is an activity that passes data to the forms process which initiated the workflow. It is what allows Workflow and Forms to communicate bi-directionally instead of a 1 way conversation.
Hi Chad,
The same place you create input parameters when creating your Workflow, you can also create output parameters. Once you have created these output parameters, you can use the Assign Token Value activity to update the value of that output anywhere in your workflow. When your workflow terminates, these output parameters are passed to the business process that invoked the workflow. You can configure which Business Process Variable these output parameters set in the Workflow Service Task step of your Business Process (note, you have to have Wait for the selected workflow to finish running selected in order for the Output values options to show up).
Ah that is what I was missing, I could not see the output parameter configurations because I had not selected wait. Thank you!
Hi,
Just checking on the same question with different scenario:
If workflow is triggered on condition basis and in that workflow we are invoking business process then in this case how we can retrieve the business process variables and use it into the triggered workflow ?
Is there any solution for that on cloud instance ?
Please refer attached screenshot of the workflow.
In this workflow, i'm invoking business process and want to retrieve form field values and then trying to assign field values into metadata, but facing same issue, Please suggest
Cloud workflow cannot access variables of arbitrary business processes. Business process instances can call a workflow and pass their variables to it.
Is there a reason why searching for a batch of W4 forms is preferred to having each one processed individually from its corresponding business process instance?