use of io.automatiko.engine.workflow.base.instance.impl.workitem.WorkItemImpl in project automatiko-engine by automatiko-io.
the class LightWorkItemManager method internalCompleteWorkItem.
public void internalCompleteWorkItem(WorkItem workItem) {
ProcessInstance processInstance = workItem.getProcessInstance();
((WorkItemImpl) workItem).setState(COMPLETED);
workItem.setCompleteDate(new Date());
// process instance may have finished already
if (processInstance != null) {
processInstance.signalEvent("workItemCompleted", workItem);
}
workItems.remove(workItem.getId());
}
Aggregations