The behavior of this task.
The behavior of this task. This is akin to the receive method of an actor, except for the fact that an all catching pattern match will cause the orchestrator to fail. For example:
def behavior = Receive { case m => //Some code }
This will cause the orchestrator to fail because the messages won't be handled by the correct tasks.
The constructor of the message to be sent.
The constructor of the message to be sent.
The ActorPath to whom this task will send the message(s).
The ActorPath to whom this task will send the message(s).
whether this task status is Unstarted and all its dependencies have finished.
Converts the deliveryId obtained from the deliver method of akka-persistence to the ID this task handles.
Converts the deliveryId obtained from the deliver method of akka-persistence to the ID this task handles.
the current expected deliveryId of this Task.
Finishes this task, which implies:
Finishes this task, which implies:
the message which prompted the finish.
the id obtained from the message.
whether this task status is Finished.
whether this task status is Waiting.
Low-level match.
Low-level match. It will behave differently according to the orchestrator in which this task is being created.
The parameter id is a Long and not a ID so this method can be invoked in the TaskProxy.
Starts the execution of this task.
Starts the execution of this task. If this task is already Waiting or Finished an exception will be thrown. We first persist that the message was sent (unless the orchestrator is recovering), then we send it.
the current status of this Task.
This will cause this task orchestrator to terminate early.
This will cause this task orchestrator to terminate early.
An early termination will have the following effects:
onFinish will never be called even if the only tasks needed to finish
the orchestrator are already waiting and their responses are received.onEarlyTermination will be invoked in the orchestrator.
The TaskStatus representation of this task.
The TaskStatus representation of this task.