public void setProcessDefinition(ProcessDefinition processDefinition) { if (!equals(processDefinition)) { throw new IllegalArgumentException("process definition cannot reference another process definition"); } }
public void setProcessDefinition(ProcessDefinition processDefinition) { if (!equals(processDefinition)) { throw new IllegalArgumentException("process definition cannot reference another process definition"); } }
public boolean equals(Object o) { if (o == this) return true; if (!(o instanceof ProcessInstance)) return false; ProcessInstance other = (ProcessInstance) o; if (id != 0 && id == other.getId()) return true; return key != null && key.equals(other.getKey()) && processDefinition.equals(other.getProcessDefinition()); }
public boolean equals(Object o) { if (this == o) return true; if (!(o instanceof ModuleDefinition)) return false; ModuleDefinition other = (ModuleDefinition) o; if (id != 0 && id == other.getId()) return true; return name.equals(other.getName()) && processDefinition.equals(other.getProcessDefinition()); }
public boolean equals(Object o) { if (o == this) return true; if (!(o instanceof ProcessInstance)) return false; ProcessInstance other = (ProcessInstance) o; if (id != 0 && id == other.getId()) return true; return key != null && key.equals(other.getKey()) && processDefinition.equals(other.getProcessDefinition()); }
public boolean equals(Object o) { if (this == o) return true; if (!(o instanceof ModuleDefinition)) return false; ModuleDefinition other = (ModuleDefinition) o; if (id != 0 && id == other.getId()) return true; return name.equals(other.getName()) && processDefinition.equals(other.getProcessDefinition()); }
public boolean equals(Object o) { if (this == o) return true; if (!(o instanceof Action)) return false; Action other = (Action) o; if (id != 0 && id == other.getId()) return true; if (name != null) { // named actions are unique at the process definition level return name.equals(other.getName()) && processDefinition.equals(other.getProcessDefinition()); } return (actionDelegation != null ? actionDelegation.equals(other.getActionDelegation()) : actionExpression != null ? actionExpression.equals(other.getActionExpression()) : referencedAction != null ? referencedAction.equals(other.getReferencedAction()) : false) && event.equals(other.getEvent()); }
public boolean equals(Object o) { if (this == o) return true; if (!(o instanceof Action)) return false; Action other = (Action) o; if (id != 0 && id == other.getId()) return true; if (name != null) { // named actions are unique at the process definition level return name.equals(other.getName()) && processDefinition.equals(other.getProcessDefinition()); } return (actionDelegation != null ? actionDelegation.equals(other.getActionDelegation()) : actionExpression != null ? actionExpression.equals(other.getActionExpression()) : referencedAction != null ? referencedAction.equals(other.getActionExpression()) : false) && event.equals(other.getEvent()); }