use of org.jbpm.process.instance.impl.AssignmentAction in project jbpm by kiegroup.
the class WorkItemNodeInstance method handleAssignment.
private void handleAssignment(Assignment assignment) {
AssignmentAction action = (AssignmentAction) assignment.getMetaData("Action");
try {
ProcessContext context = new ProcessContext(getProcessInstance().getKnowledgeRuntime());
context.setNodeInstance(this);
action.execute(getWorkItem(), context);
} catch (Exception e) {
throw new RuntimeException("unable to execute Assignment", e);
}
}
Aggregations