Page 1 of 1
workflow variables
PostPosted:Wed Nov 24, 2010 8:22 am
by doni
hi
I have a problem. I want to design a workflow proces and use in it variables: name of user who start the workflow and his email. Is it possible? I dont find any informations about workflow instance variables injected to the workflow when it's iniciated. pls help.
Re: workflow variables
PostPosted:Wed Dec 01, 2010 7:09 pm
by pavila
The user who stated the workflow can be obtained using the swimlane initiator. See JBPM documentation for more info.
Re: workflow variables
PostPosted:Thu May 26, 2011 9:37 pm
by bestuaco
I need variables like path or users only, but in openkm no info about it
Re: workflow variables
PostPosted:Fri Jun 03, 2011 6:56 am
by jllort
Variables are stored in processInstance ( processInstance.getVariables() ), here for example you can find the document path, take a look at WorkflowFormPanel at line 319 ( actually by default path is the only variable stored ).
You can get processInstance doing taskInstance.getProcessInstance() etc...
Hope this could help you in some way.
Actually in version 5.1.x we're working to map variables between different workflow task in a more simply way ( xml form definition ), that's not available across version 5.0.x