Class ReportBuilderIIAR
java.lang.Object
com.scivicslab.pojoactor.core.ActorRef<ReportBuilder>
com.scivicslab.pojoactor.workflow.IIActorRef<ReportBuilder>
com.scivicslab.actoriac.report.ReportBuilderIIAR
- All Implemented Interfaces:
com.scivicslab.pojoactor.core.CallableByActionName, AutoCloseable
Actor for building and outputting workflow reports.
This actor wraps a ReportBuilder POJO and provides workflow-callable
actions via @Action annotations. It handles the integration with the
actor system, database, and output multiplexer.
Actions:
addWorkflowInfo- Add workflow metadata sectionaddJsonStateSection- Add actor's JsonState as YAMLreport- Build and output the report
Transition履歴の詳細表示はTransitionViewerPluginで行う。
- Since:
- 2.15.0
- Author:
- devteam@scivicslab.com
-
Field Summary
FieldsFields inherited from class com.scivicslab.pojoactor.core.ActorRef
actorName, actorSystem, object -
Constructor Summary
ConstructorsConstructorDescriptionReportBuilderIIAR(String name, ReportBuilder builder) Constructs a new ReportBuilderIIAR.ReportBuilderIIAR(String name, ReportBuilder builder, com.scivicslab.pojoactor.workflow.IIActorSystem system) Constructs a new ReportBuilderIIAR with actor system.ReportBuilderIIAR(String actorName, com.scivicslab.pojoactor.workflow.IIActorSystem system) Constructs a new ReportBuilderIIAR with a new POJO instance. -
Method Summary
Modifier and TypeMethodDescriptioncom.scivicslab.pojoactor.core.ActionResultaddJsonStateSection(String args) Adds JsonState section for specified actor.com.scivicslab.pojoactor.core.ActionResultaddWorkflowInfo(String args) Adds workflow info section.private StringGets workflow path from nodeGroup actor.com.scivicslab.pojoactor.core.ActionResultBuilds and outputs the report.private voidreportToMultiplexer(String data) Outputs report to outputMultiplexer.Methods inherited from class com.scivicslab.pojoactor.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
-
Field Details
-
CLASS_NAME
-
logger
-
-
Constructor Details
-
ReportBuilderIIAR
Constructs a new ReportBuilderIIAR with a new POJO instance.Required by
loader.createChildfor dynamic instantiation.- Parameters:
actorName- the actor namesystem- the actor system
-
ReportBuilderIIAR
Constructs a new ReportBuilderIIAR.- Parameters:
name- the actor namebuilder- the ReportBuilder POJO to wrap
-
ReportBuilderIIAR
public ReportBuilderIIAR(String name, ReportBuilder builder, com.scivicslab.pojoactor.workflow.IIActorSystem system) Constructs a new ReportBuilderIIAR with actor system.- Parameters:
name- the actor namebuilder- the ReportBuilder POJO to wrapsystem- the actor system
-
-
Method Details
-
addWorkflowInfo
Adds workflow info section.Gets workflow path from nodeGroup, reads the YAML file to extract name and description, and adds a WorkflowInfoSection to the report.
- Parameters:
args- unused- Returns:
- ActionResult indicating success or failure
-
addJsonStateSection
Adds JsonState section for specified actor.Arguments (JSON):
actor- Actor name (required)path- JsonState path filter (optional)
- Parameters:
args- JSON arguments- Returns:
- ActionResult indicating success or failure
-
report
-
getWorkflowPathFromNodeGroup
Gets workflow path from nodeGroup actor. -
reportToMultiplexer
Outputs report to outputMultiplexer.
-