Examples of addContext()


Examples of org.jbpm.workflow.core.node.CompositeContextNode.addContext()

        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();
        exceptionHandler.setFaultVariable("faultVariable");
        action = new DroolsConsequenceAction("dialect", "consequence");
        exceptionHandler.setAction(action);
View Full Code Here

Examples of org.jbpm.workflow.core.node.CompositeContextNode.addContext()

public class CompositeNodeHandler extends AbstractNodeHandler {

    protected Node createNode() {
        CompositeContextNode result = new CompositeContextNode();
        VariableScope variableScope = new VariableScope();
        result.addContext(variableScope);
        result.setDefaultContext(variableScope);
        return result;
    }

    public Class<?> generateNodeFor() {
View Full Code Here

Examples of org.jbpm.workflow.core.node.CompositeContextNode.addContext()

public class SubProcessHandler extends AbstractNodeHandler {
   
    protected Node createNode(Attributes attrs) {
      CompositeContextNode result = new CompositeContextNode();
        VariableScope variableScope = new VariableScope();
        result.addContext(variableScope);
        result.setDefaultContext(variableScope);
        return result;
    }
   
    @SuppressWarnings("unchecked")
View Full Code Here

Examples of org.jbpm.workflow.core.node.CompositeContextNode.addContext()

                        CompositeContextNode compositeNode = (CompositeContextNode) attachedNode;
                        ExceptionScope exceptionScope = (ExceptionScope)
                            compositeNode.getDefaultContext(ExceptionScope.EXCEPTION_SCOPE);
                        if (exceptionScope == null) {
                            exceptionScope = new ExceptionScope();
                            compositeNode.addContext(exceptionScope);
                            compositeNode.setDefaultContext(exceptionScope);
                        }
                        String escalationCode = (String) node.getMetaData().get("EscalationEvent");
                        ActionExceptionHandler exceptionHandler = new ActionExceptionHandler();
                        exceptionHandler.setAction(new DroolsConsequenceAction("java",
View Full Code Here

Examples of org.jbpm.workflow.core.node.CompositeContextNode.addContext()

                        CompositeContextNode compositeNode = (CompositeContextNode) attachedNode;
                        ExceptionScope exceptionScope = (ExceptionScope)
                            compositeNode.getDefaultContext(ExceptionScope.EXCEPTION_SCOPE);
                        if (exceptionScope == null) {
                            exceptionScope = new ExceptionScope();
                            compositeNode.addContext(exceptionScope);
                            compositeNode.setDefaultContext(exceptionScope);
                        }
                        String errorCode = (String) node.getMetaData().get("ErrorEvent");
                        ActionExceptionHandler exceptionHandler = new ActionExceptionHandler();
                        exceptionHandler.setAction(new DroolsConsequenceAction("java",
View Full Code Here

Examples of org.jbpm.workflow.core.node.DynamicNode.addContext()

public class AdHocSubProcessHandler extends CompositeContextNodeHandler {
   
    protected Node createNode(Attributes attrs) {
        DynamicNode result = new DynamicNode();
        VariableScope variableScope = new VariableScope();
        result.addContext(variableScope);
        result.setDefaultContext(variableScope);
        return result;
    }
   
    @SuppressWarnings("unchecked")
View Full Code Here

Examples of org.mortbay.http.HttpServer.addContext()

            listener.setMinThreads( 2 );
            listener.setMaxThreads( 10 );
            server.addListener( listener );

            // Create a context
            HttpContext context = server.addContext("/");
            context.addHandler(new PelletDIGServer());

            // Start the http server
            server.start();
View Full Code Here

Examples of org.mortbay.jetty.Server.addContext()

    webServer.addListener(listener);
    HttpContext staticContext = new HttpContext();
    staticContext.setContextPath("/");
    staticContext.setResourceBase(staticContent);
    staticContext.addHandler(new ResourceHandler());
    webServer.addContext(staticContext);
    return webServer;
  }
}
View Full Code Here

Examples of org.objectstyle.wolips.eomodeler.actions.NewManyToManyRelationshipOperation.addContext()

      if (_manyToMany) {
        String joinEntityName = _joinEntityNameText.getText();
        boolean flatten = _flattenButton.getSelection();

        NewManyToManyRelationshipOperation operation = new NewManyToManyRelationshipOperation(_sourceEntity, _destinationEntity, createRelationship, name, createInverseRelationship, inverseName, joinEntityName, flatten);
        operation.addContext(EOModelUtils.getUndoContext(_sourceEntity));
        IOperationHistory operationHistory = PlatformUI.getWorkbench().getOperationSupport().getOperationHistory();
        operationHistory.execute(operation, null, null);
        // _sourceEntity.joinInManyToManyWith(_destinationEntity,
        // createRelationship, name, createInverseRelationship,
        // inverseName, joinEntityName, flatten);
View Full Code Here

Examples of org.objectstyle.wolips.eomodeler.actions.NewOneToManyRelationshipOperation.addContext()

          inverseFKName = _inverseFKNameText.getText();
          inverseFKColumnName = _inverseFKColumnNameText.getText();
        }

        NewOneToManyRelationshipOperation operation = new NewOneToManyRelationshipOperation(_relationship, _sourceEntity, name, createRelationship, toMany, _createFK, fkName, fkColumnName, _destinationEntity, inverseName, createInverseRelationship, inverseToMany, _createInverseFK, inverseFKName, inverseFKColumnName);
        operation.addContext(EOModelUtils.getUndoContext(_sourceEntity));
        IOperationHistory operationHistory = PlatformUI.getWorkbench().getOperationSupport().getOperationHistory();
        operationHistory.execute(operation, null, null);
      }
      super.okPressed();
    } catch (Throwable t) {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.