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

    Constructors
    Constructor
    Description
    MilestoneActor(String name, com.scivicslab.turingworkflow.workflow.IIActorSystem system)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns the full history of milestone messages.
    Returns the most recent milestone message, or null.
    com.scivicslab.pojoactor.core.ActionResult
    report(String args)
     
    void
    Clears milestone history.
    void
     

    Methods inherited from class com.scivicslab.turingworkflow.workflow.IIActorRef

    callByActionName, hasAnnotatedAction, invokeAnnotatedAction, parseFirstArgument

    Methods 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

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • MilestoneActor

      public MilestoneActor(String name, com.scivicslab.turingworkflow.workflow.IIActorSystem system)
  • Method Details

    • setOutputListener

      public void setOutputListener(Consumer<String> listener)
    • getLatestMessage

      public String getLatestMessage()
      Returns the most recent milestone message, or null.
    • getHistory

      public List<Map<String,String>> getHistory()
      Returns the full history of milestone messages.
    • reset

      public void reset()
      Clears milestone history. Called on workflow reset.
    • report

      public com.scivicslab.pojoactor.core.ActionResult report(String args)