9 Replies Latest reply on Oct 31, 2006 9:03 AM by asdf asdf

    ActorId from within process definition

    Mennen Newbie

      Hi,

      I've been trying to get the actorId (from inside my process definition) with the following methods, but no results (in database)

      String actorId= executionContext.getTaskInstance().getActorId();
      
      String actorId=executionContext.getTask().getActorIdExpression();
      
      String actorId = executionContext.getTaskMgmtInstance().getSwimlaneInstance("demandeur").getActorId();
      
      String actorId =executionContext.getJbpmContext().getActorId();




      THis is the node in my process definition that is trying to get the ActorId :

      <start-state name="start automatic_date">
       <task swimlane="demandeur">
       <controller>
       <variable name="Date_demande" access="read"/>
       <variable name="actor id" access="read"/>
       </controller>
       <event type="task-create">
       <script>
       <expression>
       Date today = new Date();
       executionContext.getContextInstance().setVariable("Date_demande",today);
       //String actorId= executionContext.getTaskInstance().getActorId();
       //String actorId=executionContext.getTask().getActorIdExpression();
       //String actorId = executionContext.getTaskMgmtInstance().getSwimlaneInstance("demandeur").getActorId();
       String actorId =executionContext.getJbpmContext().getActorId();
       executionContext.getContextInstance().setVariable("actor id",actorId);
       </expression>
       </script>
       </event> </task>
       <transition name="" to="task1"> </transition>
       </start-state>



      Any ideas as to how to get the actorId??

      Thanks in advance,