com.werken.blissed.jelly
Class JellyGuard
java.lang.Object
|
+--com.werken.blissed.jelly.JellyGuard
- All Implemented Interfaces:
- Guard
- public class JellyGuard
- extends java.lang.Object
- implements Guard
Transition Guard
implemented using a Jelly Script
.
Within the jelly script, the tags <pass> and <fail> can be
used to immediately signal guard passage or failure and circumvent the
evaluation of the remainder of the script. If the script processes entirely
without encountering an exception, it is considered to have passed, and
test(com.werken.blissed.Transition, com.werken.blissed.ProcessContext)
returns true
.
- Version:
- $Id $
- Author:
- bob mcwhirter
Constructor Summary |
JellyGuard(org.apache.commons.jelly.Script script)
Construct. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JellyGuard
public JellyGuard(org.apache.commons.jelly.Script script)
- Construct.
- Parameters:
script
- The jelly guard script.
getScript
public org.apache.commons.jelly.Script getScript()
- Retrieve the Jelly script.
- Returns:
- The jelly script.
test
public boolean test(Transition transition,
ProcessContext context)
- Test this guard against a procession.
- Specified by:
test
in interface Guard
- Parameters:
transition
- The transition this guard guards.context
- The process context.- Returns:
true
if the procession passes
this guard, otherwise false
.
Copyright © 2002-2002 The Werken Company. All Rights Reserved.