Interface WorkflowNodeConverter

All Known Implementing Classes:
AbstractWorkflowNodeConverter, ActivitiNodeConverter

public interface WorkflowNodeConverter
Since:
3.4.e
Author:
Nick Smith
  • Method Details

    • convertNode

      Object convertNode(NodeRef node)
      Converts a NodeRef into the appropriate Node type.
      Parameters:
      node - NodeRef
      Returns:
      Object
    • convertNode

      Object convertNode(NodeRef value, boolean isMany)
      Converts a NodeRef. The return type is dependent on the value of isMany. If true then a List of the appropriate Node type is returned. Otherwise a single instance of the appropriate Node type is returned.
      Parameters:
      value - NodeRef
      isMany - boolean
      Returns:
      Object
    • convertNodes

      List<? extends Object> convertNodes(Collection<NodeRef> values)
      Converts a Collection of NodeRefs into a List of the appropriate Node type.
      Returns:
      List
    • convertNodes

      Object convertNodes(Collection<NodeRef> values, boolean isMany)
      Converts a Collection of NodeRefs. The return type is dependent on the value of isMany. If true then a List of the appropriate Node type is returned. Otherwise a single instance of the appropriate Node type is returned.
      Parameters:
      isMany - boolean
      Returns:
      Object
    • convertNodes

      Object convertNodes(Object value, boolean isMany)
      Converts a Collection of NodeRefs or a single NodeRef. The return type is dependent on the value of isMany. If true then a List of the appropriate Node type is returned. Otherwise a single instance of the appropriate Node type is returned.
      Parameters:
      value - Object
      isMany - boolean
      Returns:
      Object
    • convertToNode

      NodeRef convertToNode(Object toConvert)
      Parameters:
      toConvert - Object
      Returns:
      NodeRef
    • convertToNodes

      List<NodeRef> convertToNodes(Collection<?> toConvert)
    • convertToNodes

      List<NodeRef> convertToNodes(Object value)
    • isSupported

      boolean isSupported(Object object)
    • convert

      Serializable convert(Object object)
      Converts the object to a NodeRef or a List of NodeRefs. The return type is dependant on the type of the object parameter. If the object parameter is a Collection then a List of NodeRefs is returned. Otherwise a single NodeRef is returned.
      Parameters:
      object - NodeRef
      Returns:
      Serializable