Enum FcBreakBpmnModeler
- java.lang.Object
-
- java.lang.Enum<FcBreakBpmnModeler>
-
- de.xima.fc.workflow.designer.bpmn.node.flow_control.FcBreakBpmnModeler
-
- All Implemented Interfaces:
IWorkflowNodeBpmnModeler<FcBreakProps>,Serializable,Comparable<FcBreakBpmnModeler>
public enum FcBreakBpmnModeler extends Enum<FcBreakBpmnModeler> implements IWorkflowNodeBpmnModeler<FcBreakProps>
BPMN modelerfor nodes of typebreak.- Since:
- 8.4.0
-
-
Enum Constant Summary
Enum Constants Enum Constant Description INSTANCEThe immutable singleton instance of this modeler.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidmodelNode(IModelWorkflowNodeParams<FcBreakProps> params, IWorkflowBpmnModelContext context)Models aWorkflowNodein the BPMN diagram.static FcBreakBpmnModelervalueOf(String name)Returns the enum constant of this type with the specified name.static FcBreakBpmnModeler[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
INSTANCE
public static final FcBreakBpmnModeler INSTANCE
The immutable singleton instance of this modeler.
-
-
Method Detail
-
values
public static FcBreakBpmnModeler[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (FcBreakBpmnModeler c : FcBreakBpmnModeler.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static FcBreakBpmnModeler valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
modelNode
public void modelNode(IModelWorkflowNodeParams<FcBreakProps> params, IWorkflowBpmnModelContext context)
Description copied from interface:IWorkflowNodeBpmnModelerModels aWorkflowNodein the BPMN diagram. This method is called once for theroot nodeof eachWorkflowTaskin the workflow. Implementations for nodes that havechildrenshould callcontext.modelNode(node)on their child nodes if needed.The responsibility of each modeler is to access the provided
params.partBuilder()and add the appropriate data to that builder. That data then gets used to create aIStructuredBpmnModelPartfor thenode, see the class-level documentation ofIStructuredBpmnModelPartfor more info.When modelling a workflow node as BPMN, the usual approach is to create a nested tree of
alignment items, making use of thelayouter. This tree then getsresolvedto a flat map. Finally, the various method onIFlattenedAlignmentItemMapcan be used to create theBPMN shapes,BPMN edgesandsequence flows.- Specified by:
modelNodein interfaceIWorkflowNodeBpmnModeler<FcBreakProps>- Parameters:
params- The parameters for the modeler, containing theWorkflowNodeto model and its deserialized custom properties model, as well as the part builder to fill with data.context- The context for creating the BPMN diagram, its lifecycle starts when the conversion (of the workflow to a BPMN diagram) starts and ends when the conversion ends. The context lets you access various helper methods such as thelayouter()orcolorizer, and also provides access to all global data such as alltriggersandnodesin the workflow.
-
-