7 Replies Latest reply on Nov 28, 2006 4:21 PM by kukeltje

    Role Management

    nib

      Hallo,

      is it possible to assign roles and not user names to tasks in processes? In this case how do I assign user names to roles?

      NiB

        • 1. Re: Role Management
          nib

          P.S.: I don't mean swimlanes because you have to assign user names to every process and in my application user names change in time.

          • 2. Re: Role Management

            Do the users change over time or just the user names? Are you using the default jBPM identity module to manage users or a different one?

            • 3. Re: Role Management
              nib

              Both :-)

              Default module.

              • 4. Re: Role Management

                AFAIK, it is not possible to assign roles to tasks. However, you can assign roles to pooledActors property, and then let your app pick the correct user and assign him to the task instance.

                BTW, remember that in some point there is no difference between roles and users; e.g., you can assign roles AND users to the pooledActors property, and that would be fine.

                Regards.

                • 5. Re: Role Management

                  To assign users to roles, you only need to insert the corresponding data in tables JBPM_ID_GROUP, JBPM_ID_MEMBERSHIP (which is nothing but a join table between users and roles, as you mas see in the Wiki).

                  Regards.

                  • 6. Re: Role Management
                    nib

                    Yes i see that might be possible. Nevertheless for a real business application not acceptable. Has anyone developed a replacement for this role model?

                    • 7. Re: Role Management
                      kukeltje

                      why 'not acceptable'? To little functionality? If so, then look in the forums for posts on exchanging the the identity model.