com.googlecode.jinahya.util.fsm
Interface TransitionContext


public interface TransitionContext

Author:
Jin Kwon

Method Summary
 Object getProprety(String name, String ownerId)
           
 Object getProprety(Task owner, String name)
           
 Transition getTransition()
          Returns transition.
 void setPerformAfter(String targetTaskId)
          Makes sure the task calling this method be performed after the task identified by sourceTaskId.
 void setPerformBefore(String sourceTaskId)
          Make sure the task calling this method be performed before the task identified by targetTaskId.
 void setProperty(Task owner, String name, Object value)
           
 

Method Detail

getTransition

Transition getTransition()
Returns transition.

Returns:
transition

setPerformAfter

void setPerformAfter(String targetTaskId)
                     throws FSMException
Makes sure the task calling this method be performed after the task identified by sourceTaskId.

Parameters:
targetTaskId - the id of task which must be performed before this task
Throws:
FSMException - if sourceTaskId is unknown or illegal dependency detected.

setPerformBefore

void setPerformBefore(String sourceTaskId)
                      throws FSMException
Make sure the task calling this method be performed before the task identified by targetTaskId.

Parameters:
sourceTaskId - the id of task which must be performed after this task
Throws:
FSMException - if targetTaskId is unknown or illegal dependency detected

setProperty

void setProperty(Task owner,
                 String name,
                 Object value)

getProprety

Object getProprety(Task owner,
                   String name)

getProprety

Object getProprety(String name,
                   String ownerId)


Copyright © 2011. All Rights Reserved.