3 Replies Latest reply on Sep 16, 2010 6:31 AM by mwohlf

    Swimlanes and Task Assignements

    speleomaniac

      Hi everybody,

       

      I want to ask you something about swimlanes and task assignements....

       

      I have a following swimlane definition

       

       

      So when I define that a task should be assigned to swimlane 'Marketing' is jbpm engine would enforce that only the members of the group 'Marketing' would see that and the task can only be assigned to the members of the group 'Marketing'....

       

      But that is not the behaviour that I am seeing at the jbpm-console but I am not sure that is not the functionality of the jbpm console or jbpm engine is not trying to enforce this at all....

       

      When I debug, I notice that the task gets the Actor Pool 'Marketing' but no other enforcing action is there, I can even assign an user from another group.....

       

      I have now difficulties to understand the existence reasons for swimlanes....If swimlanes are not there to enforce which users are assignable for a task, why do we need it?

       

      Thx for the answers...

        • 1. Re: Swimlanes and Task Assignements
          mwohlf
          • 2. Re: Swimlanes and Task Assignements
            speleomaniac

            Naturally I read the document but I can say that it is not behaving like it is there described, at least not with jbpm console

             

            For ex...

             

            '11.7. Swimlane in start task

            A swimlane can be associated with the start task to capture the process initiator.

            A task can be specified in a start-state. That task be associated with a swimlane. When a new task instance is created for such a task, the current authenticated actor will be captured with Authentication.getAuthenticatedActorId() and that actor will be stored in the swimlane of the start task.'

             

            That is definitely not happening, the group that I defined for the swimming lane is assigned to the task as ActorPool but Task is not assigned to the actually authenticated user, I have to do that manually....

             

            To make the thing worse, I can assign an actor that is not belonging to the group defined in the swimlane and jbpm doesn't complain about that also....

            • 3. Re: Swimlanes and Task Assignements
              mwohlf

              yeah that's the behaviour for jBPM3, if you are using jBPM4 it's a different story, the user starting the process is stored in the history, see this thread: http://community.jboss.org/thread/154420

               

              furthermore as far as i understand the concept of a swimlane: its job is to provide a kind of "process role" in order to assign the same user(s) to a number of tasks, being able to override the assigned user, like you describe, is not a problem in my opinion, it is a valid business case in my opinion and your application code should handle this and decide if this can be done or not.