Class XMLWorkflows

java.lang.Object
com.axelor.meta.loader.XMLWorkflows

public final class XMLWorkflows extends Object
JAXB binding entry point for workflow definitions. Provides a cached, thread-safe marshaller and unmarshaller for the <workflows> module document (validated against workflows.xsd) and for single <workflow> fragments (the form stored in MetaWorkflow.xml). Mirrors XMLQueries.
  • Method Details

    • unmarshal

      public static Workflows unmarshal(InputStream stream) throws jakarta.xml.bind.JAXBException
      Throws:
      jakarta.xml.bind.JAXBException
    • unmarshal

      public static Workflows unmarshal(String xml) throws jakarta.xml.bind.JAXBException
      Throws:
      jakarta.xml.bind.JAXBException
    • marshal

      public static void marshal(Workflows workflows, Writer writer) throws jakarta.xml.bind.JAXBException
      Throws:
      jakarta.xml.bind.JAXBException
    • toXml

      public static String toXml(Workflows workflows)
      Marshal a whole <workflows> document to a string (used by Studio export).
    • toXml

      public static String toXml(Workflow workflow)
      Marshal one definition to the standalone <workflow> XML stored in MetaWorkflow.xml.
    • fromXML

      public static Workflow fromXML(String xml) throws jakarta.xml.bind.JAXBException
      Parse a single standalone <workflow> fragment (as stored in MetaWorkflow.xml).
      Throws:
      jakarta.xml.bind.JAXBException