summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRainer Pielmann2012-11-22 07:15:20 (EST)
committer Sven Rottstock2012-11-22 07:15:20 (EST)
commit9b75d13467f664afd11ccbb6b9aeda9520a96fd5 (patch)
tree931244df904e1e212bd8c98daaa7a955ed90b197
parentf753a2d8603f0ed8297a6e22dd0276ee1f6f32a9 (diff)
downloadorg.eclipse.stardust.ide-9b75d13467f664afd11ccbb6b9aeda9520a96fd5.zip
org.eclipse.stardust.ide-9b75d13467f664afd11ccbb6b9aeda9520a96fd5.tar.gz
org.eclipse.stardust.ide-9b75d13467f664afd11ccbb6b9aeda9520a96fd5.tar.bz2
CRNT-27116 Web Base Modeler: Deployment error observed when Organisation having Team Leader
git-svn-id: http://emeafrazerg/svn/ipp/product/trunk/stardust/ide@61030 8100b5e0-4d52-466c-ae9c-bdeccbdeaf6b
-rw-r--r--model/org.eclipse.stardust.model.xpdl.builder/src/main/java/org/eclipse/stardust/model/xpdl/builder/utils/ModelBuilderFacade.java14
1 files changed, 14 insertions, 0 deletions
diff --git a/model/org.eclipse.stardust.model.xpdl.builder/src/main/java/org/eclipse/stardust/model/xpdl/builder/utils/ModelBuilderFacade.java b/model/org.eclipse.stardust.model.xpdl.builder/src/main/java/org/eclipse/stardust/model/xpdl/builder/utils/ModelBuilderFacade.java
index 6efb199..619ea06 100644
--- a/model/org.eclipse.stardust.model.xpdl.builder/src/main/java/org/eclipse/stardust/model/xpdl/builder/utils/ModelBuilderFacade.java
+++ b/model/org.eclipse.stardust.model.xpdl.builder/src/main/java/org/eclipse/stardust/model/xpdl/builder/utils/ModelBuilderFacade.java
@@ -164,6 +164,20 @@ public class ModelBuilderFacade
public void setTeamLeader(OrganizationType organization, RoleType role)
{
organization.setTeamLead(role);
+ List<ParticipantType> participants = organization.getParticipant();
+ ParticipantType removeType = null;
+ for (Iterator<ParticipantType> i = participants.iterator(); i.hasNext();)
+ {
+ ParticipantType participant = i.next();
+ if (participant.getParticipant().getId().equals(role.getId()))
+ {
+ removeType = participant;
+ }
+ }
+ if (removeType != null)
+ {
+ participants.remove(removeType);
+ }
}
/**