Class WorkflowInfoSection
java.lang.Object
com.scivicslab.turingworkflow.plugins.report.WorkflowInfoSection
- All Implemented Interfaces:
ReportSection
Report section for workflow metadata.
Displays workflow file path, name, and optional description. Returns null title to output content directly without a title line.
- Since:
- 2.15.0
- Author:
- devteam@scivicslab.com
-
Constructor Summary
ConstructorsConstructorDescriptionWorkflowInfoSection(String workflowPath, String name, String description) Creates a workflow info section. -
Method Summary
Modifier and TypeMethodDescriptionReturns the section content.getTitle()Returns the section title.
-
Constructor Details
-
WorkflowInfoSection
Creates a workflow info section.- Parameters:
workflowPath- the workflow file pathname- the workflow namedescription- the workflow description (may be null)
-
-
Method Details
-
getTitle
Returns the section title.If null or empty, the section content is output without a title line.
Always returns
nullbecause this section embeds its own title within the content output.- Specified by:
getTitlein interfaceReportSection- Returns:
- the section title, or null for no title
-
getContent
Returns the section content.If null or empty, the section is skipped in the report.
Returns formatted workflow metadata including file path, name, and description (if present). Each field is indented under a
[Workflow Info]header.- Specified by:
getContentin interfaceReportSection- Returns:
- the section content
-