Class LogActor

java.lang.Object
com.scivicslab.pojoactor.core.ActorRef<LogActor>
com.scivicslab.turingworkflow.workflow.IIActorRef<LogActor>
com.scivicslab.workfloweditor.service.LogActor
All Implemented Interfaces:
com.scivicslab.pojoactor.core.CallableByActionName, AutoCloseable

public class LogActor extends com.scivicslab.turingworkflow.workflow.IIActorRef<LogActor>
Built-in actor that logs messages. Useful for debugging workflows.
  • Field Summary

    Fields inherited from class com.scivicslab.pojoactor.core.ActorRef

    actorName, actorSystem, object
  • Constructor Summary

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

    Modifier and Type
    Method
    Description
    com.scivicslab.pojoactor.core.ActionResult
    info(String args)
     
    void
     
    com.scivicslab.pojoactor.core.ActionResult
    warn(String args)
     

    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

    • LogActor

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

    • setOutputListener

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

      public com.scivicslab.pojoactor.core.ActionResult info(String args)
    • warn

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