WorkflowEngine engine = new WorkflowEngineImpl();
Situation situation = getSituation();
Workflow workflow = getWorkflowSchema(workflowable);
if (force && !engine.canInvoke(workflowable, workflow, situation, event)) {
throw new WorkflowException("The event [" + event
+ "] cannot be invoked on the document [" + workflowable
+ "] in the situation [" + situation + "]");
}
engine.invoke(workflowable, workflow, situation, event);
}