4 Replies Latest reply on Jan 29, 2007 10:36 AM by kukeltje

    Userassignment problem

    skpeddi

      Hi,

      Could any body tell me about the "userassignment" problem


      ie.,

      In JPDL file if i dont use swimlanes & users then how to assign the users for a particular task(work item).


      In our situation we have BPM_web.xml file,this xml contains all the users and roles for a particular process.We are using users and roles from this xml file.By using OBE related api we are calling the users and roles from that xml file.


      Now we are integrating with JBPM whether we have to define the users and roles in swimlane or directly by removing the swimlanes in JPDL file.

      Our assumption is we are removing the swimlanes concept in JPDL file and assigning the users by using JBPM api from the already existing BPM_web.xml file

      If this is the situation then how to retrieve the users from the database.
      we know that using setActorId() method we can retrieve the currently authenticated user.

      Is there any other way how to assign the users with out using swimlanes.


      Could any body tell me how the "USERASSIGNMENT" should be happened using JBPM api.


      NOTE :

      * we are not using JBPMStarters kit
      *by using jBPM api we are deploying the jpdl file.
      *we have BPM_web.xml file for assigning the users and roles
      *Manually we are entering users in the JBPM_USERS table.



      Please confirm whether we need swimlanes or not .
      Then what is the proceedure for Userassignment


      Thanks
      Suresh




      Thanks,
      Suresh







        • 1. Re: Userassignment problem
          skpeddi

          Any one can give me the solution for User Assignment


          • 2. Re: Userassignment problem
            kukeltje

            Did you try using the api?

            • 3. Re: Userassignment problem
              skpeddi

              By using API we are setting the ActorId as given below:

              TaskInstance.setActorId("UserName");

              but before the setting of actorId where should I placed the actorId.
              we tried by using JBPM_USER table we are inserting the users manually.


              Note:

              *We are not using swimlanes here
              *Directly one tasknode,startstate and endstate for example.
              *we are not defining swimlanes.
              *In our scenario we dont have any users and swimlanes


              Please tell me what are the things that should be done with out using swimlanes.


              In a.xml file we are defining for a particular swimlane and users should be defined.


              Is there any possiblity of with out using swimlanes.


              Thanks for your reply RONALD...........................




              Thanks,
              Suresh





              • 4. Re: Userassignment problem
                kukeltje

                you do not need to store the actorID anywhere. It is just a string to jBPM.