6 Replies Latest reply on Jan 15, 2007 7:59 PM by Niklas Schulz

    Assigning a group to a task...jbpm3.2Alpha1

    JAVIER ROSADO Newbie

      I have reviewed all the forum to find a solution for ?assigning a group to a task? and until nonencounter this solution now.
      I've tried: expression, assigmenthandler, everything.
      I have jbpm3.2Alpha1.

      Plz helpme !!!!

        • 2. Re: Assigning a group to a task...jbpm3.2Alpha1
          JAVIER ROSADO Newbie

           

          "NiB" wrote:
          What does the server log say?


          The log say :
          [TaskInstance] assigning task 'revisar compra' to 'null'
          [TaskBean] assigmentslogs:[task-assign[null,TaskInstance[revisar compra]]]
          ....


          • 3. Re: Assigning a group to a task...jbpm3.2Alpha1
            Niklas Schulz Newbie

            Hi,

            I think I know what your problem is. You made that expression within a swimlane. That doesn't work. You must define the assignment expression in the task directly:
            e.g.:

            <task-node name='Lets do it'>
             <task>
             <assignment expression='group(mygroupindb)' />
             </task>
             <transition to='next' />
             </task-node>
            


            Greetz,
            NiB

            • 4. Re: Assigning a group to a task...jbpm3.2Alpha1
              JAVIER ROSADO Newbie

              I've tried it and don't work.
              In the table JBPM_TASKINSTANCE inserted a task and a value 'null' in actorid (this is mi problem....).

              Sorry for my english...

              "NiB" wrote:
              Hi,

              I think I know what your problem is. You made that expression within a swimlane. That doesn't work. You must define the assignment expression in the task directly:
              e.g.:
              <task-node name='Lets do it'>
               <task>
               <assignment expression='group(mygroupindb)' />
               </task>
               <transition to='next' />
               </task-node>
              


              Greetz,
              NiB



              • 5. Re: Assigning a group to a task...jbpm3.2Alpha1
                JAVIER ROSADO Newbie

                This method help to see datatable with the task for a group
                public List getPooledTaskInstances() {
                List pooledTaskInstances = null;
                List poolIds = identityBean.getUserPoolIds();
                if (poolIds!=null) {
                pooledTaskInstances = jbpmBean.getJbpmContext().getTaskMgmtSession().findPooledTaskInstances(poolIds);
                }
                return pooledTaskInstances;
                }
                This method is in ParticipantBean.. and the datatable is:
                <h:form>
                <h4>Lista de tareas asignadas</h4>
                <h:dataTable value="#{participantBean.pooledTaskInstances}" var="pooledTaskInstance" headerClass="tableheader" columnClasses="tablecell">
                <h:column >
                <f:facet name="header">
                <h:outputText value="Task Form Link" />
                </f:facet>
                <h:commandLink action="#{taskBean.showTaskFormDePool}">
                <f:param name="taskInstanceId" value="#{pooledTaskInstance.id}"/>
                <h:outputText value="#{pooledTaskInstance.name}" />
                </h:commandLink>
                </h:column>
                <h:column>
                <f:facet name="header">
                <h:outputText value="Process" />
                </f:facet>
                <h:outputText value="#{pooledTaskInstance.taskMgmtInstance.taskMgmtDefinition.processDefinition.name}" />
                </h:column>
                <h:column>
                <f:facet name="header">
                <h:outputText value="Version" />
                </f:facet>
                <h:outputText value="#{pooledTaskInstance.taskMgmtInstance.taskMgmtDefinition.processDefinition.version}" />
                </h:column>
                </h:dataTable>

                • 6. Re: Assigning a group to a task...jbpm3.2Alpha1
                  Niklas Schulz Newbie

                  Can you post the db-entries:
                  jbpm_jd_group
                  jbpm_id_membership
                  jbpm_id_user