Search in sources :

Example 1 with JobDeclaration

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);
}
Also used : JobDeclaration(org.camunda.bpm.engine.impl.jobexecutor.JobDeclaration) ProcessDefinitionEntity(org.camunda.bpm.engine.impl.persistence.entity.ProcessDefinitionEntity)

Aggregations

JobDeclaration (org.camunda.bpm.engine.impl.jobexecutor.JobDeclaration)1 ProcessDefinitionEntity (org.camunda.bpm.engine.impl.persistence.entity.ProcessDefinitionEntity)1