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 Modifier and Type Field Description protected boolean
skipIoMappings
-
Constructor Summary
Constructors Constructor Description DeleteProcessDefinitionsBuilderImpl(CommandExecutor commandExecutor)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DeleteProcessDefinitionsBuilderImpl
byIds(String... processDefinitionId)
Selects process definitions with given process definition ids.DeleteProcessDefinitionsBuilderImpl
byKey(String processDefinitionKey)
Selects process definitions with a given key.DeleteProcessDefinitionsBuilderImpl
cascade()
All process instances of the process definition as well as history data is deleted.void
delete()
Performs the deletion of process definitions.DeleteProcessDefinitionsBuilderImpl
skipCustomListeners()
Only the built-inExecutionListener
s are notified with theExecutionListener.EVENTNAME_END
event.DeleteProcessDefinitionsBuilderImpl
skipIoMappings()
Specifies whether input/output mappings for tasks should be invokedDeleteProcessDefinitionsBuilderImpl
withoutTenantId()
Process definitions which belong to no tenant will be removed.DeleteProcessDefinitionsBuilderImpl
withTenantId(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(String... processDefinitionId)
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
public DeleteProcessDefinitionsBuilderImpl byKey(String processDefinitionKey)
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
public DeleteProcessDefinitionsBuilderImpl 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
public DeleteProcessDefinitionsBuilderImpl withTenantId(String tenantId)
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
public DeleteProcessDefinitionsBuilderImpl 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
public DeleteProcessDefinitionsBuilderImpl 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
public DeleteProcessDefinitionsBuilderImpl 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
-
-