Class WorkflowNameSection
java.lang.Object
com.scivicslab.actoriac.report.sections.basic.WorkflowNameSection
- All Implemented Interfaces:
SectionBuilder
POJO section builder that outputs the workflow name.
Pure business logic - no CallableByActionName.
Use WorkflowNameSectionIIAR to expose as an actor.
Output example:
[Workflow Name] main-cluster-status
- Since:
- 2.16.0
- Author:
- devteam@scivicslab.com
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongenerate()Generates the section content.getTitle()Returns the section title.voidsetWorkflowName(String name) Sets the workflow name.voidsetWorkflowPath(String path) Sets the workflow file path (used as fallback if name is not set).
-
Field Details
-
workflowName
-
workflowPath
-
-
Constructor Details
-
WorkflowNameSection
public WorkflowNameSection()
-
-
Method Details
-
setWorkflowName
Sets the workflow name.- Parameters:
name- the workflow name from YAML
-
setWorkflowPath
Sets the workflow file path (used as fallback if name is not set).- Parameters:
path- the workflow file path
-
generate
Description copied from interface:SectionBuilderGenerates the section content.- Specified by:
generatein interfaceSectionBuilder- Returns:
- the section content as a string
-
getTitle
Description copied from interface:SectionBuilderReturns the section title.If null or empty, the section content is output without a title line.
- Specified by:
getTitlein interfaceSectionBuilder- Returns:
- the section title, or null for no title
-