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 michalb...@gmail.com:
  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-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 steve.ronde...@ni.com


 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 michalb...@gmail.com:
   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


[rules-users] Download Drools 4.0.7

2009-05-20 Thread Shenika Harris
Is it still possible to download 4.0.7?

 

We are in the process of getting approval to implement 4.0.7 in our one
of our applications.  While 5.x is very appealing, it would be a
significant delay in the project to get approval for 5 at this time.
The links for 4.0.7 are 'gone' and making people very nervous.

 

Please let me know if you have the url to download 4.0.7... I suspect
it's something like http://download.jboss.org/drools/release/4.0.7 etc.

 

Thank you!

-  Shenika

 

 

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


RE: [rules-users] Download Drools 4.0.7

2009-05-20 Thread Carlsen, Len
You can also get them from the Maven repository here:

http://repository.jboss.org/maven2/org/drools/

Len

-Original Message-
From: rules-users-boun...@lists.jboss.org
[mailto:rules-users-boun...@lists.jboss.org] On Behalf Of Ingomar Otter
Sent: Wednesday, May 20, 2009 10:33 AM
To: Rules Users List
Subject: Re: [rules-users] Download Drools 4.0.7

Shenika,

It's always here:
 
http://anonsvn.jboss.org/repos/labs/labs/jbossrules/tags/4.0.7.19894.GA
/
Check it out and buikd it (it's trivial).


If you get's nervous because of this,   you might want to consider to  
move from the community to the RedHat  supported version. ;-)

--I


Am 20.05.2009 um 19:18 schrieb Shenika Harris:



 Is it still possible to download 4.0.7?

 We are in the process of getting approval to implement 4.0.7 in our  
 one of our applications.  While 5.x is very appealing, it would be a  
 significant delay in the project to get approval for 5 at this  
 time.  The links for 4.0.7 are 'gone' and making people very nervous.

 Please let me know if you have the url to download 4.0.7... I suspect

 it's something like http://download.jboss.org/drools/release/4.0.7  
 etc.

 Thank you!
 -  Shenika


 ___
 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 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 Late Norther
 2009/5/20 Steve Ronderos steve.ronde...@ni.com

 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 = EOF;
rule
  name$rulename/name
  modelVersion1.0/modelVersion
  attributes
attribute
  attributeNamesalience/attributeName
  value$salience/value
/attribute
attribute
  attributeNameenabled/attributeName
  value$enabled/value
/attribute
attribute
  attributeNameactivation-group/attributeName
  valuefoo/value
/attribute
  /attributes
  metadataList/
  lhs
fact
  constraintList
constraints
  fieldConstraint
value$lang/value
constraintValueType1/constraintValueType
fieldNamelanguageString/fieldName
operator==/operator
fieldTypeString/fieldType
  /fieldConstraint
/constraints
  /constraintList
  factTypeLanguage/factType
/fact

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


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] Download Drools 4.0.7

2009-05-20 Thread Ingomar Otter

Shenika,

It's always here:
http://anonsvn.jboss.org/repos/labs/labs/jbossrules/tags/4.0.7.19894.GA/
Check it out and buikd it (it's trivial).


If you get's nervous because of this,   you might want to consider to  
move from the community to the RedHat  supported version. ;-)


--I


Am 20.05.2009 um 19:18 schrieb Shenika Harris:




Is it still possible to download 4.0.7?

We are in the process of getting approval to implement 4.0.7 in our  
one of our applications.  While 5.x is very appealing, it would be a  
significant delay in the project to get approval for 5 at this  
time.  The links for 4.0.7 are ‘gone’ and making people very nervous.


Please let me know if you have the url to download 4.0.7… I suspect  
it’s something like http://download.jboss.org/drools/release/4.0.7  
etc.


Thank you!
-  Shenika


___
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