示例#1
0
  private void finishNewArcTokenProcessing(
      final GraphProcess process, final ArcToken arcToken, final boolean asynchronous) {
    fireEvent(ArcTokenEvent.newCreatedEvent(this, arcToken));

    if (asynchronous && arcExecutionStarted) {
      asyncQueue.add(arcToken);
    } else {
      process.enqueueArcTokenForExecution(arcToken);
    }
  }
示例#2
0
 private void drainAsyncQueue(final GraphProcess process) {
   while (!asyncQueue.isEmpty()) {
     process.enqueueArcTokenForExecution(asyncQueue.remove(0));
   }
 }