Interface WorkflowNodeConverter

    • Method Detail

      • 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

        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
      • 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