org.kuali.rice.krms.impl.validation
Class ValidationAction

java.lang.Object
  extended by org.kuali.rice.krms.impl.validation.ValidationAction
All Implemented Interfaces:
Action

public class ValidationAction
extends Object
implements Action

An Action that when executed appends its type and message to the results

Author:
Kuali Rice Team (rice.collab@kuali.org)

Constructor Summary
ValidationAction(ValidationActionType type, String message)
          create a Validation action of the given type with the given message
 
Method Summary
 void execute(ExecutionEnvironment environment)
          Execute on a given ExecutionEnvironment.
 void executeSimulation(ExecutionEnvironment environment)
          The engine may be run in a simulation mode and in this case, most actions should not be executed.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ValidationAction

public ValidationAction(ValidationActionType type,
                        String message)
create a Validation action of the given type with the given message

Parameters:
type - ValidationActionType
message - for when action executes
Method Detail

execute

public void execute(ExecutionEnvironment environment)
Description copied from interface: Action
Execute on a given ExecutionEnvironment.

Specified by:
execute in interface Action
Parameters:
environment - ExecutionEnvironment to execute.

executeSimulation

public void executeSimulation(ExecutionEnvironment environment)
Description copied from interface: Action
The engine may be run in a simulation mode and in this case, most actions should not be executed. However, if part or all of an action needs to be run in order for proper rule evaluation to proceed, it should be called herein.

Specified by:
executeSimulation in interface Action
Parameters:
environment - ExecutionEnvironment to simulate execution on.


Copyright © 2005–2014 The Kuali Foundation. All rights reserved.