use of org.camunda.bpm.engine.impl.pvm.process.ScopeImpl in project camunda-bpm-platform by camunda.
the class ExecutionEntity method initializeTimerDeclarations.
@Override
public void initializeTimerDeclarations() {
LOG.initializeTimerDeclaration(this);
ScopeImpl scope = getScopeActivity();
Collection<TimerDeclarationImpl> timerDeclarations = TimerDeclarationImpl.getDeclarationsForScope(scope).values();
for (TimerDeclarationImpl timerDeclaration : timerDeclarations) {
timerDeclaration.createTimerInstance(this);
}
}
use of org.camunda.bpm.engine.impl.pvm.process.ScopeImpl in project camunda-bpm-platform by camunda.
the class ActivityCancellationCmd method collectParentScopeIdsForActivity.
protected Set<String> collectParentScopeIdsForActivity(ProcessDefinitionImpl processDefinition, String activityId) {
Set<String> parentScopeIds = new HashSet<String>();
ScopeImpl scope = processDefinition.findActivity(activityId);
while (scope != null) {
parentScopeIds.add(scope.getId());
scope = scope.getFlowScope();
}
return parentScopeIds;
}
Aggregations