|
@@ -250,6 +250,10 @@ public class ProcessInstanceServiceImpl extends BaseServiceImpl implements Proce
|
|
|
logger.error("Process definition does not exist, projectCode:{}.", projectCode);
|
|
|
putMsg(result, Status.PROCESS_DEFINE_NOT_EXIST, processId);
|
|
|
} else {
|
|
|
+ Tenant tenant = tenantMapper.queryById(processDefinition.getTenantId());
|
|
|
+ if (tenant != null) {
|
|
|
+ processDefinition.setTenantCode(tenant.getTenantCode());
|
|
|
+ }
|
|
|
processInstance.setLocations(processDefinition.getLocations());
|
|
|
processInstance.setDagData(processService.genDagData(processDefinition));
|
|
|
result.put(DATA_LIST, processInstance);
|