org.squirrelframework.foundation.fsm.builder
Interface When<T extends StateMachine<T,S,E,C>,S,E,C>

Type Parameters:
T - type of State Machine
S - type of State
E - type of Event
C - type of Context
All Known Subinterfaces:
EntryExitActionBuilder<T,S,E,C>, On<T,S,E,C>
All Known Implementing Classes:
DeferBoundActionBuilderImpl

public interface When<T extends StateMachine<T,S,E,C>,S,E,C>

When clause builder which is used to install actions during transition

Author:
Henry.He

Method Summary
 void callMethod(String methodName)
          Define action method to be called during transition
 void evalMvel(String expression)
          Define mvel action to be performed during transition
 void perform(Action<T,S,E,C> action)
          Define action to be performed during transition
 void perform(List<Action<T,S,E,C>> actions)
          Define actions to be performed during transition
 

Method Detail

perform

void perform(Action<T,S,E,C> action)
Define action to be performed during transition

Parameters:
action - performed action

perform

void perform(List<Action<T,S,E,C>> actions)
Define actions to be performed during transition

Parameters:
actions - performed actions

evalMvel

void evalMvel(String expression)
Define mvel action to be performed during transition

Parameters:
expression - mvel expression

callMethod

void callMethod(String methodName)
Define action method to be called during transition

Parameters:
methodName - method name


Copyright © 2013-2014. All Rights Reserved.