Esempio n. 1
0
        public virtual BatchDto setRetriesByProcessHistoricQueryBased(SetJobRetriesByProcessDto setJobRetriesDto)
        {
            IList <string> processInstanceIds = new List <string>();

            HistoricProcessInstanceQueryDto queryDto = setJobRetriesDto.HistoricProcessInstanceQuery;

            if (queryDto != null)
            {
                HistoricProcessInstanceQuery    query = queryDto.toQuery(ProcessEngine);
                IList <HistoricProcessInstance> historicProcessInstances = query.list();

                foreach (HistoricProcessInstance historicProcessInstance in historicProcessInstances)
                {
                    processInstanceIds.Add(historicProcessInstance.Id);
                }
            }

            if (setJobRetriesDto.ProcessInstances != null)
            {
                ((IList <string>)processInstanceIds).AddRange(setJobRetriesDto.ProcessInstances);
            }

            try
            {
                ManagementService managementService = ProcessEngine.ManagementService;
                Batch             batch             = managementService.setJobRetriesAsync(processInstanceIds, (ProcessInstanceQuery)null, setJobRetriesDto.Retries.Value);

                return(BatchDto.fromBatch(batch));
            }
            catch (BadUserRequestException e)
            {
                throw new InvalidRequestException(Status.BAD_REQUEST, e.Message);
            }
        }
Esempio n. 2
0
        protected internal virtual UpdateExternalTaskRetriesBuilder updateRetries(SetRetriesForExternalTasksDto retriesDto)
        {
            ExternalTaskService externalTaskService = ProcessEngine.ExternalTaskService;

            IList <string> externalTaskIds    = retriesDto.ExternalTaskIds;
            IList <string> processInstanceIds = retriesDto.ProcessInstanceIds;

            ExternalTaskQuery            externalTaskQuery            = null;
            ProcessInstanceQuery         processInstanceQuery         = null;
            HistoricProcessInstanceQuery historicProcessInstanceQuery = null;

            ExternalTaskQueryDto externalTaskQueryDto = retriesDto.ExternalTaskQuery;

            if (externalTaskQueryDto != null)
            {
                externalTaskQuery = externalTaskQueryDto.toQuery(ProcessEngine);
            }

            ProcessInstanceQueryDto processInstanceQueryDto = retriesDto.ProcessInstanceQuery;

            if (processInstanceQueryDto != null)
            {
                processInstanceQuery = processInstanceQueryDto.toQuery(ProcessEngine);
            }

            HistoricProcessInstanceQueryDto historicProcessInstanceQueryDto = retriesDto.HistoricProcessInstanceQuery;

            if (historicProcessInstanceQueryDto != null)
            {
                historicProcessInstanceQuery = historicProcessInstanceQueryDto.toQuery(ProcessEngine);
            }

            return(externalTaskService.updateRetries().externalTaskIds(externalTaskIds).processInstanceIds(processInstanceIds).externalTaskQuery(externalTaskQuery).processInstanceQuery(processInstanceQuery).historicProcessInstanceQuery(historicProcessInstanceQuery));
        }
Esempio n. 3
0
        public virtual BatchDto deleteAsyncHistoricQueryBased(DeleteProcessInstancesDto deleteProcessInstancesDto)
        {
            IList <string> processInstanceIds = new List <string>();

            HistoricProcessInstanceQueryDto queryDto = deleteProcessInstancesDto.HistoricProcessInstanceQuery;

            if (queryDto != null)
            {
                HistoricProcessInstanceQuery    query = queryDto.toQuery(ProcessEngine);
                IList <HistoricProcessInstance> historicProcessInstances = query.list();

                foreach (HistoricProcessInstance historicProcessInstance in historicProcessInstances)
                {
                    processInstanceIds.Add(historicProcessInstance.Id);
                }
            }

            if (deleteProcessInstancesDto.ProcessInstanceIds != null)
            {
                ((IList <string>)processInstanceIds).AddRange(deleteProcessInstancesDto.ProcessInstanceIds);
            }

            try
            {
                RuntimeService runtimeService = ProcessEngine.RuntimeService;
                Batch          batch          = runtimeService.deleteProcessInstancesAsync(processInstanceIds, null, deleteProcessInstancesDto.DeleteReason, deleteProcessInstancesDto.SkipCustomListeners, deleteProcessInstancesDto.SkipSubprocesses);

                return(BatchDto.fromBatch(batch));
            }
            catch (BadUserRequestException e)
            {
                throw new InvalidRequestException(Status.BAD_REQUEST, e.Message);
            }
        }
