Context.getCommandContext()
.getHistoricTaskInstanceManager()
.createHistoricTask(task);
// All properties set, now firing 'create' event
task.fireEvent(TaskListener.EVENTNAME_CREATE);
}
public void signal(ActivityExecution execution, String signalName, Object signalData) throws Exception {
leave(execution);
}