public abstract class Triggerable extends Object implements Externalizable
A triggerable will dispatch the action it's performing out to all relevant nodes referenced by the context against thes current models.
| Modifier and Type | Field and Description |
|---|---|
protected XPathConditional |
expr
The expression which will be evaluated to produce a result
|
protected XPathConditional expr
public static Triggerable condition(XPathConditional expr, ConditionAction trueAction, ConditionAction falseAction, TreeReference contextRef)
public static Triggerable recalculate(XPathConditional expr, TreeReference contextRef)
public abstract Object eval(FormInstance instance, EvaluationContext ec)
protected abstract void apply(TreeReference ref, Object result, FormInstance mainInstance)
public abstract boolean canCascade()
public abstract boolean isCascadingToChildren()
public Set<TreeReference> getTriggers()
public final List<EvaluationResult> apply(FormInstance mainInstance, EvaluationContext parentContext, TreeReference context)
public Set<TreeReference> getTargets()
public void intersectContextWith(Triggerable other)
public TreeReference getContext()
public TreeReference getOriginalContext()
public void setImmediateCascades(Set<QuickTriggerable> cascades)
public Set<QuickTriggerable> getImmediateCascades()
public IConditionExpr getExpr()
public void addTarget(TreeReference target)
public void readExternal(DataInputStream in, PrototypeFactory pf) throws IOException, DeserializationException
readExternal in interface ExternalizableIOExceptionDeserializationExceptionpublic void writeExternal(DataOutputStream out) throws IOException
writeExternal in interface ExternalizableIOExceptionCopyright © 2023. All rights reserved.