Esempio n. 4
0
        public virtual CountResultDto queryHistoricProcessInstancesCount(HistoricProcessInstanceQueryDto queryDto)
        {
            queryDto.ObjectMapper = objectMapper;
            HistoricProcessInstanceQuery query = queryDto.toQuery(processEngine);

            long           count  = query.count();
            CountResultDto result = new CountResultDto();

            result.Count = count;

            return(result);
        }
Esempio n. 5
0
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @Test public void testRestartProcessInstanceWithoutProcessInstanceIdsAsync()
        public virtual void testRestartProcessInstanceWithoutProcessInstanceIdsAsync()
        {
            when(historyServiceMock.createHistoricProcessInstanceQuery()).thenReturn(new HistoricProcessInstanceQueryImpl());
            IDictionary <string, object>          json         = new Dictionary <string, object>();
            IList <IDictionary <string, object> > instructions = new List <IDictionary <string, object> >();
            HistoricProcessInstanceQueryDto       query        = new HistoricProcessInstanceQueryDto();

            query.Finished = true;
            json["historicProcessInstanceQuery"] = query;
            instructions.Add(ModificationInstructionBuilder.startBefore().activityId("activityId").Json);
            json["instructions"] = instructions;

            given().pathParam("id", MockProvider.EXAMPLE_PROCESS_DEFINITION_ID).contentType(ContentType.JSON).body(json).then().expect().statusCode(Status.OK.StatusCode).when().post(RESTART_PROCESS_INSTANCE_ASYNC_URL);

            verify(builderMock).startBeforeActivity("activityId");
            verify(builderMock).historicProcessInstanceQuery(query.toQuery(processEngine));
            verify(builderMock).executeAsync();
            verifyNoMoreInteractions(builderMock);
        }
Esempio n. 6
0
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @Test public void testDeleteAsyncWithQuery()
        public virtual void testDeleteAsyncWithQuery()
        {
            Batch batchEntity = MockProvider.createMockBatch();

            when(historyServiceMock.deleteHistoricProcessInstancesAsync(anyListOf(typeof(string)), any(typeof(HistoricProcessInstanceQuery)), anyString())).thenReturn(batchEntity);

            IDictionary <string, object> messageBodyJson = new Dictionary <string, object>();

            messageBodyJson[DELETE_REASON] = TEST_DELETE_REASON;
            HistoricProcessInstanceQueryDto query = new HistoricProcessInstanceQueryDto();

            messageBodyJson["historicProcessInstanceQuery"] = query;

            Response response = given().contentType(ContentType.JSON).body(messageBodyJson).then().expect().statusCode(Status.OK.StatusCode).when().post(DELETE_HISTORIC_PROCESS_INSTANCES_ASYNC_URL);

            verifyBatchJson(response.asString());

            verify(historyServiceMock, times(1)).deleteHistoricProcessInstancesAsync(eq((IList <string>)null), any(typeof(HistoricProcessInstanceQuery)), Mockito.eq(TEST_DELETE_REASON));
        }
