From kothvandir at gmail.com Sun Aug 23 16:36:18 2009 Content-Type: multipart/mixed; boundary="===============1984282743083811104==" MIME-Version: 1.0 From: kothvandir kothvandir To: rules-users at lists.jboss.org Subject: [rules-users] Using constants in drools flow Date: Sun, 23 Aug 2009 22:36:17 +0200 Message-ID: <416772d30908231336o65752e7bucc47ffe7a8edc45f@mail.gmail.com> --===============1984282743083811104== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Hello, How can I define a constant in en jboss flow process so I can use it in a flow-group rules? I have defined it in the .drl that contains the ruleflow-group but when i try to set the constant with my service object using: ksession.setGlobal("myService", serviceObject); an Exception is thrown java.lang.RuntimeException: Unexpected global [myService] Is there any way to define globals in the .rf file within tag? anyone knows where can i find the xsd description for .tf files? Thanks --===============1984282743083811104== Content-Type: text/html MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="attachment.html" SGVsbG8sPGJyPjxicj5Ib3cgY2FuIEkgZGVmaW5lIGEgY29uc3RhbnQgaW4gZW4gamJvc3MgZmxv dyBwcm9jZXNzIHNvIEkgY2FuIHVzZSBpdCBpbiBhIGZsb3ctZ3JvdXAgcnVsZXM/PGJyPkkgaGF2 ZSBkZWZpbmVkIGl0IGluIHRoZSAuZHJsIHRoYXQgY29udGFpbnMgdGhlIHJ1bGVmbG93LWdyb3Vw IGJ1dCB3aGVuIGkgdHJ5IHRvIHNldCB0aGUgY29uc3RhbnQgd2l0aCBteSBzZXJ2aWNlIG9iamVj dCB1c2luZzo8YnI+Cjxicj5rc2Vzc2lvbi5zZXRHbG9iYWwoJnF1b3Q7bXlTZXJ2aWNlJnF1b3Q7 LCBzZXJ2aWNlT2JqZWN0KTs8YnI+YW4gRXhjZXB0aW9uIGlzIHRocm93bjxicj6goKCgoKCgoKCg oKCgoKCgoKCgoKCgIGphdmEubGFuZy5SdW50aW1lRXhjZXB0aW9uOiBVbmV4cGVjdGVkIGdsb2Jh bCBbbXlTZXJ2aWNlXTxicj48YnI+PGJyPklzIHRoZXJlIGFueSB3YXkgdG8gZGVmaW5lIGdsb2Jh bHMgaW4gdGhlIC5yZiBmaWxlIHdpdGhpbiAmbHQ7aGVhZCZndDsgdGFnPyBhbnlvbmUga25vd3Mg d2hlcmUgY2FuIGkgZmluZCB0aGUgeHNkIGRlc2NyaXB0aW9uIGZvciAudGYgZmlsZXM/PGJyPgo8 YnI+VGhhbmtzPGJyPgo= --===============1984282743083811104==-- From kris.verlaenen at cs.kuleuven.be Mon Aug 24 22:20:03 2009 Content-Type: multipart/mixed; boundary="===============4360736109647388035==" MIME-Version: 1.0 From: Kris Verlaenen To: rules-users at lists.jboss.org Subject: Re: [rules-users] Using constants in drools flow Date: Tue, 25 Aug 2009 04:05:59 +0200 Message-ID: <1251165959.4a9347078de9c@webmail2.kuleuven.be> In-Reply-To: 416772d30908231336o65752e7bucc47ffe7a8edc45f@mail.gmail.com --===============4360736109647388035== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable The Drools Flow XSD can be found in the drools-compiler jar. http://anonsvn.jboss.org/repos/labs/labs/jbossrules/trunk/drools-compiler/s= rc/main/resources/META-INF/drools-processes-5.0.xsd You can define globals in the header section like this:
Kris Quoting kothvandir kothvandir : > Hello, > = > How can I define a constant in en jboss flow process so I can use it > in a > flow-group rules? > I have defined it in the .drl that contains the ruleflow-group but > when i > try to set the constant with my service object using: > = > ksession.setGlobal("myService", serviceObject); > an Exception is thrown > java.lang.RuntimeException: Unexpected global > [myService] > = > = > Is there any way to define globals in the .rf file within tag? > anyone > knows where can i find the xsd description for .tf files? > = > Thanks > = Disclaimer: http://www.kuleuven.be/cwis/email_disclaimer.htm --===============4360736109647388035==--