*/
public void invoke(Workflowable workflowable, String event, boolean force)
throws WorkflowException {
if (hasWorkflow(workflowable)) {
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