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
-
Constructor Summary
-
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.void
delete()
Performs the deletion of process definitions.Only the built-inExecutionListener
s are notified with theExecutionListener.EVENTNAME_END
event.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:DeleteProcessDefinitionsSelectBuilder
Selects process definitions with given process definition ids.- Specified by:
byIds
in interfaceDeleteProcessDefinitionsSelectBuilder
- Parameters:
processDefinitionId
- at least one process definition id- Returns:
- the builder
-
byKey
Description copied from interface:DeleteProcessDefinitionsSelectBuilder
Selects process definitions with a given key.- Specified by:
byKey
in interfaceDeleteProcessDefinitionsSelectBuilder
- Parameters:
processDefinitionKey
- process definition key- Returns:
- the builder
-
withoutTenantId
Description copied from interface:DeleteProcessDefinitionsTenantBuilder
Process definitions which belong to no tenant will be removed.- Specified by:
withoutTenantId
in interfaceDeleteProcessDefinitionsTenantBuilder
- Returns:
- the builder
-
withTenantId
Description copied from interface:DeleteProcessDefinitionsTenantBuilder
Process definitions which belong to the given tenant id will be removed.- Specified by:
withTenantId
in interfaceDeleteProcessDefinitionsTenantBuilder
- Parameters:
tenantId
- id which identifies the tenant- Returns:
- the builder
-
cascade
Description copied from interface:DeleteProcessDefinitionsBuilder
All process instances of the process definition as well as history data is deleted.- Specified by:
cascade
in interfaceDeleteProcessDefinitionsBuilder
- Returns:
- the builder
-
skipCustomListeners
Description copied from interface:DeleteProcessDefinitionsBuilder
Only the built-inExecutionListener
s are notified with theExecutionListener.EVENTNAME_END
event. Is only applied in conjunction with the cascade method.- Specified by:
skipCustomListeners
in interfaceDeleteProcessDefinitionsBuilder
- Returns:
- the builder
-
skipIoMappings
Description copied from interface:DeleteProcessDefinitionsBuilder
Specifies whether input/output mappings for tasks should be invoked- Specified by:
skipIoMappings
in interfaceDeleteProcessDefinitionsBuilder
- Returns:
- the builder
-
delete
public void delete()Description copied from interface:DeleteProcessDefinitionsBuilder
Performs the deletion of process definitions.- Specified by:
delete
in interfaceDeleteProcessDefinitionsBuilder
-