I am thinking of implementing "Business Rules Engine" (BRE) in mojoportal..

This is an open forum for any mojoPortal topics that don't fall into the other categories.

This thread is closed to new posts. You must sign in to post in the forums.
8/30/2010 1:52:05 PM
Gravatar
Total Posts 13

I am thinking of implementing "Business Rules Engine" (BRE) in mojoportal..

Any guidance or tips to get started in the right direction will be appreciated in BRE implementation.

I want each feature to have BRE so that mojoportal is further personalized in a way. For example, lets say I want a HTMLContent in a page but this HTMLContent should only display for Employees who reside in Texas. Therefore, I will create a BRE entry such that Employee_State = 'Texas'. And now, I want to associate this BRE with HTMLContent feature. Can you point me in right direction to implement such.

 

Thank you,

-bobsov

8/31/2010 8:20:28 AM
Gravatar
Total Posts 13

Re: I am thinking of implementing "Business Rules Engine" (BRE) in mojoportal..

It seems like it can be done but only with modification in default.aspx.cs file and mojobasepage.cs file. This is like new feature that is part of module where based on a rule, module will be displayed. I am suggesting a new powerful feature called - "Personalization". Just like base page checks whether user is in eligible roles or not to view the module, we have to extended that to see if any BRE or Personalization rule is imposed in the instance of the module. If there is personalization id associated with the instance of the module, that personalization_id is ran in the database and true or false value is passed. if true, then show the module and vice versa.

Joe, if it makes sense to you, you can consider this as a feature in mojoportal core. I will send out details of my change later.

Thanks,

-bobsov

8/31/2010 8:26:54 AM
Gravatar
Total Posts 18439

Re: I am thinking of implementing "Business Rules Engine" (BRE) in mojoportal..

Hi bobsov

I understand that this is a feature you would like. But from my point of view it will add a lot of complexity and cause support issues.

It is not something I want to introduce in mojoPortal at this time.

Seems to me that I needed to show custom content based on custom rules I would do that all internally to my custom module.

Best,

Joe

8/31/2010 8:44:19 AM
Gravatar
Total Posts 13

Re: I am thinking of implementing "Business Rules Engine" (BRE) in mojoportal..

Yeah I totally agree with you. I don't know whether keeping this internally to custom module is possible since visibile/invisible of a module is controlled at default.aspx.cs and mojobasepage.cs files. Thats why I was trying to pick up your brain to see if it can be easily done in internally at custom module level.

 

Thanks for quick response Joe.

-bobsov

8/31/2010 9:27:38 AM
Gravatar
Total Posts 18439

Re: I am thinking of implementing "Business Rules Engine" (BRE) in mojoportal..

Showing and hiding of content can be done internally to a module but you cannot control other modules from your custom module so you should not think in terms of showing and hiding other modules. Instead your custom module needs to be able to show its own content internally based on your rules, it should not depend on the html module or any other, everything you need should be internal to your custom feature. html feature is not complicated, one could easily create a similar feature with its own table[s] and show and hide content logic of your own.

8/31/2010 9:56:42 AM
Gravatar
Total Posts 13

Re: I am thinking of implementing "Business Rules Engine" (BRE) in mojoportal..

I 100% agree with you. I don't know why I kept looking at HTMLContent, but I think I need to write similar feature and have that personalization feature added to it. That will be much simpler. The only thing is every feature that may be available out there will need to be done similarly. That inlcudes my plans to use form wizard pro and event calendar pro later. But I will deal with it later when it comes.

 

Thanks,

-bobsov

8/31/2010 10:08:50 AM
Gravatar
Total Posts 18439

Re: I am thinking of implementing "Business Rules Engine" (BRE) in mojoportal..

there is no way it will work with other features, you can't customize Form Wizard or Event Calendar Pro, but it seems strange to have a need to use it with other features. showing different event calendars and different forms based on some custom rules other than roles seems like a strange corner case need that neither mojoportal nor any features were designed for.

it is a complex enough system enforcing page level and module level permissions by roles, trying to do it based on other things is not something I want to introduce in mojoportal and is not likely to be possible to do yourself without forking core code in ways I would not.

not only complexity would be added but also it would add database hits to each request to lookup the business rules and this would hurt performance compared to roles which can be tested for membership of the user without any extra database hits because roles are encrypted in a cookie.

You must sign in to post in the forums. This thread is closed to new posts.