13 Replies Latest reply on Jul 6, 2007 12:17 PM by Ronald van Kuijk

    process instance and groups

    Ricardo Marques Novice

      Hi guys

      Continuing a bit the problem in this topic: http://www.jboss.com/index.html?module=bb&op=viewtopic&t=73247
      but not quite.

      i have this process definition piece:

      <start-state name="enter request">
       <task name="request entry">
       <controller>
       <variable name="start date" access="read,write,required"></variable>
       <variable name="duration" access="read,write,required"></variable>
       </controller>
       <assignment expression="group(users)"></assignment>
       </task>
       <transition name="" to="evaluate request"></transition>
       </start-state>
      


      and this instanciation code:

      cmd = new NewProcessInstanceCommand();
      cmd.setProcessId(Long.parseLong(pid));
      cmd.setActorId(userName);
      cmd.setCreateStartTask(true);
      
      getEngine().execute(cmd);
      


      both user grover and ernie belong to "users"

      if I log as grover or ernie and initiate a process instance, the first task goes to that user tasklist.

      The behavior that i was expecting was that, that task instance appears on group "users" task list.

      I'm creating the instance the right way, or for that behavior something must change?

      any feedback would be usefull :)

      thanks