Examples of terminate()


Examples of org.apache.uima.pear.tools.InstallationController.terminate()

      } catch (Exception exc) {
        errorFlag = true;
        message = "Error in InstallationController.main(): " + exc.toString();
        printInConsole(errorFlag, message);
      } finally {
        installationController.terminate();
      }
    }
  }

  /**
 
View Full Code Here

Examples of org.archive.crawler.framework.CrawlJob.terminate()

        CrawlJob cj = heritrix.getEngine().getJob("selftest-job");
       
        // TODO: pause, checkpoint, launch new job, yadda yadda
       
        // for now, just kill & wait
        cj.terminate();
        super.waitForCrawlFinish();
       
//        invokeAndWait("basic", "requestCrawlPause", CrawlStatus.PAUSED);
//        invokeAndWait("basic", "requestCrawlCheckpoint", CrawlStatus.PAUSED);
//        invokeAndWait("basic", "requestCrawlStop", CrawlStatus.FINISHED);
View Full Code Here

Examples of org.camunda.bpm.engine.impl.cmmn.execution.CmmnActivityExecution.terminate()

    // task A as a child of the case instance
    CmmnActivityExecution taskA = caseInstance.findCaseExecution("A");

    taskA.manualStart();
    taskA.terminate();

    // task A is completed
    assertTrue(taskA.isTerminated());

    try {
View Full Code Here

Examples of org.camunda.bpm.engine.impl.cmmn.execution.CmmnActivityExecution.terminate()

    // task A as a child of the case instance
    CmmnActivityExecution taskA = caseInstance.findCaseExecution("A");

    taskA.manualStart();
    taskA.terminate();

    // task A is completed
    assertTrue(taskA.isTerminated());

    try {
View Full Code Here

Examples of org.camunda.bpm.engine.impl.cmmn.execution.CmmnActivityExecution.terminate()

    // task A is active
    assertTrue(taskA.isActive());

    // when
    // terminate A
    taskA.terminate();

    // then

    List<String> expectedStateTransitions = new ArrayList<String>();
View Full Code Here

Examples of org.camunda.bpm.engine.impl.cmmn.execution.CmmnActivityExecution.terminate()

    // when ////////////////////////////////////////////////////////////////

    // terminate task A
    taskA.terminate();
    // terminate task B
    taskB.terminate();

    // then ////////////////////////////////////////////////////////////////

    List<String> expectedStateTransitions = new ArrayList<String>();
View Full Code Here

Examples of org.camunda.bpm.engine.impl.cmmn.execution.CmmnCaseInstance.terminate()

    // an active case instance
    CmmnCaseInstance caseInstance = caseDefinition.createCaseInstance();
    caseInstance.create();

    caseInstance.terminate();
    assertTrue(caseInstance.isTerminated());

    // when

    // close case
View Full Code Here

Examples of org.camunda.bpm.engine.impl.cmmn.execution.CmmnCaseInstance.terminate()

    // a case execution associated with Task B
    CmmnActivityExecution taskB = caseInstance.findCaseExecution("B");

    // when

    caseInstance.terminate();

    // then
    assertTrue(caseInstance.isTerminated());
    assertTrue(stageX.isTerminated());
    assertTrue(taskA.isTerminated());
View Full Code Here

Examples of org.camunda.bpm.engine.impl.cmmn.execution.CmmnExecution.terminate()

        public Void execute(CommandContext commandContext) {
          CmmnExecution caseTask = (CmmnExecution) caseService
              .createCaseExecutionQuery()
              .caseExecutionId(caseExecutionId)
              .singleResult();
          caseTask.terminate();
          return null;
        }

      });
  }
View Full Code Here

Examples of org.cspoker.server.embedded.gamecontrol.PokerTable.terminate()

    PokerTable table = tables.get(new TableId(tableId));
   
    if (table != null && table.isEmpty()) {
      tables.remove(new TableId(tableId));
      Table tableInfo = table.getShortTableInformation();
      table.terminate();
      for (LobbyListener listener : lobbyListeners) {
        listener.onTableRemoved(new TableRemovedEvent(tableInfo));
      }
    }
   
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.