Re: [rules-users] How to import DRL into Business Rule Assets section?

2009-05-20 Thread Late Norther
> 2009/5/20 Steve Ronderos 
>>
>> Jon,
>>
>> We are currently trying to convert our drl files to brls as well.  Would
>> it be possible to share your perl conversion utility?  We were just about to
>> start creating a similar script, but it would help us out greatly if we
>> could have a look at yours.
>>
>> Thanks,
>>
>> Steve
>>
>> ___
>> rules-users mailing list
>> rules-users@lists.jboss.org
>> https://lists.jboss.org/mailman/listinfo/rules-users
>>

Hi Steve,

I am not sure my script would be too useful as it did not convert .drl
to .brl, but rather our own rule language (stored in DB tables) to
.brl.The Perl script pulled the needed values from the DB tables
and then did nothing more than write .brl files using XML templates
like this:

my $rule = <
  $rulename
  1.0
  

  salience
  $salience


  enabled
  $enabled


  activation-group
  foo

  
  
  

  

  
$lang
1
languageString
==
String
  

  
  Language


...
...
...
...


Then of course just writing the rule file.

unless (open(OUT, ">$outfile"))
{
die "Unable to open output file";
}
print OUT "$rule\n";
close OUT;

As I mentioned before, to create the template, I just created some
similar-looking rules using the guided graphical editor and looked at
the resulting XML.

We will also use .drl files too, but for the simple rules which are
managed by analysts, the more basic .brl functionality is going to
work quite well IMO.

Jon

___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


Re: [rules-users] How to import DRL into Business Rule Assets section?

2009-05-20 Thread Edson Tirelli
   People,

   Just a heads up, .brl rules are intended to be simpler rules
authored/maintained by business people. While it is a good to have the
ability to edit them with the guided editor, they are limited in what they
can express.

   Just as one example, as of now, they don't support "from" syntax, meaning
you can not use collect/accumulate/entry-point. If you don't use that and a
couple other things, its not problem then.

   I wanted to give this heads up so that people is aware before hand to
avoid waste time in some cases.

   BTW, it is not that we can't change that in the future. It is just how
things are now.

   []s
   Edson

2009/5/20 Steve Ronderos 

>
> rules-users-boun...@lists.jboss.org wrote on 05/19/2009 06:40:34 PM:
>
> > [image removed]
> >
> > Re: [rules-users] How to import DRL into Business Rule Assets  section?
> >
> > Late Norther
> >
> > to:
> >
> > Rules Users List
> >
> > 05/19/2009 06:53 PM
> >
> > Sent by:
> >
> > rules-users-boun...@lists.jboss.org
> >
> > Please respond to Rules Users List
> >
> > 2009/5/19 Michal Bali :
> > > Hi Jon,
> > >
> > > You could use webdav to connect to Guvnor -
> > >
> http://blog.athico.com/2008/05/accessing-guvnor-as-filesystem-webdav.html.
> > > You should then see how Guvnor stores the 'business rules', I think it
> is an
> > > XML file. Then instead of generating DRL file you could generate this
> XML.
> > > You can then upload these files via webdav into Guvnor.
> > > Hope this helps.
> > >
> > > Regards,
> > > Michal
> > >
> >
> > Michal,
> >
> > I can't thank you enough.  This worked well.
> >
> > For others, here is a review of what I did.
> >
> > 1. Created a 'dummy' rule using the guided editor in my target package.
> > 2. Used the blog URL above to mount the package webdav share
> > 3. Downloaded the 'dummy' rule from the webdav share to act as a template
> > 4. Updated my Perl import/export script to create .brl files instead
> > of .drl files, using the template.
> > 5. Copied the new .brl files created by my utility script to the webdav
> share.
> > 6. Go back to Guvnor GWT and saw/confirmed my rules.
> >
> > The only snafu I found was that I am unable to populate a category as
> > part of the import, but I can have my analysts do that by hand if
> > needed.  That apparently is not stored in the .brl, but rather
> > somewhere else.   I did confirm that I can update the category in the
> > UI after the load.
> >
> > Again,  Thank you.
> >
> > Jon
> > ___
> > rules-users mailing list
> > rules-users@lists.jboss.org
> > https://lists.jboss.org/mailman/listinfo/rules-users
>
> Jon,
>
> We are currently trying to convert our drl files to brls as well.  Would it
> be possible to share your perl conversion utility?  We were just about to
> start creating a similar script, but it would help us out greatly if we
> could have a look at yours.
>
> Thanks,
>
> Steve
>
> ___
> rules-users mailing list
> rules-users@lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users
>
>


-- 
 Edson Tirelli
 JBoss Drools Core Development
 JBoss, a division of Red Hat @ www.jboss.com
___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


Re: [rules-users] How to import DRL into Business Rule Assets section?

2009-05-20 Thread Steve Ronderos
rules-users-boun...@lists.jboss.org wrote on 05/19/2009 06:40:34 PM:

