I suspected something like that, but *matching *facts of type System from Working Memory and *inserting *recreated facts of the same type isn't going to get them nearer to the GUI?
-W On 6 July 2011 13:10, _bart <[email protected]> wrote: > Ok I will describe it again: > > We want to administrate some objects in guvnor. Every object has one id, > one > name and one description. We have round about 100 objects. > > One use case is, that all objects (id, name and description) should be > displayed in a drop down box in our web frontend. > The next use case is, that it has to be possible to load one object (id, > name, decription) by id. > > My solution in pseudo code for the rule is: > > IF id IS SET search object and return it or return null if not exist. > IF ID IS NOT SET return all objects. > > So I need a rule for these requirements. The rule above returns the object > specified by id correctly (the id will be set with id $system.getId()). > Also the rule above returns all objects from the data table. But the id is > missing in every object. > > I hope it is clear now. > Maybe my approach is wrong? > > > > > -- > View this message in context: > http://drools.46999.n3.nabble.com/Drools-Guvnor-problem-tp3142574p3144308.html > Sent from the Drools: User forum mailing list archive at Nabble.com. > _______________________________________________ > rules-users mailing list > [email protected] > https://lists.jboss.org/mailman/listinfo/rules-users >
_______________________________________________ rules-users mailing list [email protected] https://lists.jboss.org/mailman/listinfo/rules-users
