org.kuali.rice.kew.actions
Class SimpleBooleanSplitNode
java.lang.Object
org.kuali.rice.kew.actions.SimpleBooleanSplitNode
- All Implemented Interfaces:
- Node, SplitNode
public class SimpleBooleanSplitNode
- extends Object
- implements SplitNode
This is a test split class that always returns "False".
- Author:
- Kuali Rice Team (rice.collab@kuali.org)
Method Summary |
protected SplitResult |
booleanToSplitResult(boolean b)
Converts a boolean value to SplitResult where the branch name is "True" or "False" based on the value of the given boolean |
SplitResult |
process(RouteContext context,
RouteHelper helper)
This method will look up the document being routed, if it is an instance of ResearchDocumentBase
it will call answerSplitNodeQuestion on it passing the name of the route node. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SimpleBooleanSplitNode
public SimpleBooleanSplitNode()
process
public SplitResult process(RouteContext context,
RouteHelper helper)
throws Exception
- This method will look up the document being routed, if it is an instance of ResearchDocumentBase
it will call answerSplitNodeQuestion on it passing the name of the route node. The default implementation (currently)
throws an UnsupportedOperationException for any input. If one wishes to support the SplitNode for a given document, the
method should be overridden and return boolean T/F based on which of the branches ( always names "True" and "False" )
KEW should route to based upon the name of the split node.
- Specified by:
process
in interface SplitNode
- Throws:
Exception
- See Also:
SimpleNode.process(org.kuali.rice.kew.engine.RouteContext, org.kuali.rice.kew.engine.RouteHelper)
booleanToSplitResult
protected SplitResult booleanToSplitResult(boolean b)
- Converts a boolean value to SplitResult where the branch name is "True" or "False" based on the value of the given boolean
- Parameters:
b
- a boolean to convert to a SplitResult
- Returns:
- the converted SplitResult
Copyright © 2005-2013 The Kuali Foundation. All Rights Reserved.