@RestController public class DisplayJsonClientResource extends AbstractClientResource
| Modifier and Type | Field and Description |
|---|---|
protected ProcessDefinitionService |
clientService |
protected List<String> |
eventElementTypes |
protected com.fasterxml.jackson.databind.ObjectMapper |
objectMapper |
protected ProcessInstanceService |
processInstanceService |
protected Map<String,InfoMapper> |
propertyMappers |
configRepository| Constructor and Description |
|---|
DisplayJsonClientResource() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
commonFillGraphicInfo(com.fasterxml.jackson.databind.node.ObjectNode elementNode,
double x,
double y,
double width,
double height,
boolean includeWidthAndHeight) |
protected void |
fillDiagramInfo(GraphicInfo graphicInfo,
GraphicInfo diagramInfo) |
protected void |
fillEventTypes(String className,
FlowElement element,
com.fasterxml.jackson.databind.node.ObjectNode elementNode) |
protected void |
fillGraphicInfo(com.fasterxml.jackson.databind.node.ObjectNode elementNode,
GraphicInfo graphicInfo,
boolean includeWidthAndHeight) |
protected void |
fillWaypoints(String id,
BpmnModel model,
com.fasterxml.jackson.databind.node.ObjectNode elementNode,
GraphicInfo diagramInfo) |
protected List<String> |
gatherCompletedFlows(List<String> completedActivityInstances,
List<String> currentActivityinstances,
BpmnModel pojoModel) |
com.fasterxml.jackson.databind.JsonNode |
getHistoryProcessInstanceModelJSON(String processInstanceId,
String processDefinitionId) |
com.fasterxml.jackson.databind.JsonNode |
getProcessDefinitionModelJSON(String processDefinitionId) |
com.fasterxml.jackson.databind.JsonNode |
getProcessInstanceModelJSON(String processInstanceId,
String processDefinitionId) |
protected void |
processArtifacts(Collection<Artifact> artifactList,
BpmnModel model,
com.fasterxml.jackson.databind.node.ArrayNode elementArray,
com.fasterxml.jackson.databind.node.ArrayNode flowArray,
GraphicInfo diagramInfo) |
protected void |
processElements(Collection<FlowElement> elementList,
BpmnModel model,
com.fasterxml.jackson.databind.node.ArrayNode elementArray,
com.fasterxml.jackson.databind.node.ArrayNode flowArray,
com.fasterxml.jackson.databind.node.ArrayNode collapsedArray,
GraphicInfo diagramInfo,
Set<String> completedElements,
Set<String> currentElements,
com.fasterxml.jackson.databind.node.ObjectNode collapsedNode) |
protected void |
processProcessElements(ServerConfig config,
BpmnModel pojoModel,
com.fasterxml.jackson.databind.node.ObjectNode displayNode,
GraphicInfo diagramInfo,
Set<String> completedElements,
Set<String> currentElements) |
getRequestParametersWithoutServerId, retrieveServerConfig@Autowired protected ProcessDefinitionService clientService
@Autowired protected ProcessInstanceService processInstanceService
protected com.fasterxml.jackson.databind.ObjectMapper objectMapper
protected Map<String,InfoMapper> propertyMappers
@GetMapping(value="/rest/admin/process-definitions/{processDefinitionId}/model-json",
produces="application/json")
public com.fasterxml.jackson.databind.JsonNode getProcessDefinitionModelJSON(@PathVariable
String processDefinitionId)
@GetMapping(value="/rest/admin/process-instances/{processInstanceId}/model-json",
produces="application/json")
public com.fasterxml.jackson.databind.JsonNode getProcessInstanceModelJSON(@PathVariable
String processInstanceId,
@RequestParam(required=true)
String processDefinitionId)
@GetMapping(value="/rest/admin/process-instances/{processInstanceId}/history-model-json",
produces="application/json")
public com.fasterxml.jackson.databind.JsonNode getHistoryProcessInstanceModelJSON(@PathVariable
String processInstanceId,
@RequestParam(required=true)
String processDefinitionId)
protected List<String> gatherCompletedFlows(List<String> completedActivityInstances, List<String> currentActivityinstances, BpmnModel pojoModel)
protected void processProcessElements(ServerConfig config, BpmnModel pojoModel, com.fasterxml.jackson.databind.node.ObjectNode displayNode, GraphicInfo diagramInfo, Set<String> completedElements, Set<String> currentElements) throws Exception
Exceptionprotected void processElements(Collection<FlowElement> elementList, BpmnModel model, com.fasterxml.jackson.databind.node.ArrayNode elementArray, com.fasterxml.jackson.databind.node.ArrayNode flowArray, com.fasterxml.jackson.databind.node.ArrayNode collapsedArray, GraphicInfo diagramInfo, Set<String> completedElements, Set<String> currentElements, com.fasterxml.jackson.databind.node.ObjectNode collapsedNode)
protected void processArtifacts(Collection<Artifact> artifactList, BpmnModel model, com.fasterxml.jackson.databind.node.ArrayNode elementArray, com.fasterxml.jackson.databind.node.ArrayNode flowArray, GraphicInfo diagramInfo)
protected void fillWaypoints(String id, BpmnModel model, com.fasterxml.jackson.databind.node.ObjectNode elementNode, GraphicInfo diagramInfo)
protected void fillEventTypes(String className, FlowElement element, com.fasterxml.jackson.databind.node.ObjectNode elementNode)
protected void fillGraphicInfo(com.fasterxml.jackson.databind.node.ObjectNode elementNode,
GraphicInfo graphicInfo,
boolean includeWidthAndHeight)
protected void commonFillGraphicInfo(com.fasterxml.jackson.databind.node.ObjectNode elementNode,
double x,
double y,
double width,
double height,
boolean includeWidthAndHeight)
protected void fillDiagramInfo(GraphicInfo graphicInfo, GraphicInfo diagramInfo)
Copyright © 2022 Flowable. All rights reserved.