Package de.xima.fc.workflow
Class WorkflowPrototypeConverter
- java.lang.Object
-
- de.xima.fc.workflow.WorkflowPrototypeConverter
-
public class WorkflowPrototypeConverter extends Object
- Since:
- 7.0.0
- Author:
- XIMA MEDIA GmbH
-
-
Constructor Summary
Constructors Constructor Description WorkflowPrototypeConverter()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static INodePrototypeData<?>
toPrototypeNodeData(WorkflowNode node)
static <TData> INodePrototypeData<TData>
toPrototypeNodeData(WorkflowNode node, TData customParams)
static <TData> INodePrototypeData<TData>
toPrototypeNodeData(EWorkflowNodeType type, TData customParams)
static <TData> INodePrototypeData<TData>
toPrototypeNodeData(String type, TData customParams)
static <TData> ITriggerPrototypeData<TData>
toPrototypeTriggerData(WorkflowTrigger trigger, TData customParams)
static <TData> ITriggerPrototypeData<TData>
toPrototypeTriggerData(EWorkflowTriggerType type, TData customParams)
static <TData> ITriggerPrototypeData<TData>
toPrototypeTriggerData(String type, TData customParams)
-
-
-
Method Detail
-
toPrototypeNodeData
public static <TData> INodePrototypeData<TData> toPrototypeNodeData(EWorkflowNodeType type, TData customParams)
- Type Parameters:
TData
- Type of the node's properties model.- Parameters:
type
- Type of the node.customParams
- Custom parameters for the node.- Returns:
- A prototype for creating new instances of the node with the given data and no children.
-
toPrototypeNodeData
public static <TData> INodePrototypeData<TData> toPrototypeNodeData(String type, TData customParams)
- Type Parameters:
TData
- Type of the node's properties model.- Parameters:
type
- Type of the node.customParams
- Custom parameters for the node.- Returns:
- A prototype for creating new instances of the node with the given data and no children.
-
toPrototypeNodeData
public static <TData> INodePrototypeData<TData> toPrototypeNodeData(WorkflowNode node, TData customParams)
- Type Parameters:
TData
- Type of the node's properties model.- Parameters:
node
- Prototype node to convert.customParams
- Custom parameters for the node.- Returns:
- A prototype for creating new instances of the node with the given data.
-
toPrototypeNodeData
public static INodePrototypeData<?> toPrototypeNodeData(WorkflowNode node)
- Parameters:
node
- Prototype node to convert.- Returns:
- A prototype for creating new instances of the node with the given data.
-
toPrototypeTriggerData
public static <TData> ITriggerPrototypeData<TData> toPrototypeTriggerData(EWorkflowTriggerType type, TData customParams)
- Type Parameters:
TData
- Type of the trigger's properties model.- Parameters:
type
- Type of the trigger.customParams
- Custom parameters for the trigger.- Returns:
- A prototype for creating new instances of the trigger with the given data.
-
toPrototypeTriggerData
public static <TData> ITriggerPrototypeData<TData> toPrototypeTriggerData(String type, TData customParams)
- Type Parameters:
TData
- Type of the trigger's properties model.- Parameters:
type
- Type of the trigger.customParams
- Custom parameters for the trigger.- Returns:
- A prototype for creating new instances of the trigger with the given data.
-
toPrototypeTriggerData
public static <TData> ITriggerPrototypeData<TData> toPrototypeTriggerData(WorkflowTrigger trigger, TData customParams)
- Type Parameters:
TData
- Type of the trigger's properties model.- Parameters:
trigger
- Prototype trigger to convert.customParams
- Custom parameters for the trigger.- Returns:
- A prototype for creating new instances of the trigger with the given data.
-
-