Class ProcessModelXMLImportTools


  • public class ProcessModelXMLImportTools
    extends XMLImportTools
    All helper methods for the XML import of process model classes, i.e. mainly parsing elements into objects.
    Author:
    Kevin Goeser
    • Field Detail

      • logger

        protected static final Logger logger
        My logger.
    • Constructor Detail

      • ProcessModelXMLImportTools

        public ProcessModelXMLImportTools()
    • Method Detail

      • getEBPInstanceReference

        public static EBPInstanceReference getEBPInstanceReference​(Element ebpInstanceReferenceElement,
                                                                   ProcessModelFactory pmf)
        Create a new ebp instance reference object from the given xml element.
        Parameters:
        ebpInstanceReferenceElement - The xml element
        pmf - The factory for creating the object.
        Returns:
        A new ebpInstanceReference object.
      • getTemplateLocksVersion

        public static String getTemplateLocksVersion​(Element root)
        Return the version number of the given templateLocks element
        Parameters:
        root -
        Returns:
        The version number or null if not given
      • getInstanceLocksVersion

        public static String getInstanceLocksVersion​(Element root)
        Return the version number of the given instanceLocks element
        Parameters:
        root -
        Returns:
        The version number or null if not given
      • getEmbeddedTemplateMapping

        public static Map<UUID,​UUID> getEmbeddedTemplateMapping​(Element root)
        Returns the embedded template ID mapping stored under the specified root node
        Parameters:
        root -
        Returns:
        The mapping of embedded IDs to their parent ones
      • getEmbeddedTemplateMappingVersion

        public static String getEmbeddedTemplateMappingVersion​(Element root)
        Return the version number of the given embedded template mapping element
        Parameters:
        root -
        Returns:
        The version number or null if not given
      • getBaseTemplateMapping

        public static Map<UUID,​UUID> getBaseTemplateMapping​(Element root)
        Returns the base template ID mapping stored under the specified root node
        Parameters:
        root -
        Returns:
        The mapping of template IDs to their base template IDs
      • getBaseTemplateMappingVersion

        public static String getBaseTemplateMappingVersion​(Element root)
        Return the version number of the given base template mapping element
        Parameters:
        root -
        Returns:
        The version number or null if not given
      • getAdhocTemplateMapping

        public static Map<UUID,​UUID> getAdhocTemplateMapping​(Element root)
        Returns the adhoc template ID mapping stored under the specified root node
        Parameters:
        root -
        Returns:
        The mapping of adhoc template IDs to their instance IDs
      • getAdhocTemplateMappingVersion

        public static String getAdhocTemplateMappingVersion​(Element root)
        Return the version number of the given adhoc template mapping element
        Parameters:
        root -
        Returns:
        The version number or null if not given
      • getProcessTypesVersion

        public static String getProcessTypesVersion​(Element root)
        Return the version number of the given process types element
        Parameters:
        root -
        Returns:
        The version number or null if not given
      • getTemplateInformationsVersion

        public static String getTemplateInformationsVersion​(Element root)
        Return the version number of the given template informations element
        Parameters:
        root -
        Returns:
        The version number or null if not given