[rules-dev] Issue when trying to fetch packages (source) and fireRules (mortages)
Charles Moulliard
ch007m at gmail.com
Tue Apr 23 02:46:02 EDT 2013
Succeed to create a KieBuilder with the following change :
KieFileSystem kfs = kieServices.newKieFileSystem()
.write("src/main/resources/temp.drl", packages)
.writeKModuleXML(createKieProjectWithPackages(kieServices).toXML());
As you see adding "src/main/resources/temp.drl" is required otherwise
(but I don't know why for the moment) the string is not parsed by
Drools parse and no packages are added
Remark : Could it be possible that we have a bung as normally we
should be able to create a KieFileSystem without passing location of
an non existent drl file "src/main/resources/temp.drl" ?
On Tue, Apr 23, 2013 at 8:22 AM, Jervis Liu <jliu at redhat.com> wrote:
> On 2013/4/19 19:40, Charles Moulliard wrote:
>
> Hi,
>
> I try to fetch using REST from Guvnor the mortgages packages, drl, .. .
> With the String retrieved, I would like to recreate a Knowledge repository
> to insert a fact in a session and fire Drools rules
>
> Here is the code :
>
> https://gist.github.com/cmoulliard/4e9b6dc3ff384715ff9a
>
> Hi, your code looks alright. What content did you get back from URL
> http://127.0.0.1:8080/guvnor.war/rest/packages/mortgages/source ? and did
> you see any errors on servers log?
>
> Cheers,
> Jervis
>
>
> Apparently no packages have been created from source / string retrieved.
> What is wrong ?
>
> Regards,
>
> --
> Charles Moulliard
> Apache Committer / Sr. Enterprise Architect (RedHat)
> Twitter : @cmoulliard | Blog : http://cmoulliard.blogspot.com
>
>
>
> _______________________________________________
> rules-dev mailing listrules-dev at lists.jboss.orghttps://lists.jboss.org/mailman/listinfo/rules-dev
>
>
>
> _______________________________________________
> rules-dev mailing list
> rules-dev at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-dev/attachments/20130423/fb99224a/attachment.html
More information about the rules-dev
mailing list