Examples of startExecution()


Examples of org.jbpm.pvm.ProcessDefinition.startExecution()

            .transition().to("c")
        .compositeEnd()
        .node("c").behaviour(new WaitState())
    .done();
   
    Execution execution = processDefinition.startExecution();
    execution.signal();
    execution.signal();
  }

  public void testPropagationDisabledProcess(){
View Full Code Here

Examples of org.jbpm.pvm.ProcessDefinition.startExecution()

            .transition().to("c")
        .compositeEnd()
        .node("c").behaviour(new WaitState())
    .done();
   
    Execution execution = processDefinition.startExecution();
    execution.signal();
    execution.signal();
  }
}
View Full Code Here

Examples of org.jbpm.pvm.ProcessDefinition.startExecution()

        .node("a").behaviour(new WaitState())
        .node("b").behaviour(new WaitState())
        .node("c").behaviour(new WaitState())
    .done();
   
    Execution execution = processDefinition.startExecution();
    execution.signal();
    assertEquals("creditRate?", execution.getNode().getName());
    execution.signal("good");
    assertEquals("a", execution.getNode().getName());
View Full Code Here

Examples of org.jbpm.pvm.ProcessDefinition.startExecution()

    execution.signal();
    assertEquals("creditRate?", execution.getNode().getName());
    execution.signal("good");
    assertEquals("a", execution.getNode().getName());

    execution = processDefinition.startExecution();
    execution.signal();
    execution.signal("average");
    assertEquals("b", execution.getNode().getName());

    execution = processDefinition.startExecution();
View Full Code Here

Examples of org.jbpm.pvm.ProcessDefinition.startExecution()

    execution = processDefinition.startExecution();
    execution.signal();
    execution.signal("average");
    assertEquals("b", execution.getNode().getName());

    execution = processDefinition.startExecution();
    execution.signal();
    execution.signal("bad");
    assertEquals("c", execution.getNode().getName());
  }
}
View Full Code Here

Examples of org.jbpm.pvm.ProcessDefinition.startExecution()

        .node("wire the money").behaviour(new Display("automatic payment"))
          .transition().to("end")
        .node("end").behaviour(new WaitState())
    .done();
   
    Execution execution = processDefinition.startExecution();
    assertEquals("accept loan request", execution.getNode().getName());
    execution.signal();
    assertEquals("loan evaluation", execution.getNode().getName());
    execution.signal("approve");
    assertEquals("end", execution.getNode().getName());
View Full Code Here

Examples of org.jbpm.pvm.ProcessDefinition.startExecution()

    execution.signal();
    assertEquals("loan evaluation", execution.getNode().getName());
    execution.signal("approve");
    assertEquals("end", execution.getNode().getName());
   
    execution = processDefinition.startExecution();
    assertEquals("accept loan request", execution.getNode().getName());
    execution.signal();
    assertEquals("loan evaluation", execution.getNode().getName());
    execution.signal("reject");
    assertEquals("end", execution.getNode().getName());
View Full Code Here

Examples of org.jbpm.pvm.ProcessDefinition.startExecution()

        .node("b").behaviour(new WaitState())
          .event("node-enter")
            .listener(new Display("entering b"))
    .done();

    Execution execution = processDefinition.startExecution();
    execution.signal();
  }
}
View Full Code Here

Examples of org.jbpm.pvm.ProcessDefinition.startExecution()

      processDefinition = pvmDbSession.findProcessDefinition(processDefinitionName);
    } else {
      processDefinition = pvmDbSession.get(ProcessDefinitionImpl.class, processDefinitionDbid);
    }
   
    ExecutionImpl execution = (ExecutionImpl) processDefinition.startExecution(key, variables);
   
    pvmDbSession.save(execution);
    return execution;
  }
View Full Code Here

Examples of org.netbeans.gradle.project.api.task.SingleExecutionOutputProcessor.startExecution()

        return new SingleExecutionOutputProcessor() {
            @Override
            public TaskOutputProcessor startExecution(Project project) {
                return mergedOutputProcessor(
                        processor,
                        nullSafeProcessorFactory.startExecution(project));
            }
        };
    }

    private static TaskOutputProcessor mergedOutputProcessor(TaskOutputProcessor... processors) {
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.