Interface SerializationService
-
public interface SerializationService
TheSerializationService
manages access to
services.WorkflowModelSerializer
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description WorkflowModel
deserialize(java.lang.String modelDefinition, java.lang.String type)
Deserializes aWorkflowModel
instance from the given (textual) model definition.java.lang.String
getMimeType(java.lang.String type)
Returns the mime type associated with a given type.java.lang.String
serialize(WorkflowModel model, java.lang.String type)
Serializes the givenWorkflowModel
into a textual representation.
-
-
-
Method Detail
-
getMimeType
java.lang.String getMimeType(java.lang.String type)
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
java.lang.String serialize(WorkflowModel model, java.lang.String type) throws java.lang.Exception
Serializes the givenWorkflowModel
into a textual representation.- Parameters:
model
- TheWorkflowModel
to be serialized.type
- The type of the serialization format.- Returns:
- A serialized (textual) representation of the
WorkflowModel
or NULL if no serializer with the given type was found. - Throws:
java.lang.Exception
- if something goes wrong during serialization
-
deserialize
WorkflowModel deserialize(java.lang.String modelDefinition, java.lang.String type) throws java.lang.Exception
Deserializes aWorkflowModel
instance from the given (textual) model definition.- Parameters:
modelDefinition
- The model definition as string.type
- The type of the serialization format.- Returns:
- The deserialized
WorkflowModel
or NULL if no serializer with the given type was found. - Throws:
java.lang.Exception
- if something goes wrong during deserialization
-
-