Efficiency questions about DSL

classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|

Efficiency questions about DSL

mfalaize
Hi,

I was wondering how to use efficiently DSL with my rules and I have several questions about it :

- First, I have the impression that we can use DSL files only in the same package of the DSLR file. When I tried to load DSL files by the kmodule.xml (specifying the different packages in the packages attribute of kbase) it does not work. Do I have to load each DSL files programmatically or is there a way to load it automatically by the kmodule.xml (and if it is the case, how can we handle the parsing order of these files ?) ?

- An underlying question is is this a good practice to divide DSL files ? I would like to translate all my rules in french and to put the generic translations in a unique DSL file to reuse it in all of my different DSLR files.

- I noted that we can use more than one DSL file for one DSLR file (it works at the runtime) but when it is the case the DRL viewer of the DSL rule editor does not work and I don't have autocompletion. I tried to put several expander instructions but it fails. Is there a way to make it work ?

I think DSL stuff is underestimate at this moment by the community and for my last question I would like to know what is the future plans about this feature ? Maybe I could help to develop it.

Regards
Reply | Threaded
Open this post in threaded view
|

Re: Efficiency questions about DSL

mfalaize
Hum, actually for the first point it doesn't work only when DSL files come from a dependent maven project (I have generic DSL files in a separate maven project).
Reply | Threaded
Open this post in threaded view
|

Re: [rules-users] Efficiency questions about DSL

manstis
In reply to this post by mfalaize

So many questions....

I can comment on the workbench related aspects.

The workbench only includes DSL files for authoring DSLR (or RDSLR) files that are in the same "folder" as the rule. I use the term "folder" as we don't support "same package" (which would imply if the same package existed in different JARs we'd include all DSL files - we do not).

The "expander" keyword is, AFAIK, deprecated. DSL/DSLR expansion depends upon the files being in the same "folder".

@Mario, @Mark, @Edson. Can you comment on whether KIE does handle DSL expansion across different JARs?

Sent on the move

On 18 Mar 2014 09:20, "mfalaize" <[hidden email]> wrote:
Hi,

I was wondering how to use efficiently DSL with my rules and I have several
questions about it :

- First, I have the impression that we can use DSL files only in the same
package of the DSLR file. When I tried to load DSL files by the kmodule.xml
(specifying the different packages in the packages attribute of kbase) it
does not work. Do I have to load each DSL files programmatically or is there
a way to load it automatically by the kmodule.xml (and if it is the case,
how can we handle the parsing order of these files ?) ?

- An underlying question is is this a good practice to divide DSL files ? I
would like to translate all my rules in french and to put the generic
translations in a unique DSL file to reuse it in all of my different DSLR
files.

- I noted that we can use more than one DSL file for one DSLR file (it works
at the runtime) but when it is the case the DRL viewer of the DSL rule
editor does not work and I don't have autocompletion. I tried to put several
expander instructions but it fails. Is there a way to make it work ?

I think DSL stuff is underestimate at this moment by the community and for
my last question I would like to know what is the future plans about this
feature ? Maybe I could help to develop it.

Regards




--
View this message in context: http://drools.46999.n3.nabble.com/Efficiency-questions-about-DSL-tp4028774.html
Sent from the Drools: User forum mailing list archive at Nabble.com.
_______________________________________________
rules-users mailing list
[hidden email]
https://lists.jboss.org/mailman/listinfo/rules-users

_______________________________________________
rules-users mailing list
[hidden email]
https://lists.jboss.org/mailman/listinfo/rules-users
Reply | Threaded
Open this post in threaded view
|

Re: [rules-users] Efficiency questions about DSL

mfalaize
Is it a deliberate choice to not include DSL files in the "same package" ? If we are limited to the same folder (or same package), what do you think about supporting inheritance in DSL files ? With this feature we could provide to the community generic translation DSL files for many languages.

Sorry for the new questions ! :D
I'd like to help to develop but I don't want to make useless contributions...


2014-03-20 20:19 GMT+01:00 manstis [via Drools] <[hidden email]>:

So many questions....

I can comment on the workbench related aspects.

The workbench only includes DSL files for authoring DSLR (or RDSLR) files that are in the same "folder" as the rule. I use the term "folder" as we don't support "same package" (which would imply if the same package existed in different JARs we'd include all DSL files - we do not).

The "expander" keyword is, AFAIK, deprecated. DSL/DSLR expansion depends upon the files being in the same "folder".

@Mario, @Mark, @Edson. Can you comment on whether KIE does handle DSL expansion across different JARs?

Sent on the move

On 18 Mar 2014 09:20, "mfalaize" <[hidden email]> wrote:
Hi,

I was wondering how to use efficiently DSL with my rules and I have several
questions about it :

- First, I have the impression that we can use DSL files only in the same
package of the DSLR file. When I tried to load DSL files by the kmodule.xml
(specifying the different packages in the packages attribute of kbase) it
does not work. Do I have to load each DSL files programmatically or is there
a way to load it automatically by the kmodule.xml (and if it is the case,
how can we handle the parsing order of these files ?) ?

- An underlying question is is this a good practice to divide DSL files ? I
would like to translate all my rules in french and to put the generic
translations in a unique DSL file to reuse it in all of my different DSLR
files.

- I noted that we can use more than one DSL file for one DSLR file (it works
at the runtime) but when it is the case the DRL viewer of the DSL rule
editor does not work and I don't have autocompletion. I tried to put several
expander instructions but it fails. Is there a way to make it work ?

I think DSL stuff is underestimate at this moment by the community and for
my last question I would like to know what is the future plans about this
feature ? Maybe I could help to develop it.

Regards




--
View this message in context: http://drools.46999.n3.nabble.com/Efficiency-questions-about-DSL-tp4028774.html
Sent from the Drools: User forum mailing list archive at Nabble.com.
_______________________________________________
rules-users mailing list
[hidden email]
https://lists.jboss.org/mailman/listinfo/rules-users

_______________________________________________
rules-users mailing list
[hidden email]
https://lists.jboss.org/mailman/listinfo/rules-users


If you reply to this email, your message will be added to the discussion below:
http://drools.46999.n3.nabble.com/Efficiency-questions-about-DSL-tp4028774p4028841.html
To unsubscribe from Efficiency questions about DSL, click here.
NAML



--
Maxime FALAIZE
Reply | Threaded
Open this post in threaded view
|

Re: [rules-users] Efficiency questions about DSL

manstis
It's a deliberate decision in the workbench; as it follows what is supported by the core engine.

I've asked the core engine developers to comment on whether the underlying Drools engine supports (does support, should support or will support) cross-JAR DSLs.

With kind regards,

Mike 


On 21 March 2014 08:52, mfalaize <[hidden email]> wrote:
Is it a deliberate choice to not include DSL files in the "same package" ? If we are limited to the same folder (or same package), what do you think about supporting inheritance in DSL files ? With this feature we could provide to the community generic translation DSL files for many languages.

Sorry for the new questions ! :D
I'd like to help to develop but I don't want to make useless contributions...


2014-03-20 20:19 GMT+01:00 manstis [via Drools] <[hidden email]>:

So many questions....

I can comment on the workbench related aspects.

The workbench only includes DSL files for authoring DSLR (or RDSLR) files that are in the same "folder" as the rule. I use the term "folder" as we don't support "same package" (which would imply if the same package existed in different JARs we'd include all DSL files - we do not).

The "expander" keyword is, AFAIK, deprecated. DSL/DSLR expansion depends upon the files being in the same "folder".

@Mario, @Mark, @Edson. Can you comment on whether KIE does handle DSL expansion across different JARs?

Sent on the move

On 18 Mar 2014 09:20, "mfalaize" <[hidden email]> wrote:
Hi,

I was wondering how to use efficiently DSL with my rules and I have several
questions about it :

- First, I have the impression that we can use DSL files only in the same
package of the DSLR file. When I tried to load DSL files by the kmodule.xml
(specifying the different packages in the packages attribute of kbase) it
does not work. Do I have to load each DSL files programmatically or is there
a way to load it automatically by the kmodule.xml (and if it is the case,
how can we handle the parsing order of these files ?) ?

- An underlying question is is this a good practice to divide DSL files ? I
would like to translate all my rules in french and to put the generic
translations in a unique DSL file to reuse it in all of my different DSLR
files.

- I noted that we can use more than one DSL file for one DSLR file (it works
at the runtime) but when it is the case the DRL viewer of the DSL rule
editor does not work and I don't have autocompletion. I tried to put several
expander instructions but it fails. Is there a way to make it work ?

I think DSL stuff is underestimate at this moment by the community and for
my last question I would like to know what is the future plans about this
feature ? Maybe I could help to develop it.

Regards




--
View this message in context: http://drools.46999.n3.nabble.com/Efficiency-questions-about-DSL-tp4028774.html
Sent from the Drools: User forum mailing list archive at Nabble.com.
_______________________________________________
rules-users mailing list
[hidden email]
https://lists.jboss.org/mailman/listinfo/rules-users

_______________________________________________
rules-users mailing list
[hidden email]
https://lists.jboss.org/mailman/listinfo/rules-users


If you reply to this email, your message will be added to the discussion below:
http://drools.46999.n3.nabble.com/Efficiency-questions-about-DSL-tp4028774p4028841.html
To unsubscribe from Efficiency questions about DSL, click here.
NAML



--
Maxime FALAIZE


View this message in context: Re: [rules-users] Efficiency questions about DSL

Sent from the Drools: User forum mailing list archive at Nabble.com.

_______________________________________________
rules-users mailing list
[hidden email]
https://lists.jboss.org/mailman/listinfo/rules-users


_______________________________________________
rules-users mailing list
[hidden email]
https://lists.jboss.org/mailman/listinfo/rules-users
Reply | Threaded
Open this post in threaded view
|

Re: [rules-users] Efficiency questions about DSL

Sandjaja, Dominik

Hello,

 

any progress or new on this issue? I am currently facing the situation that I’d like to create a “basic DSL” for different projects, placing it in a separate artifact which only gets included. It would be great if the KIE Workbench (and, obviously, the underlying engine) supported that.

 

Thank you

Dominik

 

Von: [hidden email] [mailto:[hidden email]] Im Auftrag von Michael Anstis
Gesendet: Freitag, 21. März 2014 15:19
An: Rules Users List
Betreff: Re: [rules-users] Efficiency questions about DSL

 

It's a deliberate decision in the workbench; as it follows what is supported by the core engine.

 

I've asked the core engine developers to comment on whether the underlying Drools engine supports (does support, should support or will support) cross-JAR DSLs.

 

With kind regards,

 

Mike 

 

On 21 March 2014 08:52, mfalaize <[hidden email]> wrote:

Is it a deliberate choice to not include DSL files in the "same package" ? If we are limited to the same folder (or same package), what do you think about supporting inheritance in DSL files ? With this feature we could provide to the community generic translation DSL files for many languages.

Sorry for the new questions ! :D

I'd like to help to develop but I don't want to make useless contributions...

 

2014-03-20 20:19 GMT+01:00 manstis [via Drools] <[hidden email]>:

So many questions....

I can comment on the workbench related aspects.

The workbench only includes DSL files for authoring DSLR (or RDSLR) files that are in the same "folder" as the rule. I use the term "folder" as we don't support "same package" (which would imply if the same package existed in different JARs we'd include all DSL files - we do not).

The "expander" keyword is, AFAIK, deprecated. DSL/DSLR expansion depends upon the files being in the same "folder".

@Mario, @Mark, @Edson. Can you comment on whether KIE does handle DSL expansion across different JARs?

Sent on the move

On 18 Mar 2014 09:20, "mfalaize" <[hidden email]> wrote:

Hi,

I was wondering how to use efficiently DSL with my rules and I have several
questions about it :

- First, I have the impression that we can use DSL files only in the same
package of the DSLR file. When I tried to load DSL files by the kmodule.xml
(specifying the different packages in the packages attribute of kbase) it
does not work. Do I have to load each DSL files programmatically or is there
a way to load it automatically by the kmodule.xml (and if it is the case,
how can we handle the parsing order of these files ?) ?

- An underlying question is is this a good practice to divide DSL files ? I
would like to translate all my rules in french and to put the generic
translations in a unique DSL file to reuse it in all of my different DSLR
files.

- I noted that we can use more than one DSL file for one DSLR file (it works
at the runtime) but when it is the case the DRL viewer of the DSL rule
editor does not work and I don't have autocompletion. I tried to put several
expander instructions but it fails. Is there a way to make it work ?

I think DSL stuff is underestimate at this moment by the community and for
my last question I would like to know what is the future plans about this
feature ? Maybe I could help to develop it.

Regards




--
View this message in context: http://drools.46999.n3.nabble.com/Efficiency-questions-about-DSL-tp4028774.html
Sent from the Drools: User forum mailing list archive at Nabble.com.
_______________________________________________
rules-users mailing list

[hidden email]
https://lists.jboss.org/mailman/listinfo/rules-users


_______________________________________________
rules-users mailing list
[hidden email]
https://lists.jboss.org/mailman/listinfo/rules-users


If you reply to this email, your message will be added to the discussion below:

http://drools.46999.n3.nabble.com/Efficiency-questions-about-DSL-tp4028774p4028841.html

To unsubscribe from Efficiency questions about DSL, click here.
NAML




--
Maxime FALAIZE

 


View this message in context: Re: [rules-users] Efficiency questions about DSL


Sent from the Drools: User forum mailing list archive at Nabble.com.


_______________________________________________
rules-users mailing list
[hidden email]
https://lists.jboss.org/mailman/listinfo/rules-users

 


…………………………………………………………………
mit freundlichen Grüßen / kind regards
Dominik Sandjaja
Fon: +49 (0) 203 60878 183
Fax: +49 (0) 203 60878 222
e-mail: [hidden email]

it-motive AG
Zum Walkmüller 6
47269 Duisburg
[hidden email]
http://www.it-motive.de
……………………………………………………………………
Vorsitzender des Aufsichtsrats: Dr.-Ing. Jürgen Sturm
Vorstand: Horst-Dieter Deelmann (Vors.), Matthias Heming, Christoph Tim Klose
HRB 9207, Amtsgericht Duisburg

_______________________________________________
rules-users mailing list
[hidden email]
https://lists.jboss.org/mailman/listinfo/rules-users