org.apache.lenya.workflow
Interface WorkflowEngine


public interface WorkflowEngine

Workflow engine.

Version:
$Id: WorkflowEngine.java 473861 2006-11-12 03:51:14Z gregor $

Method Summary
 boolean canInvoke(Workflowable workflowable, Workflow workflow, java.lang.String event)
          Checks if an event can be invoked.
 void invoke(Workflowable workflowable, Workflow workflow, java.lang.String event)
          Invokes an event.
 

Method Detail

canInvoke

boolean canInvoke(Workflowable workflowable,
                  Workflow workflow,
                  java.lang.String event)
                  throws WorkflowException
Checks if an event can be invoked.

Parameters:
workflowable - The workflowable.
workflow - The workflow schema.
event - The event.
Returns:
A boolean value.
Throws:
WorkflowException - if an error occurs.

invoke

void invoke(Workflowable workflowable,
            Workflow workflow,
            java.lang.String event)
            throws WorkflowException
Invokes an event.

Parameters:
workflowable - The workflowable.
workflow - The workflow.
event - The event.
Throws:
WorkflowException - if an error occurs.


Copyright © 1999-2006 Apache Software Foundation. All Rights Reserved.