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));
}
}
Aggregations