Class FlowchartToBpmnConverterInput.Builder
- java.lang.Object
-
- de.xima.fc.workflow.converter.bpmn.FlowchartToBpmnConverterInput.Builder
-
- Enclosing class:
- FlowchartToBpmnConverterInput
public static final class FlowchartToBpmnConverterInput.Builder extends Object
Builder for constructing aFlowchartToBpmnConverterInput.- Since:
- 8.4.0
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description FlowchartToBpmnConverterInputbuild()Creates a newFlowchartToBpmnConverterInputinstance with the current settings.FlowchartToBpmnConverterInput.Builderclock(Clock clock)Sets the clock used for date and time operations.FlowchartToBpmnConverterInput.BuilderexporterName(String exporterName)Sets the name of the exporter that creates the BPMN XML file.FlowchartToBpmnConverterInput.BuilderexporterVersion(String exporterVersion)Sets the version of the exporter that creates the BPMN XML file.FlowchartToBpmnConverterInput.Builderstates(List<WorkflowState> states)Sets the list of workflow states available for the process being converted.FlowchartToBpmnConverterInput.BuildertaskFilter(Predicate<WorkflowTask> taskFilter)Sets the filter for workflow tasks.FlowchartToBpmnConverterInput.BuildertemporalFormatter(IPresetTemporalFormatter temporalFormatter)Sets the temporal formatter used for formatting date and time values in the BPMN diagram.FlowchartToBpmnConverterInput.Builderzone(ZoneId zone)Sets the system zone ID used for date and time operations.
-
-
-
Method Detail
-
build
public FlowchartToBpmnConverterInput build()
Creates a newFlowchartToBpmnConverterInputinstance with the current settings.- Returns:
- A new flowchart to BPMN converter input instance.
-
clock
public FlowchartToBpmnConverterInput.Builder clock(Clock clock)
Sets the clock used for date and time operations. Default to the system default zone clock.- Parameters:
clock- The clock to use.- Returns:
- This builder instance for method chaining.
-
exporterName
public FlowchartToBpmnConverterInput.Builder exporterName(String exporterName)
Sets the name of the exporter that creates the BPMN XML file. Default to the application name.- Parameters:
exporterName- The name of the exporter.- Returns:
- This builder instance for method chaining.
-
exporterVersion
public FlowchartToBpmnConverterInput.Builder exporterVersion(String exporterVersion)
Sets the version of the exporter that creates the BPMN XML file. Default to the application version or timestamp.- Parameters:
exporterVersion- The version of the exporter.- Returns:
- This builder instance for method chaining.
-
states
public FlowchartToBpmnConverterInput.Builder states(List<WorkflowState> states)
Sets the list of workflow states available for the process being converted.- Parameters:
states- The list of workflow states.- Returns:
- This builder instance for method chaining.
-
taskFilter
public FlowchartToBpmnConverterInput.Builder taskFilter(Predicate<WorkflowTask> taskFilter)
Sets the filter for workflow tasks. Only tasks for which this filter returns true will be included in the converted BPMN diagram.- Parameters:
taskFilter- The filter for workflow tasks.- Returns:
- This builder instance for method chaining.
-
temporalFormatter
public FlowchartToBpmnConverterInput.Builder temporalFormatter(IPresetTemporalFormatter temporalFormatter)
Sets the temporal formatter used for formatting date and time values in the BPMN diagram.- Parameters:
temporalFormatter- The temporal formatter to use.- Returns:
- This builder instance for method chaining.
-
zone
public FlowchartToBpmnConverterInput.Builder zone(ZoneId zone)
Sets the system zone ID used for date and time operations.- Parameters:
zone- The system zone ID.- Returns:
- This builder instance for method chaining.
-
-