• How to fill workflow form with process instance variables

  • OpenKM has many interesting features, but requires some configuration process to show its full potential.
OpenKM has many interesting features, but requires some configuration process to show its full potential.
Forum rules: Please, before asking something see the documentation wiki or use the search feature of the forum. And remember we don't have a crystal ball or mental readers, so if you post about an issue tell us which OpenKM are you using and also the browser and operating system version. For more info read How to Report Bugs Effectively.
 #15119  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.
 #15131  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 ).
 #15139  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.
Attachments
Okm_pic.PNG
Okm_pic.PNG (8.92 KiB) Viewed 3347 times

About Us

OpenKM is part of the management software. A management software is a program that facilitates the accomplishment of administrative tasks. OpenKM is a document management system that allows you to manage business content and workflow in a more efficient way. Document managers guarantee data protection by establishing information security for business content.