public class CaseInstanceHelperImpl extends Object implements CaseInstanceHelper
| Modifier and Type | Field and Description |
|---|---|
protected CmmnEngineConfiguration |
cmmnEngineConfiguration |
| Constructor and Description |
|---|
CaseInstanceHelperImpl(CmmnEngineConfiguration cmmnEngineConfiguration) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
applyCaseInstanceBuilder(CmmnEngineConfiguration cmmnEngineConfiguration,
CaseInstanceBuilder caseInstanceBuilder,
org.flowable.cmmn.model.Case caseModel,
CaseInstanceEntity caseInstanceEntity,
CaseDefinition caseDefinition,
StartCaseInstanceBeforeContext instanceBeforeContext,
CommandContext commandContext) |
void |
callCaseInstanceStateChangeCallbacks(CallbackData callbackData) |
protected CaseInstanceEntity |
copyHistoricCaseInstanceToRuntime(CommandContext commandContext,
CaseDefinition caseDefinition,
HistoricCaseInstance caseInstance)
This is the first part of reactivating a case instance from the history.
|
CaseInstanceEntity |
copyHistoricCaseInstanceToRuntime(HistoricCaseInstance caseInstance)
Creates a new case instance within the runtime based on the given historic and ended case instance to be reactivated later on.
|
protected void |
createAsyncInitJob(CaseInstanceEntity caseInstance,
CaseDefinition caseDefinition,
org.flowable.cmmn.model.Case caseModel,
JobService jobService,
CommandContext commandContext) |
protected CaseInstanceEntity |
createCaseInstanceEntityFromDefinition(CommandContext commandContext,
CaseDefinition caseDefinition,
StartCaseInstanceBeforeContext instanceBeforeContext) |
protected CaseInstanceEntity |
createCaseInstanceEntityFromHistoricCaseInstance(CommandContext commandContext,
HistoricCaseInstance historicCaseInstance)
Creates a new runtime case instance based on the given historic one by copying all of its data, but setting its state to active again.
|
protected List<PlanItemInstanceEntity> |
createCasePlanItemsFromHistoricCaseInstance(HistoricCaseInstance historicCaseInstance,
CaseInstanceEntity newCaseInstance)
Creates new plan item instances for the runtime according the historic ones, even though they are all completed, ended or terminated.
|
protected Map<String,VariableInstanceEntity> |
createCaseVariablesFromHistoricCaseInstance(HistoricCaseInstance historicCaseInstance)
Creates new variables in the runtime according the history of the provided case instance.
|
protected CaseDefinition |
getCaseDefinition(CaseInstanceBuilder caseInstanceBuilder,
CommandContext commandContext) |
protected org.flowable.cmmn.model.Case |
getCaseModel(CaseDefinition caseDefinition,
org.flowable.cmmn.model.CmmnModel cmmnModel) |
protected org.flowable.cmmn.model.CmmnModel |
getCmmnModel(CommandContext commandContext,
CaseDefinition caseDefinition) |
protected CaseInstanceEntity |
initializeCaseInstanceEntity(CommandContext commandContext,
CaseDefinition caseDefinition,
org.flowable.cmmn.model.CmmnModel cmmnModel,
org.flowable.cmmn.model.Case caseModel,
CaseInstanceBuilder caseInstanceBuilder) |
protected boolean |
isFormFieldValidationEnabled(CmmnEngineConfiguration cmmnEngineConfiguration,
org.flowable.cmmn.model.Stage stage) |
protected FormInfo |
resolveFormInfo(org.flowable.cmmn.model.Stage planModel,
CaseDefinition caseDefinition,
String tenantId,
FormRepositoryService formRepositoryService,
CmmnEngineConfiguration cmmnEngineConfiguration) |
CaseInstanceEntity |
startCaseInstance(CaseInstanceBuilder caseInstanceBuilder) |
protected CaseInstanceEntity |
startCaseInstance(CommandContext commandContext,
CaseDefinition caseDefinition,
CaseInstanceBuilder caseInstanceBuilder) |
CaseInstanceEntity |
startCaseInstanceAsync(CaseInstanceBuilder caseInstanceBuilder) |
protected CaseInstanceEntity |
startCaseInstanceAsync(CommandContext commandContext,
CaseDefinition caseDefinition,
CaseInstanceBuilder caseInstanceBuilder) |
protected CmmnEngineConfiguration cmmnEngineConfiguration
public CaseInstanceHelperImpl(CmmnEngineConfiguration cmmnEngineConfiguration)
public CaseInstanceEntity startCaseInstance(CaseInstanceBuilder caseInstanceBuilder)
startCaseInstance in interface CaseInstanceHelperpublic CaseInstanceEntity startCaseInstanceAsync(CaseInstanceBuilder caseInstanceBuilder)
startCaseInstanceAsync in interface CaseInstanceHelperpublic CaseInstanceEntity copyHistoricCaseInstanceToRuntime(HistoricCaseInstance caseInstance)
CaseInstanceHelpercopyHistoricCaseInstanceToRuntime in interface CaseInstanceHelpercaseInstance - the historic case instance to copy back to the runtimeprotected CaseDefinition getCaseDefinition(CaseInstanceBuilder caseInstanceBuilder, CommandContext commandContext)
protected CaseInstanceEntity startCaseInstance(CommandContext commandContext, CaseDefinition caseDefinition, CaseInstanceBuilder caseInstanceBuilder)
protected CaseInstanceEntity startCaseInstanceAsync(CommandContext commandContext, CaseDefinition caseDefinition, CaseInstanceBuilder caseInstanceBuilder)
protected CaseInstanceEntity copyHistoricCaseInstanceToRuntime(CommandContext commandContext, CaseDefinition caseDefinition, HistoricCaseInstance caseInstance)
commandContext - the command context to execute withincaseDefinition - the case definition to get the case model fromcaseInstance - the historic case instance to copy back to the runtimeprotected void createAsyncInitJob(CaseInstanceEntity caseInstance, CaseDefinition caseDefinition, org.flowable.cmmn.model.Case caseModel, JobService jobService, CommandContext commandContext)
protected org.flowable.cmmn.model.CmmnModel getCmmnModel(CommandContext commandContext, CaseDefinition caseDefinition)
protected org.flowable.cmmn.model.Case getCaseModel(CaseDefinition caseDefinition, org.flowable.cmmn.model.CmmnModel cmmnModel)
protected CaseInstanceEntity initializeCaseInstanceEntity(CommandContext commandContext, CaseDefinition caseDefinition, org.flowable.cmmn.model.CmmnModel cmmnModel, org.flowable.cmmn.model.Case caseModel, CaseInstanceBuilder caseInstanceBuilder)
protected void applyCaseInstanceBuilder(CmmnEngineConfiguration cmmnEngineConfiguration, CaseInstanceBuilder caseInstanceBuilder, org.flowable.cmmn.model.Case caseModel, CaseInstanceEntity caseInstanceEntity, CaseDefinition caseDefinition, StartCaseInstanceBeforeContext instanceBeforeContext, CommandContext commandContext)
protected FormInfo resolveFormInfo(org.flowable.cmmn.model.Stage planModel, CaseDefinition caseDefinition, String tenantId, FormRepositoryService formRepositoryService, CmmnEngineConfiguration cmmnEngineConfiguration)
protected boolean isFormFieldValidationEnabled(CmmnEngineConfiguration cmmnEngineConfiguration, org.flowable.cmmn.model.Stage stage)
protected CaseInstanceEntity createCaseInstanceEntityFromDefinition(CommandContext commandContext, CaseDefinition caseDefinition, StartCaseInstanceBeforeContext instanceBeforeContext)
protected CaseInstanceEntity createCaseInstanceEntityFromHistoricCaseInstance(CommandContext commandContext, HistoricCaseInstance historicCaseInstance)
commandContext - the command context to execute withinhistoricCaseInstance - the historic case instance to be copied back to the runtimeprotected List<PlanItemInstanceEntity> createCasePlanItemsFromHistoricCaseInstance(HistoricCaseInstance historicCaseInstance, CaseInstanceEntity newCaseInstance)
historicCaseInstance - the historic case instance to copy the plan items fromnewCaseInstance - the newly created runtime copy of the historic case instance where the new plan items are attached toprotected Map<String,VariableInstanceEntity> createCaseVariablesFromHistoricCaseInstance(HistoricCaseInstance historicCaseInstance)
historicCaseInstance - the historic case instance to copy its variables back to the runtimepublic void callCaseInstanceStateChangeCallbacks(CallbackData callbackData)
callCaseInstanceStateChangeCallbacks in interface CaseInstanceHelperCopyright © 2021 Flowable. All rights reserved.