Skip to Content

How to create a Notification via a business rule in HCP

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.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

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

    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

    Add comment
    10|10000 characters needed characters exceeded

    • Archana Shukla 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!

  • Sep 17 at 07:20 AM

    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

    Add comment
    10|10000 characters needed characters exceeded