Activiti Api processInstanceIds(processInstanceIds)

Activiti Api processInstanceIds(processInstanceIds)

是否可以使用 processInstanceId 列表向 act_hi_varinst 发出请求。 在当前 api 中,我可以这样做:historyService.createHistoricVariableInstanceQuery().processInstanceId(processInstanceId) 但我找不到这个:historyService.createHistoricVariableInstanceQuery().processInstanceIds(processInstanceIds)。那么是否还有其他替代方法可以提出此请求?

据我所知,您无法通过使用 HistoricVariableInstanceQueryImpl.
来实现此目的 您应该使用 NativeHistoricVariableInstanceQueryImpl。 例如,

historyService.createNativeHistoricVariableInstanceQuery().sql("select
* from ACT_HI_VARINST where PROC_INST_ID_ IN ('1', '2')");