use of org.camunda.bpm.engine.impl.jobexecutor.JobDeclaration in project camunda-bpm-platform by camunda.
the class BpmnDeployer method definitionAddedToDeploymentCache.
@Override
protected void definitionAddedToDeploymentCache(DeploymentEntity deployment, ProcessDefinitionEntity definition, Properties properties) {
List<JobDeclaration<?, ?>> declarations = properties.get(JOB_DECLARATIONS_PROPERTY).get(definition.getKey());
updateJobDeclarations(declarations, definition, deployment.isNew());
ProcessDefinitionEntity latestDefinition = findLatestDefinitionByKeyAndTenantId(definition.getKey(), definition.getTenantId());
if (deployment.isNew()) {
adjustStartEventSubscriptions(definition, latestDefinition);
}
// add "authorizations"
addAuthorizations(definition);
}
Aggregations