[rules-users] Custom Form with DSL

GPatel at tsys.com GPatel at tsys.com
Fri Oct 12 12:58:39 EDT 2012


Is there a way to pass the editing context to the custom form? For 
example, in the rule below:

[when] type of mineral is {mineralName:CF:Mineral.name}and country of 
mining is {countryName:CF:Country.name}

If the mineral "Quartz" is selected, then the custom form displaying the 
country list should only display Quartz-producting countries. For this, 
the fact that mineral type Quartz was selected would need to be passed to 
the custom form. Is that possible?

Thanks
Ghanshyam



From:   Michael Anstis <michael.anstis at gmail.com>
To:     Rules Users List <rules-users at lists.jboss.org>, 
Date:   10/12/2012 12:57 AM
Subject:        Re: [rules-users] Custom Form with DSL
Sent by:        rules-users-bounces at lists.jboss.org



This sounds as though it's a bug.

Can you please create a JIRA (https://issues.jboss.org/browse/GUVNOR) and 
attach a repository export demonstrating the issue.

Thanks,

Mike

On 11 October 2012 06:06, bhochhi <bhochhi at aol.com> wrote:
I were able to launch the custom form in DSL, however the rule condition 
is
not mapped to corresponding DRL. I don't know if this is a bug or just
something is missing. my DSL mapping looks like this:

[when]
 my dsl is "{varName:CF:MyFactType.fieldName}" =
System.out.println("{varName}")

I have working set created then configured custom form for fieldName. All
things working but rule is not validating. When I check drl source, I 
found
the mapping is not taking place, its still displaying DSL expression in 
DRL
source instead of displaying:

System.out.println("values from cf")

Any ideas? I have tried this in guvnor 5.4.0.final and 5.5.beta1



--
View this message in context: 
http://drools.46999.n3.nabble.com/Custom-Form-with-DSL-tp4020207.html
Sent from the Drools: User forum mailing list archive at Nabble.com.
_______________________________________________
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



-----------------------------------------
The information contained in this communication (including any
attachments hereto) is confidential and is intended solely for the
personal and confidential use of the individual or entity to whom
it is addressed. If the reader of this message is not the intended
recipient or an agent responsible for delivering it to the intended
recipient, you are hereby notified that you have received this
communication in error and that any review, dissemination, copying,
or unauthorized use of this information, or the taking of any
action in reliance on the contents of this information is strictly
prohibited. If you have received this communication in error,
please notify us immediately by e-mail, and delete the original
message. Thank you 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-users/attachments/20121012/ccf684fb/attachment.html 


More information about the rules-users mailing list