Class WorkflowModel


  • public class WorkflowModel
    extends Object
    A simple wrapper around the JSON representing a workflow model requested from the server.
    • Constructor Detail

      • WorkflowModel

        public WorkflowModel​(com.fasterxml.jackson.databind.JsonNode rootNode)
        The only constructor
        Parameters:
        rootNode - the root JSON node containing all the info
    • Method Detail

      • getId

        public String getId()
        The id of this model
        Returns:
        the id
      • getTitle

        public String getTitle()
        The title of this model
        Returns:
        the title
      • getDescription

        public String getDescription()
        the description of this model
        Returns:
        the description
      • getVersion

        public String getVersion()
        the version of this model
        Returns:
        the version
      • getVersionMajor

        public int getVersionMajor()
        the major version number, usually 1
        Returns:
        the major version number
      • getVersionMinor

        public int getVersionMinor()
        the minor version number.
        Returns:
        the minor version number
      • getMetaData

        public Map getMetaData()
        Any meta data stored in this model
        Returns:
        Map of metadata, where key is the properties name.
      • getFieldsMap

        protected Map<String,​String> getFieldsMap​(com.fasterxml.jackson.databind.JsonNode node)