Interface WorkflowModelSerializer


  • public interface WorkflowModelSerializer
    WorkflowModelSerializer is the interface for services that provide functionality for de-/serialising WorkflowModel from/to other (textual) representations.
    • Field Detail

      • TYPE

        static final String TYPE
        Property for the type serialization type of the WorkflowModelSerializer.
        See Also:
        Constant Field Values
      • MIME_TYPE

        static final String MIME_TYPE
        Property for the mime type of the serialization format of the WorkflowModelSerializer.
        See Also:
        Constant Field Values
    • Method Detail

      • getType

        String getType()
        Returns the type of the WorkflowModelSerializer. Must return a unique string describing the type of the WorkflowModelSerializer and serialization format respectively.
        Returns:
        Unique string identifier for the type of the WorkflowModelSerializer and serialization format.
      • getMimeType

        String getMimeType()
        Returns the mime type of the WorkflowModelSerializers serialization format.
        Returns:
        The mime type of the serialized format.
      • deserialize

        WorkflowModel deserialize​(String modelDefinition)
                           throws Exception
        Deserializes a WorkflowModel instance from the given (textual) model definition.
        Parameters:
        modelDefinition - The model definition as string.
        Returns:
        The deserialized WorkflowModel.
        Throws:
        Exception - if something goes wrong during deserialization