Class WorkflowPrototypeConverter

    • Constructor Detail

      • WorkflowPrototypeConverter

        public WorkflowPrototypeConverter()
    • 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.