Interface SerializationService
public interface SerializationService
The
SerializationService manages access to
WorkflowModelSerializer services.-
Method Summary
Modifier and TypeMethodDescriptiondeserialize(String modelDefinition, String type) Deserializes ainstance from the given (textual) model definition.WorkflowModelgetMimeType(String type) Returns the mime type associated with a given type.serialize(WorkflowModel model, String type) Serializes the giveninto a textual representation.WorkflowModel
-
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 giveninto a textual representation.WorkflowModel- Parameters:
model- Theto be serialized.WorkflowModeltype- The type of the serialization format.- Returns:
- A serialized (textual) representation of the
or NULL if no serializer with the given type was found.WorkflowModel - Throws:
Exception
-
deserialize
Deserializes ainstance from the given (textual) model definition.WorkflowModel- Parameters:
modelDefinition- The model definition as string.type- The type of the serialization format.- Returns:
- The deserialized
or NULL if no serializer with the given type was found.WorkflowModel - Throws:
Exception
-