@Override public String toString() { String value = "Instance " + getUUID() + "(state:" + getInstanceState(); if (getParentInstanceUUID() != null) { value += ", child of " + getParentInstanceUUID(); } value += ")"; return value; }
@Override public TaskInstance getTask() { if (isTask()) { return this; } return null; }
public InstanceState getInstanceState() { if (getEndedBy() != null) { return InstanceState.FINISHED; } if (getStartedBy() != null) { return InstanceState.STARTED; } return InstanceState.INITIAL; }
public WebTemporaryTokenImpl(WebTemporaryTokenImpl src) { super(); this.token = src.getToken(); this.expirationDate = src.getExpirationDate(); this.identityKey = src.getIdentityKey(); }
@Override public boolean equals(final Object anObject) { if (anObject == null) { return false; } if (!(anObject instanceof LabelImpl)) { return false; } final LabelImpl other = (LabelImpl) anObject; return super.equals(other) && getOwnerName().equals(other.getOwnerName()); }
@Override public SubflowBodyUUID getUUID() { return (SubflowBodyUUID) super.getUUID(); }
public CaseImpl(ProcessInstanceUUID uuid, String ownerName, String labelName) { super(); this.uuid = uuid; this.labelName = labelName; this.ownerName = ownerName; this.label = buildLabel(this.ownerName, this.labelName); }
public boolean isTaskAssigned() { try { return getTaskUser() != null; } catch (IllegalStateException e) { return false; } }
public ActivityInstanceUUID getActivityInstanceUUID() { if (activityInstance == null) { return null; } return activityInstance.getUUID(); }
public WebTemporaryTokenImpl(WebTemporaryTokenImpl src) { super(); this.token = src.getToken(); this.expirationDate = src.getExpirationDate(); this.identityKey = src.getIdentityKey(); }
@Override public boolean equals(final Object anObject) { if (anObject == null) { return false; } if (!(anObject instanceof LabelImpl)) { return false; } final LabelImpl other = (LabelImpl) anObject; return super.equals(other) && getOwnerName().equals(other.getOwnerName()); }
@Override public RouteBodyUUID getUUID() { return (RouteBodyUUID) super.getUUID(); }
public CaseImpl(ProcessInstanceUUID uuid, String ownerName, String labelName) { super(); this.uuid = uuid; this.labelName = labelName; this.ownerName = ownerName; this.label = buildLabel(this.ownerName, this.labelName); }
@Override public TaskInstance getTask() { if (isTask()) { return this; } return null; }
public boolean isTaskAssigned() { try { return getTaskUser() != null; } catch (IllegalStateException e) { return false; } }
@Override public AutomaticBodyUUID getUUID() { return (AutomaticBodyUUID) super.getUUID(); }
public void setLabelName(String labelName) { this.labelName = labelName; this.label = buildLabel(ownerName, labelName); }
@Override public TaskUUID getUUID() { return (TaskUUID) super.getUUID(); }
public void setLabelName(String labelName) { this.labelName = labelName; this.label = buildLabel(ownerName, labelName); }
@Override public AutomaticBodyUUID getUUID() { return (AutomaticBodyUUID) super.getUUID(); }