Re: [rules-users] Guvnor: Accessing Bound Variable in Then Statement
Hi Manstis, I'm working with 5.5.0.Final and currently facing the same issue. I have a fact declared as Person $person in the LHS and would like to set the property of another fact Response.employmentCode to bounded field $person.employmentCode in the RHS. How can this be implemented in 5.5.0.Final? I would appreciate your help. -- View this message in context: http://drools.46999.n3.nabble.com/Guvnor-Accessing-Bound-Variable-in-Then-Statement-tp4018932p4024257.html Sent from the Drools: User forum mailing list archive at Nabble.com. ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
Re: [rules-users] Guvnor: Accessing Bound Variable in Then Statement
Hello, I've encountered the same issue as described by Vann_the_Red. My GUVNOR version is 5.4.0-SNAPSHOT. The problem is that I can't assign defined variable as a value in formula field in THEN section of my rule. It is due to field mask that allows me to enter only digits (type of the field is long). When I click on formula, the textarea containing = appears, but I cannot type in variable name, nor any character other than digits. Furthermore, if I delete = I cannot re-enter it. I'm providing the screenshot of the rule: http://drools.46999.n3.nabble.com/file/n4020828/guvnor_problem.png As I said, the type of clientId field is long. I would like to enter there =cli.id. I'm kindly asking for help. manstis wrote Hello, Please advise which version of Guvnor you are using. Please also provide a few explicit examples where behavior is not as you'd expect (screen shots of the rule and a few words would be cool). Thanks, Mike On 26 July 2012 20:42, Vann_the_Red lt; abanks@ gt; wrote: Hello. I started with a search and didn't find an answer. I apologize if my search-fu was lacking today. I'm a non-developer tasked with rules creation and testing using guvnor. I have found some scenarios where I can bind a variable to either the whole input model or a fact in the input model and then later access those in the output model by selecting Bound Variable from the popup box in the Then statement. In other scenarios, Bound Variable is not an option (only Literal or Formula). What must I do to be able to access the bound variables from the When statement(s) in the Then statement(s)? TIA, Vann This is a repost because I wasn't on the mailing list yet and I gather most didn't see it. Apologies again. -- View this message in context: http://drools.46999.n3.nabble.com/Guvnor-Accessing-Bound-Variable-in-Then-Statement-tp4018932.html Sent from the Drools: User forum mailing list archive at Nabble.com. ___ rules-users mailing list rules-users@.jboss https://lists.jboss.org/mailman/listinfo/rules-users ___ rules-users mailing list rules-users@.jboss https://lists.jboss.org/mailman/listinfo/rules-users -- View this message in context: http://drools.46999.n3.nabble.com/Guvnor-Accessing-Bound-Variable-in-Then-Statement-tp4018932p4020828.html Sent from the Drools: User forum mailing list archive at Nabble.com. ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
Re: [rules-users] Guvnor: Accessing Bound Variable in Then Statement
This has been fixed in 5.5.0.Final. On 14 November 2012 12:29, msic maciejsic...@o2.pl wrote: Hello, I've encountered the same issue as described by Vann_the_Red. My GUVNOR version is 5.4.0-SNAPSHOT. The problem is that I can't assign defined variable as a value in formula field in THEN section of my rule. It is due to field mask that allows me to enter only digits (type of the field is long). When I click on formula, the textarea containing = appears, but I cannot type in variable name, nor any character other than digits. Furthermore, if I delete = I cannot re-enter it. I'm providing the screenshot of the rule: http://drools.46999.n3.nabble.com/file/n4020828/guvnor_problem.png As I said, the type of clientId field is long. I would like to enter there =cli.id. I'm kindly asking for help. manstis wrote Hello, Please advise which version of Guvnor you are using. Please also provide a few explicit examples where behavior is not as you'd expect (screen shots of the rule and a few words would be cool). Thanks, Mike On 26 July 2012 20:42, Vann_the_Red lt; abanks@ gt; wrote: Hello. I started with a search and didn't find an answer. I apologize if my search-fu was lacking today. I'm a non-developer tasked with rules creation and testing using guvnor. I have found some scenarios where I can bind a variable to either the whole input model or a fact in the input model and then later access those in the output model by selecting Bound Variable from the popup box in the Then statement. In other scenarios, Bound Variable is not an option (only Literal or Formula). What must I do to be able to access the bound variables from the When statement(s) in the Then statement(s)? TIA, Vann This is a repost because I wasn't on the mailing list yet and I gather most didn't see it. Apologies again. -- View this message in context: http://drools.46999.n3.nabble.com/Guvnor-Accessing-Bound-Variable-in-Then-Statement-tp4018932.html Sent from the Drools: User forum mailing list archive at Nabble.com. ___ rules-users mailing list rules-users@.jboss https://lists.jboss.org/mailman/listinfo/rules-users ___ rules-users mailing list rules-users@.jboss https://lists.jboss.org/mailman/listinfo/rules-users -- View this message in context: http://drools.46999.n3.nabble.com/Guvnor-Accessing-Bound-Variable-in-Then-Statement-tp4018932p4020828.html Sent from the Drools: User forum mailing list archive at Nabble.com. ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
Re: [rules-users] Guvnor: Accessing Bound Variable in Then Statement
Hello, Please advise which version of Guvnor you are using. Please also provide a few explicit examples where behavior is not as you'd expect (screen shots of the rule and a few words would be cool). Thanks, Mike On 26 July 2012 20:42, Vann_the_Red aba...@ntelx.com wrote: Hello. I started with a search and didn't find an answer. I apologize if my search-fu was lacking today. I'm a non-developer tasked with rules creation and testing using guvnor. I have found some scenarios where I can bind a variable to either the whole input model or a fact in the input model and then later access those in the output model by selecting Bound Variable from the popup box in the Then statement. In other scenarios, Bound Variable is not an option (only Literal or Formula). What must I do to be able to access the bound variables from the When statement(s) in the Then statement(s)? TIA, Vann This is a repost because I wasn't on the mailing list yet and I gather most didn't see it. Apologies again. -- View this message in context: http://drools.46999.n3.nabble.com/Guvnor-Accessing-Bound-Variable-in-Then-Statement-tp4018932.html Sent from the Drools: User forum mailing list archive at Nabble.com. ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
[rules-users] Guvnor: Accessing Bound Variable in Then Statement
Hello. I started with a search and didn't find an answer. I apologize if my search-fu was lacking today. I'm a non-developer tasked with rules creation and testing using guvnor. I have found some scenarios where I can bind a variable to either the whole input model or a fact in the input model and then later access those in the output model by selecting Bound Variable from the popup box in the Then statement. In other scenarios, Bound Variable is not an option (only Literal or Formula). What must I do to be able to access the bound variables from the When statement(s) in the Then statement(s)? TIA, Vann This is a repost because I wasn't on the mailing list yet and I gather most didn't see it. Apologies again. -- View this message in context: http://drools.46999.n3.nabble.com/Guvnor-Accessing-Bound-Variable-in-Then-Statement-tp4018932.html Sent from the Drools: User forum mailing list archive at Nabble.com. ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
Re: [rules-users] Guvnor: Accessing Bound Variable in Then Statement
Mods, please delete. Superceded by new thread now that I'm on the mailing list. Thank you. -- View this message in context: http://drools.46999.n3.nabble.com/Guvnor-Accessing-Bound-Variable-in-Then-Statement-tp4018905p4018933.html Sent from the Drools: User forum mailing list archive at Nabble.com. ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users