public boolean equals(Object o) { if (this == o) return true; if (!(o instanceof Swimlane)) return false; Swimlane other = (Swimlane) o; if (id != 0 && id == other.getId()) return true; return name.equals(other.getName()) && taskMgmtDefinition.equals(other.getTaskMgmtDefinition()); }
public void addSwimlane( Swimlane swimlane ) { if (swimlanes==null) swimlanes = new HashMap(); swimlanes.put(swimlane.getName(), swimlane); swimlane.setTaskMgmtDefinition(this); }
public SwimlaneInstance getInitializedSwimlaneInstance(ExecutionContext executionContext, Swimlane swimlane) { // initialize the swimlane if (swimlaneInstances == null) swimlaneInstances = new HashMap(); SwimlaneInstance swimlaneInstance = (SwimlaneInstance) swimlaneInstances.get(swimlane .getName()); if (swimlaneInstance == null) { swimlaneInstance = new SwimlaneInstance(swimlane); addSwimlaneInstance(swimlaneInstance); // assign the swimlaneInstance performAssignment(swimlane.getAssignmentDelegation(), swimlane.getActorIdExpression(), swimlane .getPooledActorsExpression(), swimlaneInstance, executionContext); } return swimlaneInstance; }
Swimlane swimlane = new Swimlane(swimlaneName); Element assignmentElement = swimlaneElement.element("assignment"); if (assignmentElement.attribute("actor-id") != null || assignmentElement.attribute("pooled-actors") != null) { swimlane.setActorIdExpression(assignmentElement.attributeValue("actor-id")); swimlane.setPooledActorsExpression(assignmentElement.attributeValue("pooled-actors")); swimlane.setAssignmentDelegation(assignmentDelegation);
public void verifySwimlaneAssignments() { TaskMgmtDefinition taskMgmtDefinition = processDefinition.getTaskMgmtDefinition(); Map swimlanes; if (taskMgmtDefinition != null && (swimlanes = taskMgmtDefinition.getSwimlanes()) != null) { Task startTask = taskMgmtDefinition.getStartTask(); Swimlane startTaskSwimlane = startTask != null ? startTask.getSwimlane() : null; for (Iterator iter = swimlanes.values().iterator(); iter.hasNext();) { Swimlane swimlane = (Swimlane) iter.next(); if (swimlane.getAssignmentDelegation() == null && swimlane != startTaskSwimlane) { addWarning("swimlane '" + swimlane.getName() + "' does not have an assignment"); } } } }
public SwimlaneInstance(Swimlane swimlane) { this.name = swimlane.getName(); this.swimlane = swimlane; }
public SwimlaneInstance getInitializedSwimlaneInstance(ExecutionContext executionContext, Swimlane swimlane) { // initialize the swimlane if (swimlaneInstances == null) swimlaneInstances = new HashMap(); SwimlaneInstance swimlaneInstance = (SwimlaneInstance) swimlaneInstances.get(swimlane .getName()); if (swimlaneInstance == null) { swimlaneInstance = new SwimlaneInstance(swimlane); addSwimlaneInstance(swimlaneInstance); // assign the swimlaneInstance performAssignment(swimlane.getAssignmentDelegation(), swimlane.getActorIdExpression(), swimlane .getPooledActorsExpression(), swimlaneInstance, executionContext); } return swimlaneInstance; }
Swimlane swimlane = new Swimlane(swimlaneName); Element assignmentElement = swimlaneElement.element("assignment"); if (assignmentElement.attribute("actor-id") != null || assignmentElement.attribute("pooled-actors") != null) { swimlane.setActorIdExpression(assignmentElement.attributeValue("actor-id")); swimlane.setPooledActorsExpression(assignmentElement.attributeValue("pooled-actors")); swimlane.setAssignmentDelegation(assignmentDelegation);
public void addSwimlane( Swimlane swimlane ) { if (swimlanes==null) swimlanes = new HashMap(); swimlanes.put(swimlane.getName(), swimlane); swimlane.setTaskMgmtDefinition(this); }
public void verifySwimlaneAssignments() { TaskMgmtDefinition taskMgmtDefinition = processDefinition.getTaskMgmtDefinition(); Map swimlanes; if (taskMgmtDefinition != null && (swimlanes = taskMgmtDefinition.getSwimlanes()) != null) { Task startTask = taskMgmtDefinition.getStartTask(); Swimlane startTaskSwimlane = startTask != null ? startTask.getSwimlane() : null; for (Iterator iter = swimlanes.values().iterator(); iter.hasNext();) { Swimlane swimlane = (Swimlane) iter.next(); if (swimlane.getAssignmentDelegation() == null && swimlane != startTaskSwimlane) { addWarning("swimlane '" + swimlane.getName() + "' does not have an assignment"); } } } }
public SwimlaneInstance(Swimlane swimlane) { this.name = swimlane.getName(); this.swimlane = swimlane; }
public boolean equals(Object o) { if (this == o) return true; if (!(o instanceof Swimlane)) return false; Swimlane other = (Swimlane) o; if (id != 0 && id == other.getId()) return true; return name.equals(other.getName()) && taskMgmtDefinition.equals(other.getTaskMgmtDefinition()); }