Package com.axelor.meta.loader
Class XMLWorkflows
java.lang.Object
com.axelor.meta.loader.XMLWorkflows
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 Summary
Modifier and TypeMethodDescriptionstatic WorkflowParse a single standalone<workflow>fragment (as stored in MetaWorkflow.xml).static voidstatic StringMarshal a whole<workflows>document to a string (used by Studio export).static StringMarshal one definition to the standalone<workflow>XML stored in MetaWorkflow.xml.static Workflowsunmarshal(InputStream stream) static Workflows
-
Method Details
-
unmarshal
- Throws:
jakarta.xml.bind.JAXBException
-
unmarshal
- 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
Marshal a whole<workflows>document to a string (used by Studio export). -
toXml
Marshal one definition to the standalone<workflow>XML stored in MetaWorkflow.xml. -
fromXML
Parse a single standalone<workflow>fragment (as stored in MetaWorkflow.xml).- Throws:
jakarta.xml.bind.JAXBException
-