@PermitAll public class VisualizationServiceBean extends java.lang.Object implements VisualizationServiceLocal
Constructor and Description |
---|
VisualizationServiceBean() |
Modifier and Type | Method and Description |
---|---|
java.util.List<DiagramInfo> |
findDiagrams(long moduleId,
java.lang.String elementId)
Finds diagrams for an element.
|
java.lang.String |
getDiagram(java.lang.String modelId,
java.lang.String diagramUri)
Gets a process model diagram as a JSON string.
|
ModuleResources |
getModuleResources(long moduleId)
Finds resources defined in a specific module.
|
java.lang.String |
getRuntimeDiagram(long modelInstanceId,
java.lang.Long processInstanceId,
java.lang.String diagramUri)
Gets a runtime diagram as JSON string for the given process
instance.
|
public java.lang.String getDiagram(java.lang.String modelId, java.lang.String diagramUri)
VisualizationServiceLocal
getDiagram
in interface VisualizationServiceLocal
modelId
- the identifier of the module in which the process is defineddiagramUri
- the URI to the diagrampublic java.lang.String getRuntimeDiagram(long modelInstanceId, java.lang.Long processInstanceId, java.lang.String diagramUri)
VisualizationServiceLocal
It might happen that there is no process instance for the requested diagram. This is true if for example user tries to click on a subprocess but the subprocess hasn't been executed yet. But is is a valid request to display a runtime diagram for a not executed subprocess. In such a case this method should return a diagram with disabled elements.
getRuntimeDiagram
in interface VisualizationServiceLocal
modelInstanceId
- the identifier of the model instanceprocessInstanceId
- the identifier of the process instance (optional)diagramUri
- the identifier of the diagram which should be displayedpublic java.util.List<DiagramInfo> findDiagrams(long moduleId, java.lang.String elementId)
VisualizationServiceLocal
findDiagrams
in interface VisualizationServiceLocal
moduleId
- the identifier of the moduleelementId
- the identifier of the element@RightsAllowed(value="Model:Read") public ModuleResources getModuleResources(long moduleId)
VisualizationServiceLocal
getModuleResources
in interface VisualizationServiceLocal
moduleId
- the identifier of the module which should be searched
for resourcesCopyright © 2007-2020 Whitestein Technologies. All Rights Reserved.