{
log.debug("[accept] workitem: " + workItem);
WorkflowActivity workflowActivity = workItem.getWorkflowActivity();
WorkflowPackage workflowPackage = workflowProcess.getWorkflowPackage();
WorkflowService workflowService=getCaseDatabase().getWorkflowService();
CaseDatabaseImpl caseDatabase =(CaseDatabaseImpl) workflowService.getCaseDatabase();
UserTransaction userTransaction = caseDatabase.getUserTransaction();
boolean resultDone = false;
try
{
resultDone = DispatchController.accept_core(workflowService,workflowProcess,operator, caseDatabase.getWrappedObject(), userTransaction, workItem);