log.debug(
"[dispatch_xorJoin] workitem: " + workflowWork.getInfo() + " | transition: " + workflowTransition.getInfo());
WorkflowServiceBase context = (WorkflowServiceBase) workflowService;
EventMonitorThread eventMonitorThread = context.getEventMonitorThread(workflowProcess.getWorkflowPackage());
MonitorEvent monitorEvent =
new MonitorEvent(workflowService, workflowProcess, operator, userTransaction, workflowWork, workflowTransition);
eventMonitorThread.sendEvent(monitorEvent);
MonitorEventResult eventResult = monitorEvent.getResult();
if (eventResult.getException() != null)
{
eventResult.getException().printStackTrace();
throw new WorkflowException(eventResult.getException());