[rules-users] Adding .package files to a KnowledgePackage

Wolfgang Laun wolfgang.laun at gmail.com
Thu Sep 13 02:05:09 EDT 2012


You have serialized a Collection of KnowledgePackage, so I trust you
know how to do the reverse. Then, you simple call
   kBase.addKnowledgePackages( packages )

-W



On 12/09/2012, Paul Ryan <pryan at infotrustgroup.com> wrote:
> I guess I should also mention that by default we are using the expert API's
> so primarily we're creating the knowledge packages using a
> KnowledgeBuilder.
>
> Again thanks for any light you can shed on getting files with the extension
> .package loaded into the knowledge base.
>
> -- Paul Ryan
>
> On Sep 11, 2012, at 4:59 PM, Paul Ryan <pryan at infotrustgroup.com> wrote:
>
>> So drools will respect files with a .package extension as a place for
>> declared types, functions, etc. when used with these in the class path.
>> How can a import these into a KnowledgePackage/KnowledgeBase so they can
>> get compiled along with stuff when this is not in the class path at
>> startup? My use case is such that these are not in the same space and
>> can't be loaded at startup time in most cases.
>>
>> Any help is greatly appreciated,
>>
>> -- Paul Ryan
>>
>>
>> _______________________________________________
>> 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
>


More information about the rules-users mailing list