3 Replies Latest reply on Jul 30, 2008 9:18 AM by Ronald van Kuijk

    Personal/Group Tasks in JBPM console and swimlanes

    Oscar S.P. Newbie

      Hello.

      Firs of all, I'm sorry if this topic is already discussed, but I've been searching and I didn't find a solution, so if any of you know a thread where I can get information about my problem, I would be very grateful to you.

      Well, my question:

      I've been using some JBPM models into Eclipse, trying to learn about it. I have some of them with some swimlanes (using expression group(actor)) defined for some tasks, and in the Hibernate DB, I have some users for those groups. The problem is that when I start (in the JBPM console) those tasks over a deployed process, the tasks are assigned to the group defined in the swimlane, (I can see it in the "pooled actors" column) but don't appear in the personal/group tasks lists of the users of the relevant groups.

      I suppose those tasks should appear in that list (as "group" tasks before any user gets the task) but I don't know if that's right and, in the case it is, why don't appear in the list.

      If you know how I could solve this, or about any thread with information, it would be great.

      Thank you!

        • 1. Re: Personal/Group Tasks in JBPM console and swimlanes
          Ronald van Kuijk Master

          the behaviour you see is the correct behaviouer. If you have a pooled actors assignment, it only shows up in the group list for that user if the user is in one of the groups or its actor id is in the pooled actors list. Once the task is ALSO assigned an actor-id, it ONLY shows up in the individual list. making that actor-id null puts makes it visible in the group list again

          • 2. Re: Personal/Group Tasks in JBPM console and swimlanes
            Oscar S.P. Newbie

             

            If you have a pooled actors assignment, it only shows up in the group list for that user if the user is in one of the groups


            Ok, so as I understand it, if the user I log in with is one of members of the group at wich the task has been assigned, the task should appear when you press "Personal/Group tasks" in JBPM console, shouldn't it?

            I mean, as the button is "Personal/Group Tasks", should appear the tasks assigned to the user's group.

            The problem is that this doesn't occur, I just have the tasks the user has started.

            As I have understood from your reply, kukeltje, there should also appear the groups tasks, but they don't, and I don't know why.

            If you need my code I can paste it but I think it is ok, the process works perfectly, just this little bad assignment.

            Sorry for being so repetitive, but I need to understand ok this tag for a demonstration I have to do.

            Thanks for your reply!

            • 3. Re: Personal/Group Tasks in JBPM console and swimlanes
              Ronald van Kuijk Master

              could be that this is an issue in the console (still) since that was modified not to see *all* tasks of *all* users. Might be that this introduced an error in the group task thing.

              Please check if it works with a unit test, without the webconsole. Remember that you have to pass the groupnames the user belongs to to the method getPooledTaskinstances(...). You cannot pass in the groupname (afaik)