Interface SerializationService
-
public interface SerializationServiceTheSerializationServicemanages access toservices.WorkflowModelSerializer
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description WorkflowModeldeserialize(String modelDefinition, String type)Deserializes ainstance from the given (textual) model definition.WorkflowModelStringgetMimeType(String type)Returns the mime type associated with a given type.Stringserialize(WorkflowModel model, String type)Serializes the giveninto a textual representation.WorkflowModel
-
-
-
Method Detail
-
getMimeType
String getMimeType(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
String serialize(WorkflowModel model, String type) throws Exception
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
WorkflowModel deserialize(String modelDefinition, String type) throws Exception
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
-
-