Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rule Node Development Guide - TbContext.getPeContext() #774

Open
1 of 3 tasks
jernejcvek opened this issue Dec 13, 2021 · 0 comments
Open
1 of 3 tasks

Rule Node Development Guide - TbContext.getPeContext() #774

jernejcvek opened this issue Dec 13, 2021 · 0 comments

Comments

@jernejcvek
Copy link

This is a...

  • Feature Request
  • Bug Report
  • Enhancement

Problem:
In the Rule Node Development Guide inside subchapter Using ThingsBoard services is written:

ThingsBoard PE users may get access to additional services using TbContext.getPeContext() method.

However, if property <thingsboard.version></thingsboard.version> inside custom rule engine node's pom.xml is not *PE, the PE context is (obviously) not available.

I had a problem when using ThingsBoard 3.2.1PE, which was not listed in the repository, so I had to type the version as <thingsboard.version>3.2.1</thingsboard.version>, which didn't contain the TbContext.getPeContext() method.

tb-pe-v321
artifacts-tb

I've changed to the next available version (<thingsboard.version>3.2.2PE</thingsboard.version>), and it worked.

I know this problem is not related to documentation (but is rather a problem with the repo). However, it may save developers' time if they are alerted.

Proposed Solution:
Inside docs explicitly write that developers must use *PE version if they want to use TbContext.getPeContext() method. In case of trouble (ex., if no PE edition is found for a specified version in the repo), they may change it to an older/newer *PE version.

Page to Update:
https://thingsboard.io/docs/pe/user-guide/contribution/rule-node-development/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant