[rules-users] Guvnor custom form not working for DSL sentences

GPatel at tsys.com GPatel at tsys.com
Mon Oct 31 16:39:21 EDT 2011


Here's the model:

declare Vehicle
        engineType: String
        fuelType: String
end

Here's the DSL:

[when]there is a vehicle=$vehicle : Vehicle()
[when]- with engine type {value}=engineType=="{value}"
[then]say hello=System.out.println("Hello");

When I create a rule using the Guided Editor the usual way (without using 
DSL sentences), the custom form does pop up, as shown in attached file 
ss1.gif. 

When I create a rule using the DSL sentence (when there is a vehicle with 
engine type {value}), the value is the usual text field. Clicking on it 
does not invoke the custom form. Please see attached file ss-dsl.gif. 

Thanks
G. Patel



From:   Michael Anstis <michael.anstis at gmail.com>
To:     Rules Users List <rules-users at lists.jboss.org>
Date:   10/30/2011 03:04 PM
Subject:        Re: [rules-users] Guvnor custom form not working for DSL 
sentences
Sent by:        rules-users-bounces at lists.jboss.org



Can you bit a little more descriptive? I am having trouble knowing exactly 
to what part of Guvnor you refer.
sent on the move
On 30 Oct 2011 21:52, <GPatel at tsys.com> wrote:

Hi

Is the guvnor custom form not meant for use with fact fields appearing in
dsl sentences? It works fine with guided editor, not with dsl though.

Using 5.3.CR1

Thanks
G. Patel

-----------------------------------------
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
_______________________________________________
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

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-users/attachments/20111031/c2b73d8c/attachment.html 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ss1.GIF
Type: image/gif
Size: 15181 bytes
Desc: not available
Url : http://lists.jboss.org/pipermail/rules-users/attachments/20111031/c2b73d8c/attachment.gif 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ss-dsl.gif
Type: image/gif
Size: 8735 bytes
Desc: not available
Url : http://lists.jboss.org/pipermail/rules-users/attachments/20111031/c2b73d8c/attachment-0001.gif 


More information about the rules-users mailing list