Esempio n. 7
0
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @Test public void testRestartProcessInstanceWithHistoricProcessInstanceQuerySync()
        public virtual void testRestartProcessInstanceWithHistoricProcessInstanceQuerySync()
        {
            when(historyServiceMock.createHistoricProcessInstanceQuery()).thenReturn(new HistoricProcessInstanceQueryImpl());
            Dictionary <string, object>           json         = new Dictionary <string, object>();
            IList <IDictionary <string, object> > instructions = new List <IDictionary <string, object> >();

            instructions.Add(ModificationInstructionBuilder.startBefore().activityId("activityId").Json);
            json["instructions"] = instructions;

            HistoricProcessInstanceQueryDto query = new HistoricProcessInstanceQueryDto();

            query.ProcessInstanceBusinessKey = "businessKey";

            json["historicProcessInstanceQuery"] = query;

            given().pathParam("id", MockProvider.EXAMPLE_PROCESS_DEFINITION_ID).contentType(ContentType.JSON).body(json).then().expect().statusCode(Status.NO_CONTENT.StatusCode).when().post(RESTART_PROCESS_INSTANCE_URL);

            verify(runtimeServiceMock).restartProcessInstances(MockProvider.EXAMPLE_PROCESS_DEFINITION_ID);
            verify(builderMock).startBeforeActivity("activityId");
            verify(builderMock).historicProcessInstanceQuery(query.toQuery(processEngine));
            verify(builderMock).execute();
        }
Esempio n. 8
0
 /// <summary>
 /// Initializes a new instance of the <see cref="DeleteProcessInstancesDto" /> class.
 /// </summary>
 /// <param name="processInstanceIds">A list process instance ids to delete..</param>
 /// <param name="deleteReason">A string with delete reason..</param>
 /// <param name="skipCustomListeners">Skip execution listener invocation for activities that are started or ended as part of this request..</param>
 /// <param name="skipSubprocesses">Skip deletion of the subprocesses related to deleted processes as part of this request..</param>
 /// <param name="processInstanceQuery">processInstanceQuery.</param>
 /// <param name="historicProcessInstanceQuery">historicProcessInstanceQuery.</param>
 public DeleteProcessInstancesDto(List <string> processInstanceIds = default(List <string>), string deleteReason = default(string), bool?skipCustomListeners = default(bool?), bool?skipSubprocesses = default(bool?), ProcessInstanceQueryDto processInstanceQuery = default(ProcessInstanceQueryDto), HistoricProcessInstanceQueryDto historicProcessInstanceQuery = default(HistoricProcessInstanceQueryDto))
 {
     this.ProcessInstanceIds           = processInstanceIds;
     this.DeleteReason                 = deleteReason;
     this.SkipCustomListeners          = skipCustomListeners;
     this.SkipSubprocesses             = skipSubprocesses;
     this.ProcessInstanceQuery         = processInstanceQuery;
     this.HistoricProcessInstanceQuery = historicProcessInstanceQuery;
 }
