6 Replies Latest reply on Nov 1, 2005 4:19 AM by afrit

    swimlane question!!!

    afrit

      if i replace the swimlane in the processdefine with:

      <swimlane name="swim">
       <assignment expression="group(agent1)" />
       <assignment expression="group(agent2)" />
      </swimlane>
      

      have only
      <expression>group(agent1)</expression>
      in table of jbpm_delegation,why?
      but
      <assignment expression="group(agent2)" />
      ?



        • 1. Re: swimlane question!!!
          aymanson

          Take a look in the schema and you'll find that swimlane only allow one assignment element. The JpdlXmlReader won't throw exception for that. You need to check it yourself.

          • 2. Re: swimlane question!!!
            afrit

            If the swimlane expression points to two groups, how is this assigned?

            Thanks.

            • 3. Re: swimlane question!!!
              aymanson

              I think you may need to write your own assignment handler to handle that. However, your definition is not good enough because you do not specify the relationship between two assignment.
              If the relationship is OR and you are using the identity model JBPM provides, you can create a parent group which include these 2 child groups in database.

              • 4. Re: swimlane question!!!
                afrit

                 

                "aymanson" wrote:
                If the relationship is OR and you are using the identity model JBPM provides, you can create a parent group which include these 2 child groups in database.

                how define it using the identity?

                • 5. Re: swimlane question!!!
                  aymanson

                  The Group class has a method addChild. you can create subgroup by that. It requires the knowledge of hibernate. I am not using the JBPM identity model so I won't be able to give detail information for that.

                  • 6. Re: swimlane question!!!
                    afrit

                    to aymanson
                    very thanks!!!!!