Search in sources :

Example 11 with Variable

use of org.whole.lang.workflows.model.Variable 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

Variable (org.whole.lang.workflows.model.Variable)11 IEntity (org.whole.lang.model.IEntity)7 IBindingManager (org.whole.lang.bindings.IBindingManager)5 IEntityIterator (org.whole.lang.iterators.IEntityIterator)4 Expressions (org.whole.lang.workflows.model.Expressions)4 Method (java.lang.reflect.Method)3 MissingVariableException (org.whole.lang.visitors.MissingVariableException)3 VisitException (org.whole.lang.visitors.VisitException)3 InvokeJavaClassMethod (org.whole.lang.workflows.model.InvokeJavaClassMethod)3 InvokeJavaInstanceMethod (org.whole.lang.workflows.model.InvokeJavaInstanceMethod)3 IOException (java.io.IOException)2 IWholeRuntimeException (org.whole.lang.exceptions.IWholeRuntimeException)2 WholeIllegalArgumentException (org.whole.lang.exceptions.WholeIllegalArgumentException)2 ParseException (org.whole.lang.parsers.ParseException)2 Constructor (java.lang.reflect.Constructor)1 TreeSet (java.util.TreeSet)1 IArtifactsEntity (org.whole.lang.artifacts.model.IArtifactsEntity)1 Synchronize (org.whole.lang.artifacts.visitors.ArtifactsSynchronizerVisitor.Synchronize)1 Traverse (org.whole.lang.artifacts.visitors.ArtifactsSynchronizerVisitor.Traverse)1 IFilePersistenceProvider (org.whole.lang.codebase.IFilePersistenceProvider)1