Esempio n. 9
0
 /// <summary>
 /// Initializes a new instance of the <see cref="SetVariablesAsyncDto" /> class.
 /// </summary>
 /// <param name="processInstanceIds">A list of process instance ids that define a group of process instances to which the operation will set variables.  Please note that if &#x60;processInstanceIds&#x60;, &#x60;processInstanceQuery&#x60; and &#x60;historicProcessInstanceQuery&#x60; are defined, the resulting operation will be performed on the union of these sets..</param>
 /// <param name="processInstanceQuery">processInstanceQuery.</param>
 /// <param name="historicProcessInstanceQuery">historicProcessInstanceQuery.</param>
 /// <param name="variables">A variables the operation will set in the root scope of the process instances..</param>
 public SetVariablesAsyncDto(List <string> processInstanceIds = default(List <string>), ProcessInstanceQueryDto processInstanceQuery = default(ProcessInstanceQueryDto), HistoricProcessInstanceQueryDto historicProcessInstanceQuery = default(HistoricProcessInstanceQueryDto), Dictionary <string, VariableValueDto> variables = default(Dictionary <string, VariableValueDto>))
 {
     this.ProcessInstanceIds           = processInstanceIds;
     this.ProcessInstanceQuery         = processInstanceQuery;
     this.HistoricProcessInstanceQuery = historicProcessInstanceQuery;
     this.Variables = variables;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="SetRetriesForExternalTasksDto" /> class.
 /// </summary>
 /// <param name="retries">The number of retries to set for the external task.  Must be &gt;&#x3D; 0. If this is 0, an incident is created and the task cannot be fetched anymore unless the retries are increased again. Can not be null..</param>
 /// <param name="externalTaskIds">The ids of the external tasks to set the number of retries for..</param>
 /// <param name="processInstanceIds">The ids of process instances containing the tasks to set the number of retries for..</param>
 /// <param name="externalTaskQuery">externalTaskQuery.</param>
 /// <param name="processInstanceQuery">processInstanceQuery.</param>
 /// <param name="historicProcessInstanceQuery">historicProcessInstanceQuery.</param>
 public SetRetriesForExternalTasksDto(int?retries = default(int?), List <string> externalTaskIds = default(List <string>), List <string> processInstanceIds = default(List <string>), ExternalTaskQueryDto externalTaskQuery = default(ExternalTaskQueryDto), ProcessInstanceQueryDto processInstanceQuery = default(ProcessInstanceQueryDto), HistoricProcessInstanceQueryDto historicProcessInstanceQuery = default(HistoricProcessInstanceQueryDto))
 {
     this.Retries                      = retries;
     this.Retries                      = retries;
     this.ExternalTaskIds              = externalTaskIds;
     this.ProcessInstanceIds           = processInstanceIds;
     this.ExternalTaskQuery            = externalTaskQuery;
     this.ProcessInstanceQuery         = processInstanceQuery;
     this.HistoricProcessInstanceQuery = historicProcessInstanceQuery;
 }
Esempio n. 11
0
        public virtual CountResultDto getHistoricProcessInstancesCount(UriInfo uriInfo)
        {
            HistoricProcessInstanceQueryDto queryDto = new HistoricProcessInstanceQueryDto(objectMapper, uriInfo.QueryParameters);

            return(queryHistoricProcessInstancesCount(queryDto));
        }
 /// <summary>
 /// Initializes a new instance of the <see cref="ProcessInstanceSuspensionStateDto" /> class.
 /// </summary>
 /// <param name="suspended">A &#x60;Boolean&#x60; value which indicates whether to activate or suspend a given process instance. When the value is set to &#x60;true&#x60;, the given process instance will be suspended and when the value is set to &#x60;false&#x60;, the given process instance will be activated..</param>
 /// <param name="processDefinitionId">The process definition id of the process instances to activate or suspend.  **Note**: This parameter can be used only with combination of &#x60;suspended&#x60;..</param>
 /// <param name="processDefinitionKey">The process definition key of the process instances to activate or suspend.  **Note**: This parameter can be used only with combination of &#x60;suspended&#x60;, &#x60;processDefinitionTenantId&#x60;, and &#x60;processDefinitionWithoutTenantId&#x60;..</param>
 /// <param name="processDefinitionTenantId">Only activate or suspend process instances of a process definition which belongs to a tenant with the given id.  **Note**: This parameter can be used only with combination of &#x60;suspended&#x60;, &#x60;processDefinitionKey&#x60;, and &#x60;processDefinitionWithoutTenantId&#x60;..</param>
 /// <param name="processDefinitionWithoutTenantId">Only activate or suspend process instances of a process definition which belongs to no tenant. Value may only be true, as false is the default behavior.  **Note**: This parameter can be used only with combination of &#x60;suspended&#x60;, &#x60;processDefinitionKey&#x60;, and &#x60;processDefinitionTenantId&#x60;..</param>
 /// <param name="processInstanceIds">A list of process instance ids which defines a group of process instances which will be activated or suspended by the operation.  **Note**: This parameter can be used only with combination of &#x60;suspended&#x60;, &#x60;processInstanceQuery&#x60;, and &#x60;historicProcessInstanceQuery&#x60;..</param>
 /// <param name="processInstanceQuery">processInstanceQuery.</param>
 /// <param name="historicProcessInstanceQuery">historicProcessInstanceQuery.</param>
 public ProcessInstanceSuspensionStateDto(bool?suspended = default(bool?), string processDefinitionId = default(string), string processDefinitionKey = default(string), string processDefinitionTenantId = default(string), bool?processDefinitionWithoutTenantId = default(bool?), List <string> processInstanceIds = default(List <string>), ProcessInstanceQueryDto processInstanceQuery = default(ProcessInstanceQueryDto), HistoricProcessInstanceQueryDto historicProcessInstanceQuery = default(HistoricProcessInstanceQueryDto))
 {
     this.Suspended = suspended;
     this.ProcessDefinitionWithoutTenantId = processDefinitionWithoutTenantId;
     this.Suspended                        = suspended;
     this.ProcessDefinitionId              = processDefinitionId;
     this.ProcessDefinitionKey             = processDefinitionKey;
     this.ProcessDefinitionTenantId        = processDefinitionTenantId;
     this.ProcessDefinitionWithoutTenantId = processDefinitionWithoutTenantId;
     this.ProcessInstanceIds               = processInstanceIds;
     this.ProcessInstanceQuery             = processInstanceQuery;
     this.HistoricProcessInstanceQuery     = historicProcessInstanceQuery;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="SetRemovalTimeToHistoricProcessInstancesDtoAllOf" /> class.
 /// </summary>
 /// <param name="historicProcessInstanceIds">The id of the process instance..</param>
 /// <param name="historicProcessInstanceQuery">historicProcessInstanceQuery.</param>
 /// <param name="hierarchical">Sets the removal time to all historic process instances in the hierarchy. Value may only be &#x60;true&#x60;, as &#x60;false&#x60; is the default behavior..</param>
 public SetRemovalTimeToHistoricProcessInstancesDtoAllOf(List <string> historicProcessInstanceIds = default(List <string>), HistoricProcessInstanceQueryDto historicProcessInstanceQuery = default(HistoricProcessInstanceQueryDto), bool?hierarchical = default(bool?))
 {
     this.HistoricProcessInstanceIds   = historicProcessInstanceIds;
     this.HistoricProcessInstanceQuery = historicProcessInstanceQuery;
     this.Hierarchical = hierarchical;
 }
Esempio n. 14
0
        public virtual IList <HistoricProcessInstanceDto> queryHistoricProcessInstances(HistoricProcessInstanceQueryDto queryDto, int?firstResult, int?maxResults)
        {
            queryDto.ObjectMapper = objectMapper;
            HistoricProcessInstanceQuery query = queryDto.toQuery(processEngine);

            IList <HistoricProcessInstance> matchingHistoricProcessInstances;

            if (firstResult != null || maxResults != null)
            {
                matchingHistoricProcessInstances = executePaginatedQuery(query, firstResult, maxResults);
            }
            else
            {
                matchingHistoricProcessInstances = query.list();
            }

            IList <HistoricProcessInstanceDto> historicProcessInstanceDtoResults = new List <HistoricProcessInstanceDto>();

            foreach (HistoricProcessInstance historicProcessInstance in matchingHistoricProcessInstances)
            {
                HistoricProcessInstanceDto resultHistoricProcessInstanceDto = HistoricProcessInstanceDto.fromHistoricProcessInstance(historicProcessInstance);
                historicProcessInstanceDtoResults.Add(resultHistoricProcessInstanceDto);
            }
            return(historicProcessInstanceDtoResults);
        }
Esempio n. 15
0
        public virtual IList <HistoricProcessInstanceDto> getHistoricProcessInstances(UriInfo uriInfo, int?firstResult, int?maxResults)
        {
            HistoricProcessInstanceQueryDto queryHistoriProcessInstanceDto = new HistoricProcessInstanceQueryDto(objectMapper, uriInfo.QueryParameters);

            return(queryHistoricProcessInstances(queryHistoriProcessInstanceDto, firstResult, maxResults));
        }
Esempio n. 16
0
 /// <summary>
 /// Initializes a new instance of the <see cref="RestartProcessInstanceDto" /> class.
 /// </summary>
 /// <param name="processInstanceIds">A list of process instance ids to restart..</param>
 /// <param name="historicProcessInstanceQuery">historicProcessInstanceQuery.</param>
 /// <param name="skipCustomListeners">Skip execution listener invocation for activities that are started as part of this request..</param>
 /// <param name="skipIoMappings">Skip execution of [input/output variable mappings](https://docs.camunda.org/manual/7.13/user-guide/process-engine/variables/#input-output-variable-mapping) for activities that are started as part of this request..</param>
 /// <param name="initialVariables">Set the initial set of variables during restart. By default, the last set of variables is used..</param>
 /// <param name="withoutBusinessKey">Do not take over the business key of the historic process instance..</param>
 /// <param name="instructions">**Optional**. A JSON array of instructions that specify which activities to start the process instance at. If this property is omitted, the process instance starts at its default blank start event..</param>
 public RestartProcessInstanceDto(List <string> processInstanceIds = default(List <string>), HistoricProcessInstanceQueryDto historicProcessInstanceQuery = default(HistoricProcessInstanceQueryDto), bool?skipCustomListeners = default(bool?), bool?skipIoMappings = default(bool?), bool?initialVariables = default(bool?), bool?withoutBusinessKey = default(bool?), List <RestartProcessInstanceModificationInstructionDto> instructions = default(List <RestartProcessInstanceModificationInstructionDto>))
 {
     this.SkipCustomListeners          = skipCustomListeners;
     this.SkipIoMappings               = skipIoMappings;
     this.InitialVariables             = initialVariables;
     this.WithoutBusinessKey           = withoutBusinessKey;
     this.ProcessInstanceIds           = processInstanceIds;
     this.HistoricProcessInstanceQuery = historicProcessInstanceQuery;
     this.SkipCustomListeners          = skipCustomListeners;
     this.SkipIoMappings               = skipIoMappings;
     this.InitialVariables             = initialVariables;
     this.WithoutBusinessKey           = withoutBusinessKey;
     this.Instructions = instructions;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="SetJobRetriesByProcessDto" /> class.
 /// </summary>
 /// <param name="processInstances">A list of process instance ids to fetch jobs, for which retries will be set..</param>
 /// <param name="retries">An integer representing the number of retries. Please note that the value cannot be negative or null..</param>
 /// <param name="processInstanceQuery">processInstanceQuery.</param>
 /// <param name="historicProcessInstanceQuery">historicProcessInstanceQuery.</param>
 public SetJobRetriesByProcessDto(List <string> processInstances = default(List <string>), int?retries = default(int?), ProcessInstanceQueryDto processInstanceQuery = default(ProcessInstanceQueryDto), HistoricProcessInstanceQueryDto historicProcessInstanceQuery = default(HistoricProcessInstanceQueryDto))
 {
     this.Retries                      = retries;
     this.ProcessInstances             = processInstances;
     this.Retries                      = retries;
     this.ProcessInstanceQuery         = processInstanceQuery;
     this.HistoricProcessInstanceQuery = historicProcessInstanceQuery;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="DeleteHistoricProcessInstancesDto" /> class.
 /// </summary>
 /// <param name="historicProcessInstanceIds">A list historic process instance ids to delete..</param>
 /// <param name="historicProcessInstanceQuery">historicProcessInstanceQuery.</param>
 /// <param name="deleteReason">A string with delete reason..</param>
 /// <param name="failIfNotExists">If set to &#x60;false&#x60;, the request will still be successful if one ore more of the process ids are not found..</param>
 public DeleteHistoricProcessInstancesDto(List <string> historicProcessInstanceIds = default(List <string>), HistoricProcessInstanceQueryDto historicProcessInstanceQuery = default(HistoricProcessInstanceQueryDto), string deleteReason = default(string), bool?failIfNotExists = default(bool?))
 {
     this.HistoricProcessInstanceIds   = historicProcessInstanceIds;
     this.HistoricProcessInstanceQuery = historicProcessInstanceQuery;
     this.DeleteReason    = deleteReason;
     this.FailIfNotExists = failIfNotExists;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="SetRemovalTimeToHistoricProcessInstancesDto" /> class.
 /// </summary>
 /// <param name="historicProcessInstanceIds">The id of the process instance..</param>
 /// <param name="historicProcessInstanceQuery">historicProcessInstanceQuery.</param>
 /// <param name="hierarchical">Sets the removal time to all historic process instances in the hierarchy. Value may only be &#x60;true&#x60;, as &#x60;false&#x60; is the default behavior..</param>
 /// <param name="absoluteRemovalTime">The date for which the instances shall be removed. Value may not be &#x60;null&#x60;.  **Note:** Cannot be set in conjunction with &#x60;clearedRemovalTime&#x60; or &#x60;calculatedRemovalTime&#x60;..</param>
 /// <param name="clearedRemovalTime">Sets the removal time to &#x60;null&#x60;. Value may only be &#x60;true&#x60;, as &#x60;false&#x60; is the default behavior.  **Note:** Cannot be set in conjunction with &#x60;absoluteRemovalTime&#x60; or &#x60;calculatedRemovalTime&#x60;..</param>
 /// <param name="calculatedRemovalTime">The removal time is calculated based on the engine&#39;s configuration settings. Value may only be &#x60;true&#x60;, as &#x60;false&#x60; is the default behavior.  **Note:** Cannot be set in conjunction with &#x60;absoluteRemovalTime&#x60; or &#x60;clearedRemovalTime&#x60;..</param>
 public SetRemovalTimeToHistoricProcessInstancesDto(List <string> historicProcessInstanceIds = default(List <string>), HistoricProcessInstanceQueryDto historicProcessInstanceQuery = default(HistoricProcessInstanceQueryDto), bool?hierarchical = default(bool?), DateTime?absoluteRemovalTime = default(DateTime?), bool?clearedRemovalTime = default(bool?), bool?calculatedRemovalTime = default(bool?))
 {
     this.HistoricProcessInstanceIds   = historicProcessInstanceIds;
     this.HistoricProcessInstanceQuery = historicProcessInstanceQuery;
     this.Hierarchical          = hierarchical;
     this.AbsoluteRemovalTime   = absoluteRemovalTime;
     this.ClearedRemovalTime    = clearedRemovalTime;
     this.CalculatedRemovalTime = calculatedRemovalTime;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="ProcessInstanceSuspensionStateAsyncDto" /> class.
 /// </summary>
 /// <param name="suspended">A Boolean value which indicates whether to activate or suspend a given process instance. When the value is set to true, the given process instance will be suspended and when the value is set to false, the given process instance will be activated..</param>
 /// <param name="processInstanceIds">A list of process instance ids which defines a group of process instances which will be activated or suspended by the operation..</param>
 /// <param name="processInstanceQuery">processInstanceQuery.</param>
 /// <param name="historicProcessInstanceQuery">historicProcessInstanceQuery.</param>
 public ProcessInstanceSuspensionStateAsyncDto(bool?suspended = default(bool?), List <string> processInstanceIds = default(List <string>), ProcessInstanceQueryDto processInstanceQuery = default(ProcessInstanceQueryDto), HistoricProcessInstanceQueryDto historicProcessInstanceQuery = default(HistoricProcessInstanceQueryDto))
 {
     this.Suspended                    = suspended;
     this.ProcessInstanceIds           = processInstanceIds;
     this.ProcessInstanceQuery         = processInstanceQuery;
     this.HistoricProcessInstanceQuery = historicProcessInstanceQuery;
 }