Search in sources :

Example 1 with MigratingCalledCaseInstance

use of org.camunda.bpm.engine.impl.migration.instance.MigratingCalledCaseInstance in project camunda-bpm-platform by camunda.

the class CaseCallActivityBehavior method onParseMigratingInstance.

@Override
public void onParseMigratingInstance(MigratingInstanceParseContext parseContext, MigratingActivityInstance migratingInstance) {
    ActivityImpl callActivity = (ActivityImpl) migratingInstance.getSourceScope();
    // must be maintained throughout migration
    if (!callActivity.isScope()) {
        ExecutionEntity callActivityExecution = migratingInstance.resolveRepresentativeExecution();
        CaseExecutionEntity calledCaseInstance = callActivityExecution.getSubCaseInstance();
        migratingInstance.addMigratingDependentInstance(new MigratingCalledCaseInstance(calledCaseInstance));
    }
}
Also used : CaseExecutionEntity(org.camunda.bpm.engine.impl.cmmn.entity.runtime.CaseExecutionEntity) ActivityImpl(org.camunda.bpm.engine.impl.pvm.process.ActivityImpl) CaseExecutionEntity(org.camunda.bpm.engine.impl.cmmn.entity.runtime.CaseExecutionEntity) ExecutionEntity(org.camunda.bpm.engine.impl.persistence.entity.ExecutionEntity) MigratingCalledCaseInstance(org.camunda.bpm.engine.impl.migration.instance.MigratingCalledCaseInstance)

Aggregations

CaseExecutionEntity (org.camunda.bpm.engine.impl.cmmn.entity.runtime.CaseExecutionEntity)1 MigratingCalledCaseInstance (org.camunda.bpm.engine.impl.migration.instance.MigratingCalledCaseInstance)1 ExecutionEntity (org.camunda.bpm.engine.impl.persistence.entity.ExecutionEntity)1 ActivityImpl (org.camunda.bpm.engine.impl.pvm.process.ActivityImpl)1