cancel
Showing results for 
Search instead for 
Did you mean: 

How to create a Notification via a business rule in HCP

sabarna17
Contributor
0 Kudos

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.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

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/65055489297046f3808757aa7ee...

sabarna17
Contributor
0 Kudos

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


Archana
Product and Topic Expert
Product and Topic Expert
0 Kudos

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!

Answers (1)

Answers (1)

0 Kudos

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