update - 处理查询流程实例时入参中的 hasVariable 处理逻辑
This commit is contained in:
parent
d9f504a703
commit
d934b032a8
@ -74,7 +74,7 @@ public class BpmProcessInstanceServiceImpl implements BpmProcessInstanceService
|
||||
@Nullable Boolean hasVariable) {
|
||||
ProcessInstanceQuery instanceQuery =
|
||||
runtimeService.createProcessInstanceQuery().processInstanceBusinessKey(businessKey);
|
||||
if (Boolean.TRUE.equals(hasVariable)) {
|
||||
if (Objects.nonNull(hasVariable) && Boolean.TRUE.equals(hasVariable)) {
|
||||
instanceQuery.includeProcessVariables();
|
||||
}
|
||||
if (StringUtils.isNotBlank(tenantId)) {
|
||||
@ -103,7 +103,7 @@ public class BpmProcessInstanceServiceImpl implements BpmProcessInstanceService
|
||||
@Override
|
||||
public ProcessInstance getProcessInstance(String id, String tenantId, Boolean hasVariable) {
|
||||
ProcessInstanceQuery instanceQuery = runtimeService.createProcessInstanceQuery().processInstanceId(id);
|
||||
if (Boolean.TRUE.equals(hasVariable)) {
|
||||
if (Objects.nonNull(hasVariable) && Boolean.TRUE.equals(hasVariable)) {
|
||||
instanceQuery.includeProcessVariables();
|
||||
}
|
||||
if (StringUtils.isNotBlank(tenantId)) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user