org.apache.lenya.workflow.impl
Class BooleanVariableAssignmentImpl

java.lang.Object
  extended by org.apache.lenya.workflow.impl.BooleanVariableAssignmentImpl
All Implemented Interfaces:
Action, BooleanVariableAssignment

public class BooleanVariableAssignmentImpl
extends java.lang.Object
implements BooleanVariableAssignment

Implementation of a boolean variable assignment.


Constructor Summary
protected BooleanVariableAssignmentImpl(BooleanVariableImpl variable, boolean value)
          Ctor.
 
Method Summary
 void execute(WorkflowInstance instance)
          Executes this action for a given workflow instance.
 boolean getValue()
          Returns the value of this assignment.
 BooleanVariableImpl getVariable()
          Returns the variable of this assignment.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BooleanVariableAssignmentImpl

protected BooleanVariableAssignmentImpl(BooleanVariableImpl variable,
                                        boolean value)
Ctor.

Parameters:
variable - The variable.
value - The value.
Method Detail

execute

public void execute(WorkflowInstance instance)
             throws WorkflowException
Description copied from interface: Action
Executes this action for a given workflow instance.

Specified by:
execute in interface Action
Parameters:
instance - the workflow instance
Throws:
WorkflowException - if the execution failed
See Also:
Action.execute(org.apache.lenya.workflow.WorkflowInstance instance)

getValue

public boolean getValue()
Returns the value of this assignment.

Returns:
A boolean value.

getVariable

public BooleanVariableImpl getVariable()
Returns the variable of this assignment.

Returns:
A variable.


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