public override void Execute(IOperation operation, IOperationLogger logger) { ModuleIdsAndStatuses = moduleStore.GetHostModuleIds(operation, HostId).Result; foreach (var(moduleId, _) in ModuleIdsAndStatuses) { var response = new ProcessInstance.GetListRequest { BusinessKey = moduleId.ToString(), ProcessDefinitionKeyIn = new[] { CamundaWorkerKey.ModuleInstallationProcess, CamundaWorkerKey.ModuleUpgradeProcess, CamundaWorkerKey.ModuleRollbackProcess } }.SendRequest(operation, camundaClient, true).Result; foreach (var item in response.Response) { ModuleProcessInstanceIds.Add(int.Parse(item.BusinessKey), item.Id); } } }