throws WorkflowException, ScriptException
{
log.debug("[dispatch_core] workitem: " + workflowWork.getInfo());
WorkflowActivity workflowActivity = workflowWork.getWorkflowActivity();
WorkflowActivityEvent event = new WorkflowActivityEvent(workflowWork, WorkflowActivityEvent.WORK_DISPATCH);
WorkflowActivityListener[] listeners = workflowActivity.getWorkflowActivityListeners();
for (int i = 0; i < listeners.length; ++i)
{
listeners[i].beforeDispatched(event);
}