1 Reply Latest reply on Jun 9, 2008 3:50 PM by pjacobsen

    Swimlane Instance Reassignment

      So I've seen Jiras for this topic, but I'm not quite sure how to reassign a swimlane instance to new actors. Here's the situation:

      Swimlane instance is assigned to actors: "A" & "B"

      String actorsString = "A,B";
      String[] actorsArray = actorsString.split(",");
      swimlaneInstance.setPooledActors(actorsArray);
      


      Swimlane instance is assigned to actors: "C" & "D"
      String actorsString = "C,D";
      String[] actorsArray = actorsString.split(",");
      swimlaneInstance.setPooledActors(actorsArray);
      


      This, however, just adds C & D (i.e. the swimlane now is assigned to "A", "B", "C", and "D") versus replacing A & B. How do I get this to reassign the swimlane instance to C & D? Thanks!

        • 1. Re: Swimlane Instance Reassignment

          Believe I answered this one for myself... this relationship is defined as inverse="true" in the Hibernate mappings... therefore changing the pooledactor set on the swimlane will no effect to the persistent data.

          We must change the assinment on the PooledActor side:

          pooledActor.setSwimlaneInstance(null);