Examples of ExecutionService


Examples of org.jbpm.api.ExecutionService

    Environment env = ((EnvironmentFactory)processEngine).openEnvironment();

    try
    {

      ExecutionService execService = this.processEngine.getExecutionService();
      Execution exec = execService.findExecutionById(instanceId);
      if(null==exec)
        throw new IllegalArgumentException("No such execution with id "+ instanceId);

      ProcessInstanceRef.RESULT actualResult = result!=null ? result : ProcessInstanceRef.RESULT.COMPLETED;
      execService.endProcessInstance(instanceId, actualResult.toString());
    }
    finally
    {
      env.close();
    }
View Full Code Here

Examples of org.jbpm.api.ExecutionService

    Environment env = ((EnvironmentFactory)processEngine).openEnvironment();

    try
    {

      ExecutionService execService = this.processEngine.getExecutionService();
      Execution exec = execService.findExecutionById(instanceId);
      if(null==exec)
        throw new IllegalArgumentException("No such execution with id "+ instanceId);

      execService.deleteProcessInstance(instanceId);
    }
    finally
    {
      env.close();
    }
View Full Code Here

Examples of org.jbpm.api.ExecutionService

  {
    Environment env = ((EnvironmentFactory)processEngine).openEnvironment();

    try
    {
      ExecutionService execService = this.processEngine.getExecutionService();

      if(null==signal)
        execService.signalExecutionById(executionId);
      else
        execService.signalExecutionById(executionId, signal);
    }
    finally
    {
      env.close();
    }
View Full Code Here

Examples of org.jbpm.api.ExecutionService

    Environment env = ((EnvironmentFactory)processEngine).openEnvironment();

    try
    {
      ExecutionService execService = this.processEngine.getExecutionService();
      ProcessInstanceQuery query = execService.createProcessInstanceQuery();
      query.processInstanceId(instanceId);
      ExecutionImpl processInstance = (ExecutionImpl) query.uniqueResult();

      String currentActivity = processInstance.getProcessInstance().getActivityName();
View Full Code Here

Examples of org.jgroups.blocks.executor.ExecutionService

   
    public void start() throws Exception {
        ch=new JChannel(props);
        if(name != null)
            ch.setName(name);
        execution_service=new ExecutionService(ch);
        runner=new ExecutionRunner(ch);
        ch.connect("executing-cluster");
        JmxConfigurator.registerChannel(ch, Util.getMBeanServer(),
            "execution-service", ch.getClusterName(), true);
       
View Full Code Here

Examples of org.jgroups.blocks.executor.ExecutionService

   
    public void start() throws Exception {
        ch=new JChannel(props);
        if(name != null)
            ch.setName(name);
        execution_service=new ExecutionService(ch);
        runner=new ExecutionRunner(ch);
        ch.connect("executing-cluster");
        JmxConfigurator.registerChannel(ch, Util.getMBeanServer(),
            "execution-service", ch.getClusterName(), true);
       
View Full Code Here

Examples of org.jgroups.blocks.executor.ExecutionService

        Util.close(c3,c2,c1);
    }
   
    @BeforeMethod
    protected void createExecutors() {
        e1=new ExecutionService(c1);
        e2=new ExecutionService(c2);
        e3=new ExecutionService(c3);
       
        // Clear out the queue, in case if test doesn't clear it
        SleepingStreamableCallable.canceledThreads.clear();
        // Reset the barrier in case test failed on the barrier
        SleepingStreamableCallable.barrier.reset();
View Full Code Here

Examples of org.jgroups.blocks.executor.ExecutionService

   
    public void start() throws Exception {
        ch=new JChannel(props);
        if(name != null)
            ch.setName(name);
        execution_service=new ExecutionService(ch);
        runner=new ExecutionRunner(ch);
        ch.connect("executing-cluster");
        JmxConfigurator.registerChannel(ch, Util.getMBeanServer(),
            "execution-service", ch.getClusterName(), true);
       
View Full Code Here

Examples of org.netbeans.api.extexecution.ExecutionService

            ExecutionDescriptor descriptor = new ExecutionDescriptor()
                    .frontWindow(false)
                    .controllable(false)
                    .outProcessorFactory(output);

            ExecutionService service = ExecutionService.newService(builder, descriptor, "PHP Coding Standards");
            Future<Integer> task = service.run();
            try {
                task.get();
            } catch (InterruptedException ex) {
                Exceptions.printStackTrace(ex);
            } catch (ExecutionException ex) {
View Full Code Here

Examples of org.netbeans.api.extexecution.ExecutionService

        @Override
        public void run() {
            try {
                ExecutionDescriptor descriptor = new ExecutionDescriptor().frontWindow(true).controllable(true);

                ExecutionService service = ExecutionService.newService(jDependProcess,
                        descriptor, "jDepend Report Creator");

                Future<Integer> task = service.run();
                taskResult = task.get();
                openFileInIDE(jdependFolder.getFileObject("report", "png"));
            } catch (InterruptedException ex) {
                Exceptions.printStackTrace(ex);
            } catch (ExecutionException ex) {
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.