[rules-users] Upload Rules to BRMS at runtime

Michael Neale michael.neale at gmail.com
Thu Oct 2 21:06:22 EDT 2008


Hi all.

Yes in 5 - there is webdav and a (limited) rest API - the rest API
isn't really well known or used yet, but the WebDAV one is.

Later on, we will be adding rest + atom pub interface  - the atompub
means you can put metadata (eg categories, comments) remotely in the
BRMS, but at the moment, its just the files.

The other JCR like remote approaches sound interesting too. Slightly
more brittle with version changes then the above, but give more
control.




On Fri, Oct 3, 2008 at 5:57 AM, David Sinclair
<dsinclair at chariotsolutions.com> wrote:
> Hi Leo,
>
> I use the Drools API to interact with the JCR with I expose over RMI. I have
> the security on Jackrabbit, so I log into the JCR, not BRMS. But once the
> session is established I use the org.drools.repository.RulesRepository to
> work with BRMS artifcacts as opposed to JCR ones.
>
> hope that makes sense,
>
> dave
>
> On Thu, Oct 2, 2008 at 3:48 PM, Leonardo Figueiredo <leo.lists at gmail.com>
> wrote:
>>
>> Hi David,
>> You mean going around Drools Api and acessing the JCR directly?
>> I really wanted the BRMS to expose an interface to add things. That would
>> provide more security on upgrading versions without breaking functionality.
>> Regards,
>> Leo
>> On Thu, Oct 2, 2008 at 11:58 AM, David Sinclair
>> <dsinclair at chariotsolutions.com> wrote:
>>>
>>> Guys,
>>>
>>> I use the Drools API over RMI. Jackrbait provides an RMI implementation
>>> to manipulate the JCR, and the Drools RulesRepository class works with an
>>> open JCR session object. Really is a pieice of cake; that is if an RMI
>>> solution is ok with you. You can always go RMI over HTTP too.
>>>
>>> dave
>>>
>>> On Thu, Oct 2, 2008 at 2:43 AM, Asif Akram <asif.akram at imperial.ac.uk>
>>> wrote:
>>>>
>>>> Hi Leo,
>>>>
>>>>    Thanks for your reply. You are absolutely correct, I was talking
>>>> about API to upload rules, either using Restlet API or WebDav Client API or
>>>> Drools API. I have read the article mentioning the support for Restlet Web
>>>> Services and Webdav but haven't seen any such example yet. If only Drools
>>>> Guvnor supports such features, I am fine with Drools 5.0.
>>>>
>>>> Leo, it will be be nice of you if you can share your homemade customized
>>>> Servlet. Your sharing of ideas and experience will be appreciated.
>>>>
>>>> Cheers
>>>> Asif
>>>>
>>>>
>>>> Leonardo Figueiredo wrote:
>>>>>
>>>>> Hi,
>>>>>
>>>>> You mean using an api to add rules to the BRMS? If so i have the same
>>>>> problem. I am using an "homemade" build that have a custom Servlet that
>>>>> allows me to pass an DRL to be added to the BRMS.
>>>>>
>>>>> I am still searching for a better solution.
>>>>>
>>>>>
>>>>> Regards,
>>>>> Leo
>>>>>
>>>>>
>>>>>
>>>>> On Wed, Oct 1, 2008 at 7:00 AM, Asif Akram <asif.akram at imperial.ac.uk
>>>>> <mailto:asif.akram at imperial.ac.uk>> wrote:
>>>>>
>>>>>    Hi,
>>>>>
>>>>>      I was wondering if it is possible to create and upload rules at
>>>>>    runtime to BRMS to be accessed by other users. I have only seen
>>>>>    the examples where existing packages/rules are loaded from the
>>>>>    BRMS. Any help and suggestion will be appreciated.
>>>>>
>>>>>    Cheers
>>>>>    Asif
>>>>>
>>>>>
>>>>>
>>>>> ------------------------------------------------------------------------
>>>>>
>>>>> _______________________________________________
>>>>> rules-users mailing list
>>>>> rules-users at lists.jboss.org
>>>>> https://lists.jboss.org/mailman/listinfo/rules-users
>>>>>
>>>>
>>>>
>>>> --
>>>> This message has been scanned for viruses and
>>>> dangerous content by WATEEN TELECOM, and is
>>>> believed to be clean.
>>>>
>>>> _______________________________________________
>>>> rules-users mailing list
>>>> rules-users at lists.jboss.org
>>>> https://lists.jboss.org/mailman/listinfo/rules-users
>>>
>>>
>>> _______________________________________________
>>> rules-users mailing list
>>> rules-users at lists.jboss.org
>>> https://lists.jboss.org/mailman/listinfo/rules-users
>>>
>>
>>
>> _______________________________________________
>> rules-users mailing list
>> rules-users at lists.jboss.org
>> https://lists.jboss.org/mailman/listinfo/rules-users
>>
>
>
> _______________________________________________
> rules-users mailing list
> rules-users at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users
>
>



-- 
Michael D Neale
home: www.michaelneale.net
blog: michaelneale.blogspot.com



More information about the rules-users mailing list