> [image removed] 
> 
> Re: [rules-users] How to import DRL into Business Rule Assets  section?
> 
> Late Norther 
> 
> to:
> 
> Rules Users List
> 
> 05/19/2009 06:53 PM
> 
> Sent by:
> 
> rules-users-boun...@lists.jboss.org
> 
> Please respond to Rules Users List
> 
> 2009/5/19 Michal Bali :
> > Hi Jon,
> >
> > You could use webdav to connect to Guvnor -
> > 
http://blog.athico.com/2008/05/accessing-guvnor-as-filesystem-webdav.html.
> > You should then see how Guvnor stores the 'business rules', I think it 
is an
> > XML file. Then instead of generating DRL file you could generate this 
XML.
> > You can then upload these files via webdav into Guvnor.
> > Hope this helps.
> >
> > Regards,
> > Michal
> >
> 
> Michal,
> 
> I can't thank you enough.  This worked well.
> 
> For others, here is a review of what I did.
> 
> 1. Created a 'dummy' rule using the guided editor in my target package.
> 2. Used the blog URL above to mount the package webdav share
> 3. Downloaded the 'dummy' rule from the webdav share to act as a 
template
> 4. Updated my Perl import/export script to create .brl files instead
> of .drl files, using the template.
> 5. Copied the new .brl files created by my utility script to the webdav 
share.
> 6. Go back to Guvnor GWT and saw/confirmed my rules.
> 
> The only snafu I found was that I am unable to populate a category as
> part of the import, but I can have my analysts do that by hand if
> needed.  That apparently is not stored in the .brl, but rather
> somewhere else.   I did confirm that I can update the category in the
> UI after the load.
> 
> Again,  Thank you.
> 
> Jon
> ___
> rules-users mailing list
> rules-users@lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users

Jon,

We are currently trying to convert our drl files to brls as well.  Would 
it be possible to share your perl conversion utility?  We were just about 
to start creating a similar script, but it would help us out greatly if we 
could have a look at yours.

Thanks,

Steve
___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


Re: [rules-users] How to import DRL into Business Rule Assets section?

2009-05-19 Thread Late Norther
2009/5/19 Michal Bali :
> Hi Jon,
>
> You could use webdav to connect to Guvnor -
> http://blog.athico.com/2008/05/accessing-guvnor-as-filesystem-webdav.html.
> You should then see how Guvnor stores the 'business rules', I think it is an
> XML file. Then instead of generating DRL file you could generate this XML.
> You can then upload these files via webdav into Guvnor.
> Hope this helps.
>
> Regards,
> Michal
>

Michal,

I can't thank you enough.  This worked well.

For others, here is a review of what I did.

1. Created a 'dummy' rule using the guided editor in my target package.
2. Used the blog URL above to mount the package webdav share
3. Downloaded the 'dummy' rule from the webdav share to act as a template
4. Updated my Perl import/export script to create .brl files instead
of .drl files, using the template.
5. Copied the new .brl files created by my utility script to the webdav share.
6. Go back to Guvnor GWT and saw/confirmed my rules.

The only snafu I found was that I am unable to populate a category as
part of the import, but I can have my analysts do that by hand if
needed.  That apparently is not stored in the .brl, but rather
somewhere else.   I did confirm that I can update the category in the
UI after the load.

Again,  Thank you.

Jon
___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


Re: [rules-users] How to import DRL into Business Rule Assets section?

2009-05-19 Thread Michal Bali
Hi Jon,

You could use webdav to connect to Guvnor -
http://blog.athico.com/2008/05/accessing-guvnor-as-filesystem-webdav.html.
You should then see how Guvnor stores the 'business rules', I think it is an
XML file. Then instead of generating DRL file you could generate this XML.
You can then upload these files via webdav into Guvnor.
Hope this helps.

Regards,
Michal


On Tue, May 19, 2009 at 8:57 PM, Late Norther  wrote:

> > Hello,
> > We are trying to develop a system based on Drools and want to have a
> > repository based on JBoss and manage it from the Guvnor website. Now,
> > we have a few questions:
> > 1) Can we import DRL files into the Business rules section, so that
> > later we can view/modify them using the graphical interface (text
> > boxes, drop down menus, etc)? This will be very useful for production
> > use.
> > What we tried so far, imports them as text in the Technical rules
> > section
>
> I have the identical question.   I have created a utility which takes
> our own homegrown rules and converts them (hundreds of rules) into a
> DRL file.   I too have been able to import them into Guvnor, but was
> hoping they could then be modified via the graphical editor instead of
> the technical rule editor.   The rules are simple and do not contain
> anything that Guvnor's graphical editor does not support.   I have a
> feeling this is an enhancement request, but just in case anyone knew
> of a workaround to change the type of rule from technical rule to
> business rule.
>
> Thanks,
>
> Jon
> ___
> 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] How to import DRL into Business Rule Assets section?

2009-05-19 Thread Late Norther
> Hello,
> We are trying to develop a system based on Drools and want to have a
> repository based on JBoss and manage it from the Guvnor website. Now,
> we have a few questions:
> 1) Can we import DRL files into the Business rules section, so that
> later we can view/modify them using the graphical interface (text
> boxes, drop down menus, etc)? This will be very useful for production
> use.
> What we tried so far, imports them as text in the Technical rules
> section

I have the identical question.   I have created a utility which takes
our own homegrown rules and converts them (hundreds of rules) into a
DRL file.   I too have been able to import them into Guvnor, but was
hoping they could then be modified via the graphical editor instead of
the technical rule editor.   The rules are simple and do not contain
anything that Guvnor's graphical editor does not support.   I have a
feeling this is an enhancement request, but just in case anyone knew
of a workaround to change the type of rule from technical rule to
business rule.

Thanks,

Jon
___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


[rules-users] How to import DRL into Business Rule Assets section?

2009-05-09 Thread jant79

Hello,
We are trying to develop a system based on Drools and want to have a
repository based on JBoss and manage it from the Guvnor website. Now, we
have a few questions:
1) Can we import DRL files into the Business rules section, so that later we
can view/modify them using the graphical interface (text boxes, drop down
menus, etc)? This will be very useful for production use.
What we tried so far, imports them as text in the Technical rules section
which is not user friendly at all.
2) Can we at all import .dslr files ? And where from in the Guvnor GUI ?
Thanks a lot,
John
-- 
View this message in context: 
http://www.nabble.com/How-to-import-DRL-into-Business-Rule-Assets-section--tp23443796p23443796.html
Sent from the drools - user mailing list archive at Nabble.com.

___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users