Page 1 of 1

SOLVED Workflow Extract Process Variable Value

PostPosted:Tue Aug 27, 2019 8:11 am
by matthewbartlett
Hi Guys,

I'm trying to create a workflow that assigns tasks to users and I'm stuck at a part with the "Select" field (dropdown) in the form element. Basically the user who is assigned the original task will then pass the task off to someone else using the Select field (dropdown). How can I extract the value that the user selects from that dropdown and pass it into a decision node?

In the workflow backend, it's showing the value of the variable as this:
Code: Select all
{label=, name=value, width=150px, height=25px, readonly=false, type=simple, value=alex, data=, optionsData=, options=[{label=okmAdmin, value=okmAdmin, selected=false}, {label=reviewer, value=reviewer, selected=false}, {label=alex, value=alex, selected=true}], validators=[], table=, optionsQuery=, suggestion=, class=}
I want to get the value of "value" (which is "alex" in this case).

Any advice would be amazing! Thank you guys!

Re: SOLVED Workflow Extract Process Variable Value

PostPosted:Wed Aug 28, 2019 8:39 pm
by jllort
All the variables of the workflow are stored in the context of the workflow https://docs.openkm.com/kcenter/view/wf ... -node.html , that means all the form elements etc... are also stored into the context and you can get from there. In this case in the context you will have a formElement and String etc...

I have executed the purchase sample https://docs.openkm.com/kcenter/view/wf ... ample.html and this is an screenshot what might help you.
Selección_003.png
Selección_003.png (112.68 KiB) Viewed 1543 times