use of org.camunda.bpm.engine.impl.migration.instance.MigratingExternalTaskInstance in project camunda-bpm-platform by camunda.
the class ExternalTaskActivityBehavior method onParseMigratingInstance.
@Override
public void onParseMigratingInstance(MigratingInstanceParseContext parseContext, MigratingActivityInstance migratingInstance) {
ExecutionEntity execution = migratingInstance.resolveRepresentativeExecution();
for (ExternalTaskEntity task : execution.getExternalTasks()) {
MigratingExternalTaskInstance migratingTask = new MigratingExternalTaskInstance(task, migratingInstance);
migratingInstance.addMigratingDependentInstance(migratingTask);
parseContext.consume(task);
parseContext.submit(migratingTask);
}
}
use of org.camunda.bpm.engine.impl.migration.instance.MigratingExternalTaskInstance in project camunda-bpm-platform by camunda.
the class IncidentInstanceHandler method handleExternalTaskIncident.
protected void handleExternalTaskIncident(MigratingInstanceParseContext parseContext, IncidentEntity incident) {
MigratingExternalTaskInstance owningInstance = parseContext.getMigratingExternalTaskInstanceById(incident.getConfiguration());
if (owningInstance != null) {
parseContext.consume(incident);
MigratingIncident migratingIncident = new MigratingIncident(incident, owningInstance.getTargetScope());
owningInstance.addMigratingDependentInstance(migratingIncident);
}
}
Aggregations