Search in sources :

Example 1 with Variables

use of org.whole.lang.workflows.model.Variables in project whole by wholeplatform.

the class WorkflowsIDEInterpreterVisitor method visit.

@Override
public void visit(Breakpoint entity) {
    setResult(null);
    IBindingManager debugEnv = getBindings();
    if (entity.getDisabled().wBooleanValue() || (debugEnv.wIsSet("debug#reportModeEnabled") && !debugEnv.wBooleanValue("debug#reportModeEnabled")) || (debugEnv.wIsSet("debug#debugModeEnabled") && !debugEnv.wBooleanValue("debug#debugModeEnabled")) || (debugEnv.wIsSet("debug#breakpointsEnabled") && !debugEnv.wBooleanValue("debug#breakpointsEnabled")))
        return;
    Condition condition = entity.getCondition();
    if (!EntityUtils.isResolver(condition)) {
        if (!BehaviorUtils.evaluatePredicate(condition, 0, debugEnv))
            return;
    }
    Set<String> includeNames = new TreeSet<String>();
    Variables variables = entity.getShowVariables();
    if (Matcher.matchImpl(WorkflowsEntityDescriptorEnum.Variables, variables)) {
        for (Variable variable : variables) includeNames.add(variable.getValue());
    }
    E4Utils.suspendOperation(SuspensionKind.BREAK, null, entity, debugEnv, includeNames);
}
Also used : Condition(org.whole.lang.workflows.model.Condition) Variables(org.whole.lang.workflows.model.Variables) Variable(org.whole.lang.workflows.model.Variable) TreeSet(java.util.TreeSet) IBindingManager(org.whole.lang.bindings.IBindingManager)

Aggregations

TreeSet (java.util.TreeSet)1 IBindingManager (org.whole.lang.bindings.IBindingManager)1 Condition (org.whole.lang.workflows.model.Condition)1 Variable (org.whole.lang.workflows.model.Variable)1 Variables (org.whole.lang.workflows.model.Variables)1