...
- REST APIs for providing data to UIs
- Capabilities
- Provides REST services, by utilzing 1) Camunda REST APIs, such as BPMN XML string, process activity data, process variable, statistic, and 2) SO Request DB APIs for a service list.
- Consolidate data responses from multple Camunda calls (both from process and history database) and feed them to UIs.
- Use of HistoryService APIs, example, processEngine.getHistoryService().createHistoricProcessVariableQuery().xyz
- Set a History level to ACTIVITY as a minimum; AUDIT (default) level for process variable tracing
- Provides workflow tracing (between parent-child workflows, interaction with other services; service task in and out); example,
- processEngine.getRuntimeService().createExecutionQuery().processVariableValueEquals("serviceInstanceId", serviceInstanceId).singleResult();
- Custom Query
- Custom Query against History ACT_HI_DETAIL database table, as needed
- Create a REST API, getServiceList with search criteria
- invoke getInfraRequest(...) to collect service list data based on search criteria.
- Design
- Write REST APIs in the new mso-api-handlers/mso-api-handler-monitoring
- getServiceList(Map searchCriteria...) invokes new getInfraRequest(Map searchCriteria...)
- getProcessInstanceId(String serviceInstanceId);
- getprocessDiagram(String processInstanceId); getProcessDiagram(String serviceInstanceId);
- getprocessInstanceDetail(String processInstanceId); getProcessInstanceDetail(String serviceInstanceId);
- getProcessInstanceActivity(String processInstanceId); getProcessInstanceActivity(String serviceInstanceId);
- getProcessTaskDetail(String taskId);
- getProcessTaskType(String taskid);
- Write REST APIs in the new mso-api-handlers/mso-api-handler-monitoring
- The following diagram depicts the API interaction.
- Capabilities
...