4 Replies Latest reply on Mar 29, 2007 8:01 PM by O Y

    About swimlanes

    Pedro Rolo Newbie

      Hello.

      I am trying to attribute task-nodes to users/groups in my jpdl.
      The idea is to have a group (bank/acquirer) which is able to do each task.
      The main difficulty is that each virtual group (e.g. bank) is, depending on the current user, bank A or bank B, each with its own set of users.

      I was inspired by the source code examples of jBPM, and thought of doing something like:


      ....
      <task-node xxx>

      etc..

      However, I can't find information on what the swimlane assignment expression can contain, nor can I find relevant information on separating the tasks between the users of bank A and the users of bank B, which belong to the same swimlane.

      Any info/opinions/ideas would be greatly appreciated.
      TIA

        • 1. Re: About swimlanes
          Pedro Rolo Newbie

          Sorry, the example is not correct.
          It should read:

          swimlane name="bank" assignment="??">
          ...
          <task-node xxx>
          <swimlane name="bank">
          ...


          • 2. Re: About swimlanes
            Arjan van Bentem Novice

             

            "pedror" wrote:
            I can't find information on what the swimlane assignment expression can contain

            I wonder if you really want to use the expression attribute -- which is NOT a jPDL expression, but an assignment expression. But when using it, do you need more documentation than given in 11.11.2. Assignment expressions?

            I guess that, instead of the assignment expression, you should set a jPDL expression on the actor-id. So (not too sure about the jPDL syntax here):
            <swimlane name="bank" actor-id="myVariable.pooledActors">

            Or in Seam I'd try:
            <swimlane name="bank" actor-id="#{myComponent.pooledActors}">



            "pedror" wrote:
            nor can I find relevant information on separating the tasks between the users of bank A and the users of bank B, which belong to the same swimlane.


            I wonder at which point you decide which bank is involved. I think that, using the jPDL expression in the actor-id of the swimlane, you could assign the bank-specific pool? See setPooledActors.

            Arjan.


            • 3. Re: About swimlanes
              Pedro Rolo Newbie

              Arjan,
              Thanks for the input.
              It is just what I needed.

              • 4. Re: About swimlanes
                O Y Newbie

                 


                I guess that, instead of the assignment expression, you should set a jPDL expression on the actor-id. So (not too sure about the jPDL syntax here):
                <swimlane name="bank" actor-id="myVariable.pooledActors">

                Or in Seam I'd try:
                <swimlane name="bank" actor-id="#{myComponent.pooledActors}">



                Arjan, could you please explain how to define myVariable and myComponent here? are they user defined classes? thanks!