docs: protected Long getProcessDefinedPriority(ProcessDefinitionImpl processDefinition, String propertyKey, ExecutionEntity execution, String errorMsgHead) {
      if (processDefinition != null) {
        ParameterValueProvider priorityProvider = (ParameterValueProvider) processDefinition.getProperty(propertyKey);
        if (priorityProvider != null) {
          return evaluateValueProvider(priorityProvider, execution, errorMsgHead);
        }
      }
      return null;    
    }