Class DeleteProcessDefinitionsBuilderImpl
java.lang.Object
org.camunda.bpm.engine.impl.repository.DeleteProcessDefinitionsBuilderImpl
- All Implemented Interfaces:
DeleteProcessDefinitionsBuilder,DeleteProcessDefinitionsSelectBuilder,DeleteProcessDefinitionsTenantBuilder
public class DeleteProcessDefinitionsBuilderImpl
extends Object
implements DeleteProcessDefinitionsBuilder, DeleteProcessDefinitionsSelectBuilder, DeleteProcessDefinitionsTenantBuilder
Fluent builder implementation to delete process definitions.
- Author:
- Tassilo Weidner
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionSelects process definitions with given process definition ids.Selects process definitions with a given key.cascade()All process instances of the process definition as well as history data is deleted.voiddelete()Performs the deletion of process definitions.Only the built-inExecutionListeners are notified with theExecutionListener.EVENTNAME_ENDevent.Specifies whether input/output mappings for tasks should be invokedProcess definitions which belong to no tenant will be removed.withTenantId(String tenantId) Process definitions which belong to the given tenant id will be removed.
-
Field Details
-
skipIoMappings
protected boolean skipIoMappings
-
-
Constructor Details
-
DeleteProcessDefinitionsBuilderImpl
-
-
Method Details
-
byIds
Description copied from interface:DeleteProcessDefinitionsSelectBuilderSelects process definitions with given process definition ids.- Specified by:
byIdsin interfaceDeleteProcessDefinitionsSelectBuilder- Parameters:
processDefinitionId- at least one process definition id- Returns:
- the builder
-
byKey
Description copied from interface:DeleteProcessDefinitionsSelectBuilderSelects process definitions with a given key.- Specified by:
byKeyin interfaceDeleteProcessDefinitionsSelectBuilder- Parameters:
processDefinitionKey- process definition key- Returns:
- the builder
-
withoutTenantId
Description copied from interface:DeleteProcessDefinitionsTenantBuilderProcess definitions which belong to no tenant will be removed.- Specified by:
withoutTenantIdin interfaceDeleteProcessDefinitionsTenantBuilder- Returns:
- the builder
-
withTenantId
Description copied from interface:DeleteProcessDefinitionsTenantBuilderProcess definitions which belong to the given tenant id will be removed.- Specified by:
withTenantIdin interfaceDeleteProcessDefinitionsTenantBuilder- Parameters:
tenantId- id which identifies the tenant- Returns:
- the builder
-
cascade
Description copied from interface:DeleteProcessDefinitionsBuilderAll process instances of the process definition as well as history data is deleted.- Specified by:
cascadein interfaceDeleteProcessDefinitionsBuilder- Returns:
- the builder
-
skipCustomListeners
Description copied from interface:DeleteProcessDefinitionsBuilderOnly the built-inExecutionListeners are notified with theExecutionListener.EVENTNAME_ENDevent. Is only applied in conjunction with the cascade method.- Specified by:
skipCustomListenersin interfaceDeleteProcessDefinitionsBuilder- Returns:
- the builder
-
skipIoMappings
Description copied from interface:DeleteProcessDefinitionsBuilderSpecifies whether input/output mappings for tasks should be invoked- Specified by:
skipIoMappingsin interfaceDeleteProcessDefinitionsBuilder- Returns:
- the builder
-
delete
public void delete()Description copied from interface:DeleteProcessDefinitionsBuilderPerforms the deletion of process definitions.- Specified by:
deletein interfaceDeleteProcessDefinitionsBuilder
-