Constructor and Description |
---|
ProcessDiagramJsonConverter() |
Modifier and Type | Method and Description |
---|---|
String |
convert(Module module,
String diagramURI)
Converts the process model diagram into a JSON string.
|
String |
convert(Module module,
String diagramURI,
Map<String,ElementRuntimeData> runtimeData)
Converts the process model diagram into a JSON string.
|
public String convert(Module module, String diagramURI)
module
- the module which contains the requested diagramdiagramURI
- the URI of the specific diagram to returnpublic String convert(Module module, String diagramURI, Map<String,ElementRuntimeData> runtimeData)
Converts the process model diagram into a JSON string.
This method accepts runtime data for elements. The purpose of this is
to display a runtime state of the model. The identifiers of elements are
URI as would be returned by EcoreUtil#getURI(org.eclipse.emf.ecore.EObject)
.
module
- the module which contains the requested diagramdiagramURI
- the URI of the specific diagram to returnruntimeData
- runtime data of elementsCopyright © 2007-2020 Whitestein Technologies. All Rights Reserved.