There is a http request in my workflow. But before sending the http request, I want to compose a process variable with a json format. I tried this with tasks and functionality, but it's not working. (I checked this in the process flow monitor).
Is there a way to modify a process variable in the process flow, so I can use it further in the process flow?
Best answer by Mark Jongeling
Hi Corne,
Yes, it is possible. To alter a process variable you need to use a Process Procedure on a previous process flow step. (Process procedures are always activates after executing a process action.)
You can enable 'Use process procedure’ here:
SF: Process Flows → Process actions
This will enable you to create a Control procedure with codegroup 'PROCESSES’ and assign it to the process action. Be sure to [Generate code group] to see the Program Object.
After task you will see this
In the template you will be able to alter Process variables to your liking:
Also be sure to set the variable for Follow-up process actions. Otherwise the process flow might go different paths than you intent. For example:
if @string is not null
beginset @execute_task_start_connection_http_connector = 1end
This way, if your variable is filled, the http connector will the following action.
Hope this helps you out! If you have any questions, let me know.
Yes, it is possible. To alter a process variable you need to use a Process Procedure on a previous process flow step. (Process procedures are always activates after executing a process action.)
You can enable 'Use process procedure’ here:
SF: Process Flows → Process actions
This will enable you to create a Control procedure with codegroup 'PROCESSES’ and assign it to the process action. Be sure to [Generate code group] to see the Program Object.
After task you will see this
In the template you will be able to alter Process variables to your liking:
Also be sure to set the variable for Follow-up process actions. Otherwise the process flow might go different paths than you intent. For example:
if @string is not null
beginset @execute_task_start_connection_http_connector = 1end
This way, if your variable is filled, the http connector will the following action.
Hope this helps you out! If you have any questions, let me know.
We use 3 different kinds of cookies. You can choose which cookies you want to accept. We need basic cookies to make this site work, therefore these are the minimum you can select. Learn more about our cookies.