|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface WorkflowManager
Manager for workflow issues. This is the main entry point for workflow-related tasks. You can safely invoke all methods for non-workflow documents.
Field Summary | |
---|---|
static java.lang.String |
ROLE
The Avalon role. |
Method Summary | |
---|---|
boolean |
canInvoke(Workflowable workflowable,
java.lang.String event)
Checks if an event can be invoked on a document. |
Workflow |
getWorkflowSchema(Workflowable workflowable)
Resolves the workflow schema of a workflowable. |
boolean |
hasWorkflow(Workflowable workflowable)
Checks if a workflowable has a workflow. |
void |
invoke(Workflowable workflowable,
java.lang.String event)
Invokes a workflow event on a document. |
void |
invoke(Workflowable workflowable,
java.lang.String event,
boolean force)
Invokes a workflow event on a document. |
Field Detail |
---|
static final java.lang.String ROLE
Method Detail |
---|
void invoke(Workflowable workflowable, java.lang.String event) throws WorkflowException
invoke(Document, String, true)
.
workflowable
- The workflowable.event
- The name of the event.
WorkflowException
- if the event could not be invoked in the
current situation.void invoke(Workflowable workflowable, java.lang.String event, boolean force) throws WorkflowException
workflowable
- The document.event
- The name of the event.force
- If this is set to true
, the execution is
forced, which means an exception is thrown if the workflowable in
the set does not support the event. If set to
false
, non-supporting documents are ignored.
WorkflowException
- if the event could not be invoked in the
current situation.boolean canInvoke(Workflowable workflowable, java.lang.String event)
workflowable
- The workflowable.event
- The event.
boolean hasWorkflow(Workflowable workflowable)
workflowable
- The workflowable.
Workflow getWorkflowSchema(Workflowable workflowable) throws WorkflowException
workflowable
- The workflowable.
WorkflowException
- if the document has no workflow.
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |