Mark

I have created an implementation that now generates a changeset and am then
adding this to the  knowledge resources in PackageBuilder using the
following line of code.

addKnowledgeResource(changeSetResource, ResourceType.CHANGE_SET, null);

This uses the changeset resources (as if I remove the rules files in it the
application dosen't run), but does not add them to the resources for
notification. How would you suggest I register these resources? I thought
it would have read them during the processChangeSet - but it appears they
are not added?

Pete


"Mark Proctor [via Drools - Java Rules Engine]" <ml-node
+[hidden email]> wrote on 15/02/2010 12:02:21 p.m.:

> [image removed]
>
> Re: Drools VSM Module - Build Issue
>
> Mark Proctor [via Drools - Java Rules Engine]
>
> to:
>
> petersellars
>
> 15/02/2010 12:02 p.m.
>
> On 14/02/2010 22:47, Michael Neale wrote:
> Having it generate a change set pointing to each drl file sounds
reasonable.

> I was thinking of having a resource type that allowed inline code,
> which would  help with code generation stuff.
>
> The hard bit is making sure all the url indexing and index mapping
> for re-loading works.
>
> Another approach is that the tohu tool combines it all into one DRL
> (but that may be too inconvenient or un-natural for you?).
>
> On Fri, Feb 12, 2010 at 7:25 AM, petersellars <[hidden email]> wrote:
> Mark,
>
> Thanks for your feedback and review of the proposed solution and raising
of
> the issues. Much appreciated.
>
> The problem I am trying to address is a specific one which I then tried
to
> make generic enough to fit in with the Drools core. My specific issue is
> that the system I am working with has a custom spreadsheet compiler that
> generates a number of rule files. I am only interested in regenerating
the
> rule files when the spreadsheet gets changed. I assume it would be best
to

> update the custom spreadsheet compilation to return a changeset once the
> rule files have been generated - thus allowing me to add them as you
> propose.
>
> I assume I can achieve this with your proposed updates to the solution I
> have been working on. It is my intention to provide code that not only
> functions as expected but fits in with the Drools team architecture
> direction. I shall update in accordance with your proposal if you think
> this will still fit my solution and provide a generic solution for user
> resources.
>
> Peter Sellars
>
>
> "Mark Proctor [via Drools - Java Rules Engine]" <ml-node
> +[hidden email]> wrote on 11/02/2010 05:00:34 p.m.:
>
> > [image removed]
> >
> > Re: Drools VSM Module - Build Issue
> >
> > Mark Proctor [via Drools - Java Rules Engine]
> >
> > to:
> >
> > petersellars
> >
> > 11/02/2010 05:00 p.m.
> >
> > Last hudson was fiinally blue:
> > https://hudson.jboss.org/hudson/job/drools/
> >
> > Btw I did reveiw your initial proposal, there where some things I think

> > will need to be addressed. Particularly the idea of the Resource
> > returning multiple resources, it seems a little dirty. I think instead
> > i'd prefer that the Resource returns a changeset that lists those
> > multiple resources. We should probably add a ResourceConfiguration that

> > allows the handler to be provided for handling the resources. Anything
> > that deals with a Resources mapping to multiple Resources needs to fit
> > in with the definition's mapping, which is url based, for the
> > KnowledgeAgent, and will need full test coverage that it doens't break
> > anything in the KnowlegeAgent definitions to url mapping and
rebuilding.

> >
> > Mark
> >
> >
> > On 11/02/2010 03:09, Peter Sellars wrote:
> >
> > > Am trying to build drools in order to test a patch for user resources
> but
> > > have an issue with drools-vsm module.
> > >
> > > I have added a method to the KnowledgeBuilderFactoryService
interface.
> The
> > > clients in the VSM complain that they do not override the method.
> > >
> > > I am sure there is a simple step I am missing that will fix this
issue
> (it
> > > appears my snapshot version of the api, core and compiler modules are

> not
>
> > > being used by vsm).
> > >
> > > Any ideas?
> > >
> > > Peter Sellars
> > >
> > >
> > >
> > > Attention:
> > > This email may contain information intended for the sole use of
> > > the original recipient. Please respect this when sharing or
> > > disclosing this email's contents with any third party. If you
> > > believe you have received this email in error, please delete it
> > > and notify the sender or [hidden email] as
> > > soon as possible. The content of this email does not necessarily
> > > reflect the views of Solnet Solutions Ltd.
> > >
> > > _______________________________________________
> > > rules-dev mailing list
> > > [hidden email]
> > > https://lists.jboss.org/mailman/listinfo/rules-dev
> > >
> > >
> >
> > _______________________________________________
> > rules-dev mailing list
> > [hidden email]
> > https://lists.jboss.org/mailman/listinfo/rules-dev
> >
>
> > View message @ http://n3.nabble.com/Drools-VSM-Module-Build-Issue-
> > tp199452p199482.html
> > To start a new topic under Drools - Dev, email ml-node
> > +[hidden email]
> > To unsubscribe from Drools - Dev, click here.
>
>
>
> Attention:
> This email may contain information intended for the sole use of
> the original recipient. Please respect this when sharing or
> disclosing this email's contents with any third party. If you
> believe you have received this email in error, please delete it
> and notify the sender or [hidden email] as
> soon as possible. The content of this email does not necessarily
> reflect the views of Solnet Solutions Ltd.
>
>

> View this message in context: Re: Drools VSM Module - Build Issue
> Sent from the Drools - Dev mailing list archive at Nabble.com.
>
> _______________________________________________
> rules-dev mailing list
> [hidden email]
> https://lists.jboss.org/mailman/listinfo/rules-dev

>
>
>
> --
> Michael D Neale
> home: www.michaelneale.net
> blog: michaelneale.blogspot.com
>
>
> _______________________________________________
> rules-dev mailing list
> [hidden email]
> https://lists.jboss.org/mailman/listinfo/rules-dev
>
>
>
> _______________________________________________
> rules-dev mailing list
> [hidden email]
> https://lists.jboss.org/mailman/listinfo/rules-dev
>

> View message @ http://n3.nabble.com/Drools-VSM-Module-Build-Issue-
> tp199452p207372.html
> To start a new topic under Drools - Dev, email ml-node
> +[hidden email]
> To unsubscribe from Drools - Dev, click here.



Attention:
This email may contain information intended for the sole use of
the original recipient. Please respect this when sharing or
disclosing this email's contents with any third party. If you
believe you have received this email in error, please delete it
and notify the sender or [hidden email] as
soon as possible. The content of this email does not necessarily
reflect the views of Solnet Solutions Ltd.



View this message in context: Re: Drools VSM Module - Build Issue
Sent from the Drools - Dev mailing list archive at Nabble.com.