{
log.debug("[revert] 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.revert_core(workflowService,workflowProcess,operator, caseDatabase.getWrappedObject(), userTransaction, workItem);
userTransaction.commit();
}
catch (WorkflowException ex)
{
log.error(ex, ex);