I did it!!
Here is how:
String actorId = executionContext.getJbpmContext().getActorId();
|
executionContext.getContextInstance().setVariable("loggedPerson", actorId);
i don't know why it didn't work before though..
Here is my process definition.xml anyways:
<?xml version="1.0" encoding="UTF-8"?>
|
| <process-definition name="actorIdTests">
|
| <swimlane name="tester">
| <assignment expression="user(mennen)"></assignment>
| </swimlane>
|
|
| <start-state name="start actorId tests">
| <task swimlane="tester">
| <event type="task-create">
| <!--action name ="start_action"
class="org.jbpm.mennen.ActorIdAction"/-->
| <script>
| <expression>
| String actorId =
executionContext.getJbpmContext().getActorId();
|
executionContext.getContextInstance().setVariable("loggedPerson", actorId);
| </expression>
| </script>
| </event>
| <controller>
| <variable name="loggedPerson" access="read"/>
| </controller>
| </task>
| <transition name="" to="task1"></transition>
| </start-state>
|
| <task-node name="task1">
| <task swimlane="tester">
|
| <controller>
| <variable name="loggedPerson" access="read"/>
| </controller>
| </task>
| <transition name="" to="end1"></transition>
| </task-node>
|
| <end-state name="end1"></end-state>
|
| </process-definition>
and my
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3925568#3925568
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3925568
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user