0 Replies Latest reply on Sep 5, 2007 9:55 AM by Turab Mehdi

    group assigment issues

    Turab Mehdi Newbie

      I can't get group assignments to work using expressions, tasks tansition to the next node, however, tasks don't get assigned to the groups.


      I'm working with jboss-jbpm-3.2.GA (suite)

      I have the following process deployed:

      <?xml version="1.0" encoding="UTF-8"?>

      <process-definition
      xmlns="" name="RequirementsAnalysis">













      <start-state name="Submit change request">


      <variable name="Descr" access="read,write,required" mapped-name="Change Request Description">
      <variable name="Module" access="read,write,required" mapped-name="Solution Area">



      </start-state>
      <task-node name="Review change request">


      <variable name="Descr" access="read" mapped-name="Description">
      <variable name="Module" access="read" mapped-name="Module">
      <variable name="UpdReq" access="read,write,required" mapped-name="Updated Requirement">



      </task-node>
      <end-state name="end1"></end-state>
      </process-definition>

      I updated the jbpm tables with the following script:

      /*First we add in the security roles*/
      INSERT INTO PUBLIC.JBPM_ID_GROUP VALUES (60,'G','manager','security-role',NULL)
      INSERT INTO PUBLIC.JBPM_ID_GROUP VALUES (61,'G','participant','security-role',NULL)
      INSERT INTO PUBLIC.JBPM_ID_GROUP VALUES (62,'G','administrator','security-role',NULL)

      /*Then we add in the organisations*/
      INSERT INTO PUBLIC.JBPM_ID_GROUP VALUES (70,'G','EndUser','organisation',NULL)
      INSERT INTO PUBLIC.JBPM_ID_GROUP VALUES (71,'G','ReqAnal','organisation',NULL)
      INSERT INTO PUBLIC.JBPM_ID_GROUP VALUES (72,'G','SWEngin','organisation',NULL)
      INSERT INTO PUBLIC.JBPM_ID_GROUP VALUES (73,'G','QAAnal','organisation',NULL)


      /*Then we add in the users*/
      INSERT INTO PUBLIC.JBPM_ID_USER VALUES (80,'U','euser','euser@tng.com','euser')
      INSERT INTO PUBLIC.JBPM_ID_USER VALUES (81,'U','reqanal','reqanal@tng.com','reqanal')
      INSERT INTO PUBLIC.JBPM_ID_USER VALUES (82,'U','swengin','swengin@tng.com','swengin')
      INSERT INTO PUBLIC.JBPM_ID_USER VALUES (83,'U','qaanal','qaanal@tng.com','qaanal')
      INSERT INTO PUBLIC.JBPM_ID_USER VALUES (84,'U','adminmgr','adminmgr@tng.com','adminmgr')

      /*Then we make all our normal users participants*/
      INSERT INTO PUBLIC.JBPM_ID_MEMBERSHIP VALUES (NULL,'M',NULL,NULL,'80','61')
      INSERT INTO PUBLIC.JBPM_ID_MEMBERSHIP VALUES (NULL,'M',NULL,NULL,'81','61')
      INSERT INTO PUBLIC.JBPM_ID_MEMBERSHIP VALUES (NULL,'M',NULL,NULL,'82','61')
      INSERT INTO PUBLIC.JBPM_ID_MEMBERSHIP VALUES (NULL,'M',NULL,NULL,'83','61')
      INSERT INTO PUBLIC.JBPM_ID_MEMBERSHIP VALUES (NULL,'M',NULL,NULL,'84','61')



      /*Then we make the administrator an administrator*/
      INSERT INTO PUBLIC.JBPM_ID_MEMBERSHIP VALUES (NULL,'M',NULL,NULL,'84','62')

      /*Then we make the manager a manager*/
      INSERT INTO PUBLIC.JBPM_ID_MEMBERSHIP VALUES (NULL,'M',NULL,NULL,'84','60')

      /*Finally we add all our users to their organisation groups*/
      INSERT INTO PUBLIC.JBPM_ID_MEMBERSHIP VALUES (NULL,'M',NULL,NULL,'80','70')
      INSERT INTO PUBLIC.JBPM_ID_MEMBERSHIP VALUES (NULL,'M',NULL,NULL,'81','71')
      INSERT INTO PUBLIC.JBPM_ID_MEMBERSHIP VALUES (NULL,'M',NULL,NULL,'82','72')
      INSERT INTO PUBLIC.JBPM_ID_MEMBERSHIP VALUES (NULL,'M',NULL,NULL,'83','73')