1 Reply Latest reply on Aug 9, 2007 9:45 AM by Ricardo Marques

    can't get group task list with pooled actors

    Ricardo Marques Novice

      hi guys

      I have a process definition to test the use of groups, and for that a assign a group to task "inserir dados", but when i try to fetch the group list, she's empty.

      Also i debug the code until the hibernate query, i don't know HQL, but i look at the conditions, and looked at the tables, and the information is present.

      I'm using jbpm 3.2.1 and mysql 5 and jboss 4.0.5


      Process definiiton:

      <?xml version="1.0" encoding="UTF-8"?>
       xmlns="" name="wscall com groups">
       <start-state name="inicio">
       <transition name="" to="perguntar"></transition>
       <node name="ws">
       <event type="node-enter">
       <action name="wscall" class="com.sample.action.MessageActionHandler"></action>
       <transition name="" to="confirmar dados"></transition>
       <end-state name="fim"></end-state>
       <task-node name="perguntar">
       <task name="inserir dados">
       <assignment expression="group(sales)"></assignment>
       <variable name="valor1" access="read,write,required"></variable>
       <variable name="valor2" access="read,write,required"></variable>
       <transition name="" to="ws"></transition>
       <task-node name="confirmar dados">
       <task name="confirmar dados">
       <assignment expression="user(grover)"></assignment>
       <variable name="resultado" access="read"></variable>
       <variable name="aceitar" access="read,write,required"></variable>
       <transition name="" to="decision1"></transition>
       <decision name="decision1">
       <transition name="" to="fim">
       <condition expression="#{ aceitar == 'sim' }" />
       <transition name="tr2" to="perguntar">
       <condition expression="#{ aceitar != 'sim' }" />

      Hibernate query:

      <query name="TaskMgmtSession.findPooledTaskInstancesByActorId">
       select distinct ti
       from org.jbpm.taskmgmt.exe.PooledActor pooledActor
       join pooledActor.taskInstances ti
       where pooledActor.actorId = :swimlaneActorId
       and ti.actorId is null
       and ti.isSuspended != true
       and ti.isOpen = true

      Code to get the group tasklist:

      try {
       List result = engine.getContext().getTaskMgmtSession().findPooledTaskInstances(this.name);
       model = new ListDataModel(result);
       catch (Exception e) {
       finally {
       return model;