Thursday 1 December 2016

Enable the HANA Rules Framework on your HANA, express edition

With SDI in the bag, I was wondering whether I could enable the HANA Rules Framework (HRF) on my HANA, express edition in a similar way.

As it turned out, this was also absolutely possible and if fact quite straight forward as well:
  1. increase the virtual machine memory to 12GB
  2. Create a tenant database
  3. Enable HTTP and HTTPS access to the tenant database
  4. Import the HRF delivery unit
  5. Set Up a Technical User
  6. Configure the HRF
  7. Deploying the HRF Modelling Tools
  8. Create a Vocabulary
  9. Configure the Standalone Web Application
  10. Create a Rule
  11. Create and test a Rule Service
After increasing the memory of my freshly upgraded HANA, express edition virtual machine, I grant an additional role to the SYSTEM user of my SYSTEMDB to enable creating a tenant database from the HANA Cockpit:

Enable the HANA Rules Framework on your HANA, express edition

With this I create a new tenant database. This time it only requires an indexserver, nothing else:

Enable the HANA Rules Framework on your HANA, express edition

This can take a while to be created and started:

Enable the HANA Rules Framework on your HANA, express edition

Once created and started, in the HRF tenant database, I add a role to the SYSTEM there to enable importing the HRF Delivery Unit from the HANA Cockpit as well:

Enable the HANA Rules Framework on your HANA, express edition

Also, I have to activate HTTP and HTTPS access to the tenant database:

Enable the HANA Rules Framework on your HANA, express edition

The architecture of my HANA, express edition now looks as follows with the Web Dispatcher deciding on the vhost property whether to send a request to the SYSTEMDB or my HRF tenant database:

Enable the HANA Rules Framework on your HANA, express edition
I can see the respective automatic configuration in the Web Dispatcher Trace:

Enable the HANA Rules Framework on your HANA, express edition

So this time, rather than importing the HRF delivery unit from Eclipse, I can use the HANA Cockpit:

Enable the HANA Rules Framework on your HANA, express edition

In preparation for configuring the HRF I set up the required technical user:

Enable the HANA Rules Framework on your HANA, express edition

The HRF configuration itself is an API call that I send from Postman:

Enable the HANA Rules Framework on your HANA, express edition

In preparation for building my Vocabulary I deploy the HRF Modelling Tools into Eclipse:

Enable the HANA Rules Framework on your HANA, express edition

With this I can create a package with my Vocabulary:

Enable the HANA Rules Framework on your HANA, express edition

In preparation for configuring the Standalone Web Application and creating my first Rule I grant the required HRF roles to my HRF tenant database SYSTEM user:

Enable the HANA Rules Framework on your HANA, express edition
This allows me to configure the Standalone Web Application:

Enable the HANA Rules Framework on your HANA, express edition

Now I am all set to follow my previous HRF blog and build my first Rule:

Enable the HANA Rules Framework on your HANA, express edition

And respective Rule Service that returns the expected results when tested:

Enable the HANA Rules Framework on your HANA, express edition

Source: go.sap.com

No comments:

Post a Comment