Page 1 of 1

How to fill workflow form with process instance variables

PostPosted:Sat Apr 07, 2012 10:13 pm
by young
Hi,
I have created a workflow, it works and allow users to fill some value.
But I don't know if a user can directly get what the previous user inputing.
I think if a task form can get the process instance variables, then the problem would be settled.
so, could somebody tell me if there is a resolution?
so many thanks.

Re: How to fill workflow form with process instance variable

PostPosted:Sun Apr 08, 2012 6:04 pm
by jllort
process instance variable has a workflow_variable_name, you should use this workflow_variable_name into form definition with the property data="workflow_variable_name". Internally with form definition we link variable value with form value when is shown ( take a look at dtd you should seen that all workflow properties have the data property definition ).

Re: How to fill workflow form with process instance variable

PostPosted:Tue Apr 10, 2012 6:21 am
by young
Thank you, Jllort.
I can fill these variables to the form as your suggestion, and I can put some variables in email-node.
but it seemed there is an an exception.
I can see a variable named "path" when I start workflow from a document, for example:"/okm:root/Tmp/OKM.pdf".
but this variable can't be added to form and email-node.

And in this page, http://wiki.openkm.com/index.php/Notifi ... n_messages
there are some substitution variables have been defined, but i can't put them in email-node.

this is my email-node definition:
Code: Select all
  <mail-node name="sendMail" to="glliyong@126.com" >
    <subject>A task is Waiting for you.</subject>
    <text>"#{path}" has been sent to workflow by #{initiator} Please log on and complete the task. Links:"${documentUrl}"${documentPath}!</text>
    <transition to="Auditing"></transition>
  </mail-node>
How can I use "path" and those variables defined in that page in email-node? or there may be some mistake in my definition?

OpenKM is a great document management system, :lol:
so many thanks.

Re: How to fill workflow form with process instance variable

PostPosted:Thu Apr 12, 2012 9:38 pm
by jllort
I suggest create a class to sending and use a node task, not a mail node, it'll be more easy capture data from workflow.