Class WorkflowTransformService

java.lang.Object
com.logicaldoc.workflow.transform.WorkflowTransformService

public class WorkflowTransformService extends Object
Transform utility to convert Workflow models into processable documents and vice versa.
Since:
6.8
Author:
Marco Meschieri - LogicalDOC
  • Field Details

  • Constructor Details

    • WorkflowTransformService

      public WorkflowTransformService()
  • Method Details

    • setXStream

      public void setXStream(com.thoughtworks.xstream.XStream stream)
    • fromXmlToModel

      public WorkflowDefinition fromXmlToModel(String xmlData)
      Converts the XML specification into a Workflow model
      Parameters:
      xmlData - the XML document's content
      Returns:
      the object representation of the workflow
    • fromModelToBPMN

      public String fromModelToBPMN(WorkflowDefinition workflowDefinition) throws TransformerException
      Convert a workflow model to the BPMN content
      Parameters:
      workflowDefinition - the object representation of the workflow
      Returns:
      the XML content
      Throws:
      TransformerException - Error processing the XML
    • retrieveWorkflowModels

      public WorkflowDefinition retrieveWorkflowModels(Serializable binarayContent)