Skip to Content
0

How to create a Notification via a business rule in HCP

May 11 at 11:31 AM

95

avatar image

Hi Expert,

I have successfully established connection between HCP and my IOT device. A table is being updated with temperature data in HCP. I am using NEO Platform for my use. Now I want to set a business rule when the temperature exceeds a certain value, a Notification / Service Order in SAP-ERP has to be created. For this can you provide a solution to achieve it.

Thanks and Regards,

Sabarna.

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

2 Answers

avatar image
Former Member
May 14 at 10:42 AM
0

Hi Sabarna,

the IoT Service does not provide built-in functionality to trigger BRM rules. For such an integration scenario you need to built your own component that uses BRM REST API to trigger events. The component can either poll for new messages via JDBC or expose a REST API that can be called by the IoT Service to notify the component about new messages. For this use case to work you can use the HTTP processing service[1] to forward messages to your component.

Best,

Thomas

[1] https://help.sap.com/viewer/7436c3125dd5491f939689f18954b1e9/Cloud/en-US/65055489297046f3808757aa7eeb779d.html

Show 2 Share
10 |10000 characters needed characters left characters exceeded

Hi Thomas,

Thanks for the reply but my scenario is related to create a QM02 notification. The case is - I have a table with two fields: Timestamp, Temperature. Say - when the Temperature exceeds its value than 50 then it should trigger a Proxy Interface in SAP-ERP. To implement this I was trying to use Business Rules in HCP and use other APIs related to it. Please check my other query related to it -

Drop down values not Appearing while creating projects for Business rules in HANA CLOUD


0
Sabarna Chatterjee

You can use Business Rules in combination with Cloud Integration to achieve this. You can write rules on Temperature and Timestamp, such that it returns a text/boolean message like 0, 1 or 'Threshold Exceeds' etc. Your read the response from the business rules in your integration flow, and then take any action you want using the options provided in cloud integration. Hope that helps!

0
Ashutosh Shrivastava 2 days ago
0

Hi Sabarna,

Could you please explain in bit detail how you are able to see sensors data in IoT tables. What is the connection types. I am using Raspberry pi device to consume data in to HCP-Iot tables using MQTT but able to make connection.

Thanks,

Ashutosh

Share
10 |10000 characters needed characters left characters exceeded