Class DeleteProcessDefinitionsBuilderImpl
- java.lang.Object
-
- org.camunda.bpm.engine.impl.repository.DeleteProcessDefinitionsBuilderImpl
-
- All Implemented Interfaces:
DeleteProcessDefinitionsBuilder,DeleteProcessDefinitionsSelectBuilder,DeleteProcessDefinitionsTenantBuilder
public class DeleteProcessDefinitionsBuilderImpl extends java.lang.Object implements DeleteProcessDefinitionsBuilder, DeleteProcessDefinitionsSelectBuilder, DeleteProcessDefinitionsTenantBuilder
Fluent builder implementation to delete process definitions.- Author:
- Tassilo Weidner
-
-
Field Summary
Fields Modifier and Type Field Description protected booleanskipIoMappings
-
Constructor Summary
Constructors Constructor Description DeleteProcessDefinitionsBuilderImpl(CommandExecutor commandExecutor)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DeleteProcessDefinitionsBuilderImplbyIds(java.lang.String... processDefinitionId)Selects process definitions with given process definition ids.DeleteProcessDefinitionsBuilderImplbyKey(java.lang.String processDefinitionKey)Selects process definitions with a given key.DeleteProcessDefinitionsBuilderImplcascade()All process instances of the process definition as well as history data is deleted.voiddelete()Performs the deletion of process definitions.DeleteProcessDefinitionsBuilderImplskipCustomListeners()Only the built-inExecutionListeners are notified with theExecutionListener.EVENTNAME_ENDevent.DeleteProcessDefinitionsBuilderImplskipIoMappings()Specifies whether input/output mappings for tasks should be invokedDeleteProcessDefinitionsBuilderImplwithoutTenantId()Process definitions which belong to no tenant will be removed.DeleteProcessDefinitionsBuilderImplwithTenantId(java.lang.String tenantId)Process definitions which belong to the given tenant id will be removed.
-
-
-
Constructor Detail
-
DeleteProcessDefinitionsBuilderImpl
public DeleteProcessDefinitionsBuilderImpl(CommandExecutor commandExecutor)
-
-
Method Detail
-
byIds
public DeleteProcessDefinitionsBuilderImpl byIds(java.lang.String... processDefinitionId)
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
public DeleteProcessDefinitionsBuilderImpl byKey(java.lang.String processDefinitionKey)
Description copied from interface:DeleteProcessDefinitionsSelectBuilderSelects process definitions with a given key.- Specified by:
byKeyin interfaceDeleteProcessDefinitionsSelectBuilder- Parameters:
processDefinitionKey- process definition key- Returns:
- the builder
-
withoutTenantId
public DeleteProcessDefinitionsBuilderImpl withoutTenantId()
Description copied from interface:DeleteProcessDefinitionsTenantBuilderProcess definitions which belong to no tenant will be removed.- Specified by:
withoutTenantIdin interfaceDeleteProcessDefinitionsTenantBuilder- Returns:
- the builder
-
withTenantId
public DeleteProcessDefinitionsBuilderImpl withTenantId(java.lang.String tenantId)
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
public DeleteProcessDefinitionsBuilderImpl 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
public DeleteProcessDefinitionsBuilderImpl 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
public DeleteProcessDefinitionsBuilderImpl 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
-
-