|
Copyright © 2006 BEA Systems, Inc. All Rights Reserved | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Workflow
A Business Smart Component (BSC) Workflow provides access to a remote instance of a BSC Workflow Implementation. A workflow defines an abstract interface to an object that implements a set of states and legal transitions between those states. This is a powerful metaphor that represents a variety of decision support structures. An implementation of a Workflow is the StateMachine class in The Theory Center's Axiom package. The Theory Center's SmartGenerator generates a workflow based on that StateMachine, directly from a State Diagram
StateMachine
Method Summary | |
---|---|
String |
doTransition(String transitionName)
Atempt to execute the specified transition and return the resulting state. |
WorkflowContext |
getContext()
This method returns a Workflow context that can be used to later restore a Workflow. |
String |
getCurrentStateName()
Get the name of the current state |
String |
getInitialStateName()
Get the name of the initial state |
String[] |
getOutgoingTransitions(String state)
Get all transition names with the start state passed in. |
String[] |
getStateNames()
Get all State names in an array of Strings. |
String[] |
getTransitionNames()
Get all transition names in an array of Strings. |
String |
lookAheadTransition(String transition)
Given the name of the transition, look ahead the transition and return the predicted new state. |
void |
reset()
Reset the current workflow state to the initial state |
void |
setContext(WorkflowContext workflowContext)
Set the new context for the underlying workflow engine. |
Method Detail |
---|
String doTransition(String transitionName) throws IllegalWorkflowTransitionException
transition
- the name of the transition to be performed
IllegalWorkflowTransitionException
- if the transition is invalidWorkflowContext getContext()
String getCurrentStateName()
String getInitialStateName()
String[] getStateNames()
String[] getTransitionNames()
String[] getOutgoingTransitions(String state) throws IllegalWorkflowTransitionException
IllegalWorkflowTransitionException
String lookAheadTransition(String transition) throws IllegalWorkflowTransitionException
transition
- the name of the transition to be performed
IllegalWorkflowTransitionException
- if the transition is invalidvoid reset()
void setContext(WorkflowContext workflowContext)
WorkflowContext
- the new context for the underlying workflow engine.
|
Copyright © 2006 BEA Systems, Inc. All Rights Reserved | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |