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:
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
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