@Override public void addContext(Context context) { getCompositeNode().addContext(context); ((AbstractContext) context).setContextContainer(getCompositeNode()); }
protected Node createNode() { CompositeContextNode result = new CompositeContextNode(); VariableScope variableScope = new VariableScope(); result.addContext(variableScope); result.setDefaultContext(variableScope); return result; }
protected Node createNode(Attributes attrs) { CompositeContextNode subProcessNode = new CompositeContextNode(); String eventSubprocessAttribute = attrs.getValue("triggeredByEvent"); if (eventSubprocessAttribute != null && Boolean.parseBoolean(eventSubprocessAttribute)) { subProcessNode = new EventSubProcessNode(); } VariableScope variableScope = new VariableScope(); subProcessNode.addContext(variableScope); subProcessNode.setDefaultContext(variableScope); String compensation = attrs.getValue("isForCompensation"); if( compensation != null ) { boolean isForCompensation = Boolean.parseBoolean(compensation); if( isForCompensation ) { subProcessNode.setMetaData("isForCompensation", isForCompensation ); } } subProcessNode.setAutoComplete(true); return subProcessNode; }
public CompositeNodeFactory exceptionHandler(String exception, ExceptionHandler exceptionHandler) { ExceptionScope exceptionScope = (ExceptionScope) getCompositeNode().getDefaultContext(ExceptionScope.EXCEPTION_SCOPE); if (exceptionScope == null) { exceptionScope = new ExceptionScope(); getCompositeNode().addContext(exceptionScope); getCompositeNode().setDefaultContext(exceptionScope); } exceptionScope.setExceptionHandler(exception, exceptionHandler); return this; }
public DynamicNodeFactory exceptionHandler(String exception, ExceptionHandler exceptionHandler) { ExceptionScope exceptionScope = (ExceptionScope) getCompositeNode().getDefaultContext(ExceptionScope.EXCEPTION_SCOPE); if (exceptionScope == null) { exceptionScope = new ExceptionScope(); getCompositeNode().addContext(exceptionScope); getCompositeNode().setDefaultContext(exceptionScope); } exceptionScope.setExceptionHandler(exception, exceptionHandler); return this; }
public CompositeNodeFactory variable(String name, DataType type, Object value) { Variable variable = new Variable(); variable.setName(name); variable.setType(type); variable.setValue(value); VariableScope variableScope = (VariableScope) getCompositeNode().getDefaultContext(VariableScope.VARIABLE_SCOPE); if (variableScope == null) { variableScope = new VariableScope(); getCompositeNode().addContext(variableScope); getCompositeNode().setDefaultContext(variableScope); } variableScope.getVariables().add(variable); return this; }
public DynamicNodeFactory variable(String name, DataType type, Object value) { Variable variable = new Variable(); variable.setName(name); variable.setType(type); variable.setValue(value); VariableScope variableScope = (VariableScope) getCompositeNode().getDefaultContext(VariableScope.VARIABLE_SCOPE); if (variableScope == null) { variableScope = new VariableScope(); getCompositeNode().addContext(variableScope); getCompositeNode().setDefaultContext(variableScope); } variableScope.getVariables().add(variable); return this; }
super.addNode(compositeNode); VariableScope variableScope = new VariableScope(); compositeNode.addContext(variableScope); compositeNode.setDefaultContext(variableScope);
compositeNode.setName("Composite"); VariableScope variableScope = new VariableScope(); compositeNode.addContext(variableScope); compositeNode.setDefaultContext(variableScope); variableScope.setVariables(variables); ExceptionScope exceptionScope = new ExceptionScope(); compositeNode.addContext(exceptionScope); compositeNode.setDefaultContext(exceptionScope); exceptionHandler = new ActionExceptionHandler();
protected Node createNode() { CompositeContextNode result = new CompositeContextNode(); VariableScope variableScope = new VariableScope(); result.addContext(variableScope); result.setDefaultContext(variableScope); return result; }
@Override public void addContext(Context context) { getCompositeNode().addContext(context); ((AbstractContext) context).setContextContainer(getCompositeNode()); }
protected Node createNode(Attributes attrs) { CompositeContextNode subProcessNode = new CompositeContextNode(); String eventSubprocessAttribute = attrs.getValue("triggeredByEvent"); if (eventSubprocessAttribute != null && Boolean.parseBoolean(eventSubprocessAttribute)) { subProcessNode = new EventSubProcessNode(); } VariableScope variableScope = new VariableScope(); subProcessNode.addContext(variableScope); subProcessNode.setDefaultContext(variableScope); String compensation = attrs.getValue("isForCompensation"); if( compensation != null ) { boolean isForCompensation = Boolean.parseBoolean(compensation); if( isForCompensation ) { subProcessNode.setMetaData("isForCompensation", isForCompensation ); } } subProcessNode.setAutoComplete(true); return subProcessNode; }
public DynamicNodeFactory exceptionHandler(String exception, ExceptionHandler exceptionHandler) { ExceptionScope exceptionScope = (ExceptionScope) getCompositeNode().getDefaultContext(ExceptionScope.EXCEPTION_SCOPE); if (exceptionScope == null) { exceptionScope = new ExceptionScope(); getCompositeNode().addContext(exceptionScope); getCompositeNode().setDefaultContext(exceptionScope); } exceptionScope.setExceptionHandler(exception, exceptionHandler); return this; }
public CompositeNodeFactory exceptionHandler(String exception, ExceptionHandler exceptionHandler) { ExceptionScope exceptionScope = (ExceptionScope) getCompositeNode().getDefaultContext(ExceptionScope.EXCEPTION_SCOPE); if (exceptionScope == null) { exceptionScope = new ExceptionScope(); getCompositeNode().addContext(exceptionScope); getCompositeNode().setDefaultContext(exceptionScope); } exceptionScope.setExceptionHandler(exception, exceptionHandler); return this; }
public CompositeNodeFactory variable(String name, DataType type, Object value) { Variable variable = new Variable(); variable.setName(name); variable.setType(type); variable.setValue(value); VariableScope variableScope = (VariableScope) getCompositeNode().getDefaultContext(VariableScope.VARIABLE_SCOPE); if (variableScope == null) { variableScope = new VariableScope(); getCompositeNode().addContext(variableScope); getCompositeNode().setDefaultContext(variableScope); } variableScope.getVariables().add(variable); return this; }
public DynamicNodeFactory variable(String name, DataType type, Object value) { Variable variable = new Variable(); variable.setName(name); variable.setType(type); variable.setValue(value); VariableScope variableScope = (VariableScope) getCompositeNode().getDefaultContext(VariableScope.VARIABLE_SCOPE); if (variableScope == null) { variableScope = new VariableScope(); getCompositeNode().addContext(variableScope); getCompositeNode().setDefaultContext(variableScope); } variableScope.getVariables().add(variable); return this; }
super.addNode(compositeNode); VariableScope variableScope = new VariableScope(); compositeNode.addContext(variableScope); compositeNode.setDefaultContext(variableScope);