[ ] Extend the historic process instance query (HistoricProcessInstanceQuery) with #restartedByBatch(String batchId) filter criteria
filter historic process instances that has an old process instance which is related to job log related to the restart batch
[ ] Expose changes in REST API
[ ] document in OpenAPI
Hints
query idea: SELECT from ACT_HI_PROCINST RES join ACT_HI_JOB_LOG JL where JL.batchId = param.batchId and RES.restarted_proc_inst_id =JL.PROCESS_INSTANCE_ID_ - there will be more than one job log use the “exists” structure
Acceptance Criteria (Required on creation)
HistoricProcessInstanceQuery
) with#restartedByBatch(String batchId)
filter criteriaHints
SELECT from ACT_HI_PROCINST RES join ACT_HI_JOB_LOG JL where JL.batchId = param.batchId and RES.restarted_proc_inst_id =JL.PROCESS_INSTANCE_ID_
- there will be more than one job log use the “exists” structureorg.camunda.bpm.engine.history.HistoricProcessInstanceQuery
engine\src\main\resources\org\camunda\bpm\engine\impl\mapping\entity\HistoricProcessInstance.xml
org.camunda.bpm.engine.rest.dto.history.HistoricProcessInstanceQueryDto
AND
andOR
queries?Links
Breakdown