org.apache.lenya.workflow
Interface Transition

All Known Implementing Classes:
TransitionImpl

public interface Transition

A transition describes the switching of a workflow instance from one state to another. A transition has

Additionally, a transition can be marked as synchronized.


Method Summary
 boolean canFire(Situation situation, WorkflowInstance instance)
          Returns if the transition can fire in a certain situation.
 Action[] getActions()
          Returns the actions of this transition.
 Event getEvent()
          Returns the event of this transition.
 boolean isSynchronized()
          Returns if this transition is synchronized.
 

Method Detail

getEvent

Event getEvent()
Returns the event of this transition.

Returns:
the event

getActions

Action[] getActions()
Returns the actions of this transition.

Returns:
the actions

canFire

boolean canFire(Situation situation,
                WorkflowInstance instance)
                throws WorkflowException
Returns if the transition can fire in a certain situation.

Parameters:
situation - the situation for which the query is requested.
instance - The workflow instance to invoke the transition on.
Returns:
true if the transition can fire in the given situation.
Throws:
WorkflowException - when an error occurs.

isSynchronized

boolean isSynchronized()
Returns if this transition is synchronized.

Returns:
A boolean value.


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