public RuleBaseElement(RuleBaseElementId id) { name = id.getName(); packageName = id.getPackageName(); type = id.getType(); }
public InternalWorkflowEvent(String type) { this.type = type; this.processBag = new ProcessBag(); }
public EndRepresentation getEnd() { if (isLeaf()) { return this.end; } else { return null; } }
/** * Generates an empty task to be used for persistence queries (to get all * tasks). */ public static Task createTaskWithAllValuesSetToNull() { Task emptyTask = new Task(); emptyTask.removeAllProperties(); emptyTask.setEmpty(); return emptyTask; }
@Override public boolean equals(Object obj) { if (!(obj instanceof RuleBaseElement)) { return false; } RuleBaseElement other = (RuleBaseElement) obj; return (code == null || code.equals(other.code)) && (type == null || type.equals(other.type)) && (packageName == null || packageName.equals(other.packageName)) && (name == null || name.equals(other.name)); }
public String getName() { return (String) getProperty("name"); }
public void setTaskCreationTimestamp(Date taskCreationTimestamp) { addOrReplaceProperty("taskCreationTimestamp", taskCreationTimestamp); } }
public Task(ProcessBag bag) { super(bag); init(); }
public RuleBaseElementId generateId() { return new RuleBaseElementId(type, packageName, name); }
private static void handleEvents(Process process, ActionRepresentation root, int counter) { for (EventRepresentation event : root.getEvents()) { processEvent(process, event, counter); } }
public InternalWorkflowEvent() { this.processBag = new ProcessBag(); }
public String getDescription() { return (String) getProperty("description"); }
public void setTaskId(String id) { addOrReplaceProperty("taskId", id); }
public Task() { super(); init(); }
public String getTaskId() { return (String) getProperty("taskId"); }
public void setDescription(String description) { addOrReplaceProperty("description", description); }
public String getTaskType() { return (String) getProperty("taskType"); }
public void setTaskType(String taskType) { addOrReplaceProperty("taskType", taskType); }
public Date getTaskCreationTimestamp() { return (Date) getProperty("taskCreationTimestamp"); }
public void setName(String name) { addOrReplaceProperty("name", name); }