Class MilestoneActor
java.lang.Object
com.scivicslab.pojoactor.core.ActorRef<MilestoneActor>
com.scivicslab.turingworkflow.workflow.IIActorRef<MilestoneActor>
com.scivicslab.workfloweditor.service.MilestoneActor
- All Implemented Interfaces:
com.scivicslab.pojoactor.core.CallableByActionName,AutoCloseable
public class MilestoneActor
extends com.scivicslab.turingworkflow.workflow.IIActorRef<MilestoneActor>
Built-in actor for workflow milestone reporting.
Workflows call milestone.report("message") to push status
messages that appear in the Actor Tree panel.
-
Field Summary
Fields inherited from class com.scivicslab.pojoactor.core.ActorRef
actorName, actorSystem, object -
Constructor Summary
ConstructorsConstructorDescriptionMilestoneActor(String name, com.scivicslab.turingworkflow.workflow.IIActorSystem system) -
Method Summary
Modifier and TypeMethodDescriptionReturns the full history of milestone messages.Returns the most recent milestone message, or null.com.scivicslab.pojoactor.core.ActionResultvoidreset()Clears milestone history.voidsetOutputListener(Consumer<String> listener) Methods inherited from class com.scivicslab.turingworkflow.workflow.IIActorRef
callByActionName, hasAnnotatedAction, invokeAnnotatedAction, parseFirstArgumentMethods inherited from class com.scivicslab.pojoactor.core.ActorRef
ask, ask, askNow, clearJsonState, clearPendingMessages, close, createChild, expandVariables, getJsonBoolean, getJsonInt, getJsonString, getJsonString, getLastResult, getName, getNamesOfChildren, getParentName, hasJson, hasJsonState, initLogger, isAlive, json, putJson, setLastResult, setParentName, system, tell, tell, tellNow, toStringOfJson, toStringOfYaml
-
Constructor Details
-
MilestoneActor
-
-
Method Details
-
setOutputListener
-
getLatestMessage
Returns the most recent milestone message, or null. -
getHistory
Returns the full history of milestone messages. -
reset
public void reset()Clears milestone history. Called on workflow reset. -
report
-