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