Interface SerializationService
public interface SerializationService
The
SerializationService manages access to
WorkflowModelSerializer services.-
Method Summary
Modifier and TypeMethodDescriptiondeserialize(String modelDefinition, String type) Deserializes aWorkflowModelinstance from the given (textual) model definition.getMimeType(String type) Returns the mime type associated with a given type.serialize(WorkflowModel model, String type) Serializes the givenWorkflowModelinto a textual representation.
-
Method Details
-
getMimeType
Returns the mime type associated with a given type.- Parameters:
type- The type of the serialization format.- Returns:
- The mime type associated with the given type or NULL if no serializer with the given type exists.
-
serialize
Serializes the givenWorkflowModelinto a textual representation.- Parameters:
model- TheWorkflowModelto be serialized.type- The type of the serialization format.- Returns:
- A serialized (textual) representation of the
WorkflowModelor NULL if no serializer with the given type was found. - Throws:
Exception- if something goes wrong during serialization
-
deserialize
Deserializes aWorkflowModelinstance from the given (textual) model definition.- Parameters:
modelDefinition- The model definition as string.type- The type of the serialization format.- Returns:
- The deserialized
WorkflowModelor NULL if no serializer with the given type was found. - Throws:
Exception- if something goes wrong during deserialization
-