Package org.flowable.cmmn.api.migration
Interface HistoricCaseInstanceMigrationBuilder
public interface HistoricCaseInstanceMigrationBuilder
-
Method Summary
Modifier and TypeMethodDescriptionorg.flowable.batch.api.Batch
batchMigrateHistoricCaseInstances
(String caseDefinitionId) Starts the case instance migration for all case instances of a given case definition identified by the case definition id.org.flowable.batch.api.Batch
batchMigrateHistoricCaseInstances
(String caseDefinitionKey, int caseDefinitionVersion, String caseDefinitionTenantId) Asynchronously starts the case instance migration for each case instances of a given case definition identified by the case definition key and version (optional tenantId).fromHistoricCaseInstanceMigrationDocument
(HistoricCaseInstanceMigrationDocument historicCaseInstanceMigrationDocument) Creates a HistoricCaseInstanceMigrationBuilder using the values of a HistoricCaseInstanceMigrationDocumentBuilds a HistoricCaseInstanceMigrationDocumentvoid
Starts the case instance migration for a case identified with the submitted caseInstanceIdvoid
migrateHistoricCaseInstances
(String caseDefinitionId) Asynchronously starts the case instance migration for each case instances of a given case definition identified by the case definition id.void
migrateHistoricCaseInstances
(String caseDefinitionKey, int caseDefinitionVersion, String caseDefinitionTenantId) Starts the case instance migration for all case instances of a given case definition identified by the case definition key and version (optional tenantId).migrateToCaseDefinition
(String caseDefinitionId) Specifies the case definition to migrate to, using the case definition idmigrateToCaseDefinition
(String caseDefinitionKey, int caseDefinitionVersion) Specifies the case definition to migrate to, identified by its key and versionmigrateToCaseDefinition
(String caseDefinitionKey, int caseDefinitionVersion, String caseDefinitionTenantId) Specifies the case definition to migrate to, identified by its key and version and tenantIdwithMigrateToCaseDefinitionTenantId
(String caseDefinitionTenantId) Specifies the tenantId of the case definition to migrate to
-
Method Details
-
fromHistoricCaseInstanceMigrationDocument
HistoricCaseInstanceMigrationBuilder fromHistoricCaseInstanceMigrationDocument(HistoricCaseInstanceMigrationDocument historicCaseInstanceMigrationDocument) Creates a HistoricCaseInstanceMigrationBuilder using the values of a HistoricCaseInstanceMigrationDocument- Parameters:
historicCaseInstanceMigrationDocument
- Migration document with pre-filled case information- Returns:
- Returns the builder
- See Also:
-
migrateToCaseDefinition
Specifies the case definition to migrate to, using the case definition id- Parameters:
caseDefinitionId
- ID of the case definition to migrate to- Returns:
- Returns the builder
- See Also:
-
migrateToCaseDefinition
HistoricCaseInstanceMigrationBuilder migrateToCaseDefinition(String caseDefinitionKey, int caseDefinitionVersion) Specifies the case definition to migrate to, identified by its key and version- Parameters:
caseDefinitionKey
- Key of the case definition to migrate tocaseDefinitionVersion
- Version of the case to migrate to- Returns:
- Returns the builder
- See Also:
-
migrateToCaseDefinition
HistoricCaseInstanceMigrationBuilder migrateToCaseDefinition(String caseDefinitionKey, int caseDefinitionVersion, String caseDefinitionTenantId) Specifies the case definition to migrate to, identified by its key and version and tenantId- Parameters:
caseDefinitionKey
- Key of the case definition to migrate tocaseDefinitionVersion
- Version of the case to migrate tocaseDefinitionTenantId
- Tenant id of the case definition, must be part of the same tenant- Returns:
- Returns the builder
- See Also:
-
withMigrateToCaseDefinitionTenantId
HistoricCaseInstanceMigrationBuilder withMigrateToCaseDefinitionTenantId(String caseDefinitionTenantId) Specifies the tenantId of the case definition to migrate to- Parameters:
caseDefinitionTenantId
- Tenant id of the case definition, must be part of the same tenant- Returns:
- Returns the builder
-
getHistoricCaseInstanceMigrationDocument
HistoricCaseInstanceMigrationDocument getHistoricCaseInstanceMigrationDocument()Builds a HistoricCaseInstanceMigrationDocument- Returns:
- Returns the builder
- See Also:
-
migrate
Starts the case instance migration for a case identified with the submitted caseInstanceId- Parameters:
caseInstanceId
-
-
migrateHistoricCaseInstances
Asynchronously starts the case instance migration for each case instances of a given case definition identified by the case definition id.- Parameters:
caseDefinitionId
-
-
batchMigrateHistoricCaseInstances
Starts the case instance migration for all case instances of a given case definition identified by the case definition id.- Parameters:
caseDefinitionId
-
-
migrateHistoricCaseInstances
void migrateHistoricCaseInstances(String caseDefinitionKey, int caseDefinitionVersion, String caseDefinitionTenantId) Starts the case instance migration for all case instances of a given case definition identified by the case definition key and version (optional tenantId).- Parameters:
caseDefinitionKey
-caseDefinitionVersion
-caseDefinitionTenantId
-
-
batchMigrateHistoricCaseInstances
org.flowable.batch.api.Batch batchMigrateHistoricCaseInstances(String caseDefinitionKey, int caseDefinitionVersion, String caseDefinitionTenantId) Asynchronously starts the case instance migration for each case instances of a given case definition identified by the case definition key and version (optional tenantId).- Parameters:
caseDefinitionKey
-caseDefinitionVersion
-caseDefinitionTenantId
-- Returns:
- an id of the created batch entity
-