Examples of ExecutionContext


Examples of org.jbpm.graph.exe.ExecutionContext

    // we have to use transient variables or otherwise HB will get in the way
    instance.getContextInstance().setTransientVariable(DummyActionHandler.TEST_LABEL,
        applicationContext.getBean("jbpmAction"));
    Token token = instance.getRootToken();

    delegate.execute(new ExecutionContext(token));
  }
View Full Code Here

Examples of org.jbpm.pvm.internal.env.ExecutionContext

     
      // initialise the fifo queue of atomic operations
      atomicOperations = new LinkedList<AtomicOperation>();
      atomicOperations.offer(operation);
     
      ExecutionContext originalExecutionContext = null;
      ExecutionContext executionContext = null;
      Environment environment = Environment.getCurrent();
      if (environment!=null) {
        originalExecutionContext = (ExecutionContext) environment.getContext(Context.CONTEXTNAME_EXECUTION);
        if ( (originalExecutionContext!=null)
             && (originalExecutionContext.getExecution()==this)
           ) {
          originalExecutionContext = null;
        } else {
          executionContext = new ExecutionContext(this);
          environment.setContext(executionContext);
        }
      }
     
      try {
View Full Code Here

Examples of org.jruby.runtime.ExecutionContext

                contextVariables.put(this, old_value);
            }
        }

        protected final ExecutionContext getExecutionContext(ThreadContext context) {
            final ExecutionContext fiber;
            fiber = context.getFiber();
            if (fiber != null) {
                return fiber;
            } else {
                /* root fiber */
 
View Full Code Here

Examples of org.milyn.container.ExecutionContext

                       PipelineContext context) {
        this.smooks.setClassLoader( context.getClassLoader() );
        Object result = null;
        try {
            JavaResult javaResult = new JavaResult();
            ExecutionContext executionContext = this.smooks.createExecutionContext();

            Source source = null;
            if ( object instanceof Source ) {
                source = ( Source ) object;
            } else if ( object instanceof InputStream ) {
View Full Code Here

Examples of org.modeshape.jcr.ExecutionContext

        this.attributeScoping = scoping != null ? scoping : DEFAULT_ATTRIBUTE_SCOPING;
        this.destination = destination;
        this.multiValueSeparator = !StringUtil.isBlank(multiValueSeparator) ? multiValueSeparator : DEFAULT_MULTI_VALUE_SEPARATOR;

        // Set up a local namespace registry that is kept in sync with the namespaces found in this XML document ...
        ExecutionContext context = destination.getExecutionContext();
        NamespaceRegistry namespaceRegistry = new LocalNamespaceRegistry(context.getNamespaceRegistry());
        final ExecutionContext localContext = context.with(namespaceRegistry);

        // Set up references to frequently-used objects in the context ...
        this.nameFactory = localContext.getValueFactories().getNameFactory();
        this.pathFactory = localContext.getValueFactories().getPathFactory();
        this.namespaceRegistry = localContext.getNamespaceRegistry();

        this.propertyTypeAttribute = createName(null, "type");

        assert this.nameFactory != null;
        assert this.namespaceRegistry != null;
View Full Code Here

Examples of org.ogce.gfac.context.ExecutionContext

    return buff.toString();
  }

  @Override
  public void initialize(InvocationContext invocationContext) throws GfacException {
    ExecutionContext appExecContext = invocationContext.getExecutionContext();
    ExecutionModel model = appExecContext.getExecutionModel();
   
    AmazonSecurityContext amazonSecurityContext = ((AmazonSecurityContext) invocationContext.getSecurityContext(AMAZON_SECURITY_CONTEXT));
    String access_key = amazonSecurityContext.getAccessKey();
    String secret_key = amazonSecurityContext.getSecretKey();
View Full Code Here

Examples of org.openquark.cal.runtime.ExecutionContext

        CompilerMessageLogger messageLogger = new MessageLogger();
        if (!calServices.compileWorkspace(null, messageLogger)) {
            System.err.println(messageLogger.toString());
        }

        final ExecutionContext executionContext = calServices.getWorkspaceManager().makeExecutionContextWithDefaultProperties();

        WorkspaceManager workspaceManager = calServices.getWorkspaceManager();
        Compiler compiler = calServices.getCompiler();
        optimizer_entryPoint = compiler.getEntryPoint(
                EntryPointSpec.make(CAL_Optimizer_internal.Functions.optimize),
View Full Code Here

Examples of org.springframework.batch.item.ExecutionContext

   * @param split the split
   * @return the execution context
   * @throws IOException Signals that an I/O exception has occurred.
   */
  protected ExecutionContext createExecutionContext(Path path, Split split) throws IOException {
    ExecutionContext context = new ExecutionContext();
    context.putString(getKeyFileName(), path.toUri().getPath());
    context.putLong(getKeySplitStart(), split.getStart());
    context.putLong(getKeySplitLength(), split.getLength());
    if (split instanceof SplitLocation) {
      context.putString(getKeySplitLocations(), StringUtils.collectionToCommaDelimitedString(Arrays
          .asList(((SplitLocation) split).getLocations())));
    }
    return context;
  }
View Full Code Here

Examples of org.teiid.translator.ExecutionContext

    @Test public void testOracleCommentPayload() throws Exception {
        String input = "SELECT part_name, rownum FROM parts"; //$NON-NLS-1$
        String output = "SELECT /*+ ALL_ROWS */ PARTS.PART_NAME, ROWNUM FROM PARTS"; //$NON-NLS-1$
              
        String hint = "/*+ ALL_ROWS */"; //$NON-NLS-1$
        ExecutionContext context = new ExecutionContextImpl(null, 1, hint, null, "", null, null, null); //$NON-NLS-1$
       
        helpTestVisitor(getTestVDB(),
            input,
            context,
            null,
View Full Code Here

Examples of org.teiid.translator.ExecutionContext

            return true;
        }
        if(! (obj instanceof ExecutionContext)) {
            return false;
        }
        ExecutionContext other = (ExecutionContext) obj;
        return compareWithNull(this.getRequestIdentifier(), other.getRequestIdentifier()) &&
                compareWithNull(this.getPartIdentifier(), other.getPartIdentifier());
    }
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.