Package org.japura.task.executors

Examples of org.japura.task.executors.TaskExecutionMessage


  }

  run(task);

  Application.getMessageManager().publish(false,
    new TaskExecutionMessage(true, getTaskSession(), task, null));

  fireAfter(task);

  Runnable runnable = buildRunnable(task, new ArrayList<Task>());
View Full Code Here


    fireAfter(task);

    Application.getMessageManager().publish(
      false,
      new TaskExecutionMessage(false, getTaskSession(), task,
        previousTaskId));

    previousTaskId = task.getId();

    Collection<Task> discardedTasks = new ArrayList<Task>();
    if (task.getStatus().equals(TaskStatus.ERROR)) {
    for (Task otherTask : queueTasks) {
      otherTask.registerStatus(TaskStatus.DISCARDED);
      discardedTasks.add(otherTask);
    }
    queueTasks.clear();
    runCount += discardedTasks.size();
    for (Task discardedTask : discardedTasks) {
      fireBefore(discardedTask);
      fireAfter(discardedTask);
      Application.getMessageManager().publish(
        false,
        new TaskEventMessage(discardedTask, getTaskSession(),
          TaskEventType.DISCARDED));
      Application.getMessageManager().publish(
        false,
        new TaskExecutionMessage(false, getTaskSession(), discardedTask,
          previousTaskId));
      previousTaskId = discardedTask.getId();
    }
    }
View Full Code Here

TOP

Related Classes of org.japura.task.executors.TaskExecutionMessage

Copyright © 2018 www.massapicom. 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.