• Workflow - variable for user who start workflow

  • We tried to make OpenKM as intuitive as possible, but an advice is always welcome.
We tried to make OpenKM as intuitive as possible, but an advice is always welcome.
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.
 #5068  by daniel
 
How can I assignment workflow to user who start the workflow? I would like to user who start the workflow automatically assigned to it. Next this variable will be send in subject of mail in mail node.
Something like this:
Code: Select all
<?xml version="1.0" encoding="UTF-8"?>
   <process-definition xmlns="urn:jbpm.org:jpdl-3.2" name="Letters">

      <start-state name="start-state1">
         <transition to="task-node1"></transition>
         </start-state>

         <task-node name="task-node1">
            <task name="SelectUser">
               <event type="task-create">
                 <script>taskInstance.start();</script>
               </event>
               <assignment actor-id="#{taskInstance.actorId}" />
               <description>Select user</description>
	       <controller></controller>
            </task>
	   <transition to="mail-node1"></transition>
	</task-node>

	<mail-node name="mail-node1" to="#{receiver}">
		<subject>Letter from #{taskInstance.actorId}</subject>
		<text>Please read following message...</text>
		<transition to="end-state1"></transition>
	</mail-node>

	<end-state name="end-state1"></end-state>
</process-definition>

But #{taskInstance.actorId} variable is null in task-node and mail-node.
#{taskInstance.actorId} i found there http://docs.jboss.org/jbpm/v3/javadoc/o ... tance.html

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.