use of org.camunda.bpm.engine.impl.migration.instance.MigratingCalledProcessInstance in project camunda-bpm-platform by camunda.
the class CallActivityBehavior 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();
ExecutionEntity calledProcessInstance = callActivityExecution.getSubProcessInstance();
migratingInstance.addMigratingDependentInstance(new MigratingCalledProcessInstance(calledProcessInstance));
}
}
Aggregations