Search in sources :

Example 1 with MigratingCalledProcessInstance

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));
    }
}
Also used : ActivityImpl(org.camunda.bpm.engine.impl.pvm.process.ActivityImpl) ExecutionEntity(org.camunda.bpm.engine.impl.persistence.entity.ExecutionEntity) MigratingCalledProcessInstance(org.camunda.bpm.engine.impl.migration.instance.MigratingCalledProcessInstance)

Aggregations

MigratingCalledProcessInstance (org.camunda.bpm.engine.impl.migration.instance.MigratingCalledProcessInstance)1 ExecutionEntity (org.camunda.bpm.engine.impl.persistence.entity.ExecutionEntity)1 ActivityImpl (org.camunda.bpm.engine.impl.pvm.process.ActivityImpl)1