Examples of WfRequester


Examples of de.danet.an.workflow.omgcore.WfRequester

    /**
     * Create a new process for the given type and start it.
     */
    public void createAndStartProcessBatched() throws Exception {
  WfRequester cont = new DefaultRequester(workflowService());

  ProcessDefinitionDirectory pdd = null;
  WfProcessMgr pmgr = null;
  try {
      pdd = workflowService().processDefinitionDirectory ();
View Full Code Here

Examples of de.danet.an.workflow.omgcore.WfRequester

    /**
     * Create a new process for the given type.
     */
    public void createProcess2() throws Exception {
  WfRequester cont = new DefaultRequester(workflowService());
   WfProcess process = createProcess("ut-process", "jut2", cont);
  assertTrue(process.state().startsWith("open.not_running.not_started"));
    process.start();
  Thread.sleep (1000);
  assertTrue(process.state().startsWith("open.running"));
View Full Code Here

Examples of de.danet.an.workflow.omgcore.WfRequester

    /**
     * Create a new process for the given type.
     */
    public void createProcess3() throws Exception {
  WfRequester cont = new DefaultRequester(workflowService());
  WfProcess process = createProcess("ut-process", "jut3", cont);
  assertTrue(process.state().startsWith("open.not_running.not_started"));
    process.start();
  Thread.sleep (5000);
  assertTrue("Process state should be closed.completed.normal, is "
View Full Code Here

Examples of de.danet.an.workflow.omgcore.WfRequester

    /**
     * Remove a given process from the database.
     */
    public void removeProcess3() throws Exception {
  WfRequester cont = new DefaultRequester(workflowService());
  WfProcess process = createProcess("ut-process", "jut999", cont);
  ProcessDirectory pd = null;
  try {
      pd = workflowService().processDirectory ();
      pd.removeProcess ((Process)process);
View Full Code Here

Examples of de.danet.an.workflow.omgcore.WfRequester

     * Create a new process and then remove its process definition.
     */
    public void createProcess1AndRemoveProcessDef() throws Exception
  ProcessDefinitionDirectory pdd = null;
  try {
      WfRequester cont = new DefaultRequester(workflowService());
      Process process = (Process)createProcess("ut-process", "jut1", cont);
      assertTrue(process.state().startsWith("open.not_running.not_started"));
      process.start();
      assertTrue(process.state().startsWith("open.running"));
      // remove its process definition
View Full Code Here

Examples of de.danet.an.workflow.omgcore.WfRequester

 
    /**
     * Create a new process for the given type.
     */
    public void checkFormalParams() throws Exception {
  WfRequester cont = new DefaultRequester(workflowService());
  Process process = (Process)createProcess
      ("subflowtest", "called1", cont);
  FormalParameter[] fps = process.processDefinition().formalParameters();
  assertTrue(fps.length == 2);
  assertTrue(fps[0].id().equals ("testData"));
View Full Code Here

Examples of de.danet.an.workflow.omgcore.WfRequester

    /**
     * Create a new process for the given type and start it.
     */
    public void createAndStartProcess1() throws Exception {
  WfRequester cont = new DefaultRequester(workflowService());
  WfProcess process = createProcess("ut-process", "jut1", cont);
  assertTrue(process.state().startsWith("open.not_running.not_started"));
  process.start();
  assertTrue(process.state().startsWith("open.running"));
  // get the activities
View Full Code Here

Examples of de.danet.an.workflow.omgcore.WfRequester

    /**
     * Create a new process for the given type and start it.
     */
    public void createAndStartProcess2() throws Exception {
  WfRequester cont = new DefaultRequester(workflowService());
  WfProcess process = createProcess("ut-process", "jut2", cont);
  assertTrue(process.state().startsWith("open.not_running.not_started"));
  process.start();
  assertTrue(process.state().startsWith("open.running"));
  // get the activities
View Full Code Here

Examples of de.danet.an.workflow.omgcore.WfRequester

    /**
     * Create a new process for the given type and start it.
     */
    public void createAndStartProcess3() throws Exception {
  WfRequester cont = new DefaultRequester(workflowService());
  WfProcess process = createProcess("ut-process", "jut3", cont);
  assertTrue(process.state().startsWith("open.not_running.not_started"));
  process.start();
  Thread.sleep(2500);
  assertTrue(process + " should be completed, is " + process.state(),
View Full Code Here

Examples of de.danet.an.workflow.omgcore.WfRequester

    /**
     * Create a new process for the given type.
     */
    public void createProcess2() throws Exception {
  WfRequester cont = new DefaultRequester(workflowService());
   WfProcess process = createProcess("ut-process", "jut2", cont);
  assertTrue(process.state().startsWith("open.not_running.not_started"));
    process.start();
  Thread.sleep (1000);
  assertTrue(process.state().startsWith("open.running"));
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.