Re: [rules-users] Rules categorization/packages

2010-03-18 Thread Esteban Aliverti
I added a comment to your jira entry. Please take a look.

2010/3/17 Amit Kumar amitku...@gmail.com

 https://jira.jboss.org/jira/browse/GUVNOR-514
 Model is also there

 :)

 2010/3/17 Esteban Aliverti esteban.alive...@gmail.com

 It would be good too if you could provide us your model (or at least a part
 of it).

 Best,


 On Wed, Mar 17, 2010 at 3:24 AM, Toni Rikkola trikk...@redhat.comwrote:

 You can create a Jira for this and upload the jar file there.
 https://jira.jboss.org/jira/browse/GUVNOR

 We will take a look at it and fix it if it is a bug.

 Toni

 Amit Kumar wrote:
  Sorry for spamming today
  It does seem to be working after I add Any of the following or All
  of the following and then add the attributes to it. So workaround is
  there..
  But when I add There is a Equipment and add a attribute then it
  permits me to assign a variable to it
  like Equipment(eId : entityId)
  but it does not correctly give me that variable assigning capability
  in the Any of  or All of blocks .. so struck issue.
  Thanks,
  Amit
 
 
 
  On Tue, Mar 16, 2010 at 1:58 PM, Amit Kumar amitku...@gmail.com
   mailto:amitku...@gmail.com wrote:
 
  Ok I tried again.  :(
 
  In Equipment I only see manufacturer
  In EquipmentCA I also only see manufacturer
  In Software I do not see anything.
 
  It contains many more classes
 
  Not sure what I am breaking.. but if you want I can send you my
  model files to you (in case you want to try). Do not want to post
  it on alias
 
  Thanks
  Amit
 
 
  2010/3/16 Esteban Aliverti esteban.alive...@gmail.com
  mailto:esteban.alive...@gmail.com
 
  But, which fields didn't appear in guvnor?
 
  2010/3/16 Amit Kumar amitku...@gmail.com
  mailto:amitku...@gmail.com
 
  Probably because of OStype and OSversion. Let me fix that
  and convert to lower case and try. I remember facing this
  issue sometime back with 5.0
  Thanks
  Amit
 
  On Tue, Mar 16, 2010 at 9:17 AM, Amit Kumar
  amitku...@gmail.com mailto:amitku...@gmail.com wrote:
 
  Its coming from a JAR
  Thanks
  Amit
 
  Equipment
entityIdint
partNumber  String
manufacturerString
owningEntityId  int
 
 
 
  Software
entityIdint
OSType  String
OSVersion   String
imageName   String
 
 
 
 
 
 
  EquipmentCA extends Equipment
hostnameString
productName String
productFamily   String
productId   String
 
  2010/3/16 Esteban Aliverti esteban.alive...@gmail.com
  mailto:esteban.alive...@gmail.com
 
  Are you importing your model from a .jar or using
  a Declarative Model?
 
 
  On Tue, Mar 16, 2010 at 6:28 AM, Toni Rikkola
  trikk...@redhat.com mailto:trikk...@redhat.com
  wrote:
 
  Hi,
 
  Its possible that there are some bugs in the
  snapshots. Can you tell me
  what your model looks like?
 
  Toni
 
  Amit Kumar wrote:
   The latest builds seem to be no good for
 guvnor
   They do seem rich in features .. especially
  support for
   collect/accumulate in guvnor along with
  inbox and global packages.
  
   But But But.. on adding a fact in the
  when/then clause then all the
   attributes of the facts are not coming ..
  some attributes come.. not
   all of them.
   I am picking it from here
  
 
 https://hudson.jboss.org/hudson/job/drools/lastSuccessfulBuild/artifact/trunk/target/
   Any other place I can look :)
  
   Thanks
   Amit
  
   On Mon, Feb 22, 2010 at 8:54 AM, Amit Kumar
  amitku...@gmail.com mailto:
 amitku...@gmail.com
   mailto:amitku...@gmail.com
  mailto:amitku...@gmail.com wrote:
  
   Thanks Jervis!!
  
   On Sun, Feb 21, 2010 at 

Re: [rules-users] Rules categorization/packages

2010-03-18 Thread Amit Kumar
I do have get/set methods for each attribute. There are some extra files
also which have some other functions.
The same model is working fine in 5.0 and 5.1, its only having issue in the
trunk and I wanted to use the trunk code if possible since it has support
for collect and accumulate in guided editor...

Thanks
Amit

2010/3/18 Esteban Aliverti esteban.alive...@gmail.com

 I added a comment to your jira entry. Please take a look.

 2010/3/17 Amit Kumar amitku...@gmail.com

  https://jira.jboss.org/jira/browse/GUVNOR-514
 Model is also there

 :)

 2010/3/17 Esteban Aliverti esteban.alive...@gmail.com

 It would be good too if you could provide us your model (or at least a
 part of it).

 Best,


 On Wed, Mar 17, 2010 at 3:24 AM, Toni Rikkola trikk...@redhat.comwrote:

 You can create a Jira for this and upload the jar file there.
 https://jira.jboss.org/jira/browse/GUVNOR

 We will take a look at it and fix it if it is a bug.

 Toni

 Amit Kumar wrote:
  Sorry for spamming today
  It does seem to be working after I add Any of the following or All
  of the following and then add the attributes to it. So workaround is
  there..
  But when I add There is a Equipment and add a attribute then it
  permits me to assign a variable to it
  like Equipment(eId : entityId)
  but it does not correctly give me that variable assigning capability
  in the Any of  or All of blocks .. so struck issue.
  Thanks,
  Amit
 
 
 
  On Tue, Mar 16, 2010 at 1:58 PM, Amit Kumar amitku...@gmail.com
  mailto:amitku...@gmail.com wrote:
 
  Ok I tried again.  :(
 
  In Equipment I only see manufacturer
  In EquipmentCA I also only see manufacturer
  In Software I do not see anything.
 
  It contains many more classes
 
  Not sure what I am breaking.. but if you want I can send you my
  model files to you (in case you want to try). Do not want to post
  it on alias
 
  Thanks
  Amit
 
 
  2010/3/16 Esteban Aliverti esteban.alive...@gmail.com
  mailto:esteban.alive...@gmail.com
 
  But, which fields didn't appear in guvnor?
 
  2010/3/16 Amit Kumar amitku...@gmail.com
  mailto:amitku...@gmail.com
 
  Probably because of OStype and OSversion. Let me fix that
  and convert to lower case and try. I remember facing this
  issue sometime back with 5.0
  Thanks
  Amit
 
  On Tue, Mar 16, 2010 at 9:17 AM, Amit Kumar
  amitku...@gmail.com mailto:amitku...@gmail.com wrote:
 
  Its coming from a JAR
  Thanks
  Amit
 
  Equipment
entityIdint
partNumber  String
manufacturerString
owningEntityId  int
 
 
 
  Software
entityIdint
OSType  String
OSVersion   String
imageName   String
 
 
 
 
 
 
  EquipmentCA extends Equipment
hostnameString
productName String
productFamily   String
productId   String
 
  2010/3/16 Esteban Aliverti 
 esteban.alive...@gmail.com
  mailto:esteban.alive...@gmail.com
 
  Are you importing your model from a .jar or using
  a Declarative Model?
 
 
  On Tue, Mar 16, 2010 at 6:28 AM, Toni Rikkola
  trikk...@redhat.com mailto:trikk...@redhat.com
 
  wrote:
 
  Hi,
 
  Its possible that there are some bugs in the
  snapshots. Can you tell me
  what your model looks like?
 
  Toni
 
  Amit Kumar wrote:
   The latest builds seem to be no good for
 guvnor
   They do seem rich in features .. especially
  support for
   collect/accumulate in guvnor along with
  inbox and global packages.
  
   But But But.. on adding a fact in the
  when/then clause then all the
   attributes of the facts are not coming ..
  some attributes come.. not
   all of them.
   I am picking it from here
  
 
 https://hudson.jboss.org/hudson/job/drools/lastSuccessfulBuild/artifact/trunk/target/
   Any other place I can look :)
  
   Thanks
   Amit
  
   On Mon, 

Re: [rules-users] Rules categorization/packages

2010-03-16 Thread Toni Rikkola
Hi,

Its possible that there are some bugs in the snapshots. Can you tell me 
what your model looks like?

Toni

Amit Kumar wrote:
 The latest builds seem to be no good for guvnor
 They do seem rich in features .. especially support for 
 collect/accumulate in guvnor along with inbox and global packages.
  
 But But But.. on adding a fact in the when/then clause then all the 
 attributes of the facts are not coming .. some attributes come.. not 
 all of them.
 I am picking it from here
 https://hudson.jboss.org/hudson/job/drools/lastSuccessfulBuild/artifact/trunk/target/
 Any other place I can look :)
  
 Thanks
 Amit

 On Mon, Feb 22, 2010 at 8:54 AM, Amit Kumar amitku...@gmail.com 
 mailto:amitku...@gmail.com wrote:

 Thanks Jervis!!

 On Sun, Feb 21, 2010 at 7:05 PM, Jervisliu j...@redhat.com
 mailto:j...@redhat.com wrote:

 A new feature called Sharable artifacts/Global artifacts will be
 available in Drools 5.1. This feature allows you share an
 asset among
 different packages. It also creates a global area (you can
 consider it
 as a global package). Potentially you can promote an asset
 that you
 think is more appropriate to be defined in a global scope from
 your
 current package to the global area, so that this global asset
 can be
 reused by every package. This feature is already on trunk,
 maybe you
 want to give it a try. Any comments or feedbacks will be highly
 appreciated.

 Cheers,
 Jervis


 Amit Kumar wrote:
  Hello All,
 
  I am looking to organize the rules in different categories.
 But for
  distribution purposes We are creating packages for different
  roles/processing phases
 
  So a rule will reside in one pckage but for navigation it
 can belong
  to multiple categories
 
  So packages are like Shirts, Pants, Shoes, Sweaters
  Categories are Color, Material, Size, Gender and those have sub
  categories witin them
 
  We have rules which will device the category of the item
  Like red rule, blue rule, cloth rule, leather rule
 
  Now the problem we are facing is for category rules is if I
 define the
  rule in Shirt package .. then I will not be able ot use it
 in Pant
  package.. Will have to redefine it.
 
  The other problem in this scenario is If I have a price rule
 in Shirt
  package and the category is Blue Color and XL Size then
 I will
  have to put it in both categories
  When I put the Blue Rule on Blue Category and XL Rule
 on XL
  Category  and I put the rule in both categories.. will it
 be an and
  relationship or will be an OR
 
  Regards,
  Amit
 
 
 
 
  ___
  rules-users mailing list
  rules-users@lists.jboss.org mailto:rules-users@lists.jboss.org
  https://lists.jboss.org/mailman/listinfo/rules-users
 

 ___
 rules-users mailing list
 rules-users@lists.jboss.org mailto: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] Rules categorization/packages

2010-03-16 Thread Esteban Aliverti
Are you importing your model from a .jar or using a Declarative Model?

On Tue, Mar 16, 2010 at 6:28 AM, Toni Rikkola trikk...@redhat.com wrote:

 Hi,

 Its possible that there are some bugs in the snapshots. Can you tell me
 what your model looks like?

 Toni

 Amit Kumar wrote:
  The latest builds seem to be no good for guvnor
  They do seem rich in features .. especially support for
  collect/accumulate in guvnor along with inbox and global packages.
 
  But But But.. on adding a fact in the when/then clause then all the
  attributes of the facts are not coming .. some attributes come.. not
  all of them.
  I am picking it from here
 
 https://hudson.jboss.org/hudson/job/drools/lastSuccessfulBuild/artifact/trunk/target/
  Any other place I can look :)
 
  Thanks
  Amit
 
  On Mon, Feb 22, 2010 at 8:54 AM, Amit Kumar amitku...@gmail.com
  mailto:amitku...@gmail.com wrote:
 
  Thanks Jervis!!
 
  On Sun, Feb 21, 2010 at 7:05 PM, Jervisliu j...@redhat.com
  mailto:j...@redhat.com wrote:
 
  A new feature called Sharable artifacts/Global artifacts will
 be
  available in Drools 5.1. This feature allows you share an
  asset among
  different packages. It also creates a global area (you can
  consider it
  as a global package). Potentially you can promote an asset
  that you
  think is more appropriate to be defined in a global scope from
  your
  current package to the global area, so that this global asset
  can be
  reused by every package. This feature is already on trunk,
  maybe you
  want to give it a try. Any comments or feedbacks will be highly
  appreciated.
 
  Cheers,
  Jervis
 
 
  Amit Kumar wrote:
   Hello All,
  
   I am looking to organize the rules in different categories.
  But for
   distribution purposes We are creating packages for different
   roles/processing phases
  
   So a rule will reside in one pckage but for navigation it
  can belong
   to multiple categories
  
   So packages are like Shirts, Pants, Shoes, Sweaters
   Categories are Color, Material, Size, Gender and those have sub
   categories witin them
  
   We have rules which will device the category of the item
   Like red rule, blue rule, cloth rule, leather rule
  
   Now the problem we are facing is for category rules is if I
  define the
   rule in Shirt package .. then I will not be able ot use it
  in Pant
   package.. Will have to redefine it.
  
   The other problem in this scenario is If I have a price rule
  in Shirt
   package and the category is Blue Color and XL Size then
  I will
   have to put it in both categories
   When I put the Blue Rule on Blue Category and XL Rule
  on XL
   Category  and I put the rule in both categories.. will it
  be an and
   relationship or will be an OR
  
   Regards,
   Amit
  
 
 
  
   ___
   rules-users mailing list
   rules-users@lists.jboss.org mailto:
 rules-users@lists.jboss.org
   https://lists.jboss.org/mailman/listinfo/rules-users
  
 
  ___
  rules-users mailing list
  rules-users@lists.jboss.org mailto: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




-- 


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


Re: [rules-users] Rules categorization/packages

2010-03-16 Thread Amit Kumar
Its coming from a JAR
Thanks
Amit

Equipment   entityId int   partNumber String   manufacturer String
owningEntityId int   Software   entityId int   OSType String   OSVersion
String   imageName String EquipmentCA extends Equipment   hostname
String   productName String   productFamily String   productId String
2010/3/16 Esteban Aliverti esteban.alive...@gmail.com

 Are you importing your model from a .jar or using a Declarative Model?


 On Tue, Mar 16, 2010 at 6:28 AM, Toni Rikkola trikk...@redhat.com wrote:

 Hi,

 Its possible that there are some bugs in the snapshots. Can you tell me
 what your model looks like?

 Toni

 Amit Kumar wrote:
  The latest builds seem to be no good for guvnor
  They do seem rich in features .. especially support for
  collect/accumulate in guvnor along with inbox and global packages.
 
  But But But.. on adding a fact in the when/then clause then all the
  attributes of the facts are not coming .. some attributes come.. not
  all of them.
  I am picking it from here
 
 https://hudson.jboss.org/hudson/job/drools/lastSuccessfulBuild/artifact/trunk/target/
  Any other place I can look :)
 
  Thanks
  Amit
 
  On Mon, Feb 22, 2010 at 8:54 AM, Amit Kumar amitku...@gmail.com
  mailto:amitku...@gmail.com wrote:
 
  Thanks Jervis!!
 
  On Sun, Feb 21, 2010 at 7:05 PM, Jervisliu j...@redhat.com
   mailto:j...@redhat.com wrote:
 
  A new feature called Sharable artifacts/Global artifacts will
 be
  available in Drools 5.1. This feature allows you share an
  asset among
  different packages. It also creates a global area (you can
  consider it
  as a global package). Potentially you can promote an asset
  that you
  think is more appropriate to be defined in a global scope from
  your
  current package to the global area, so that this global asset
  can be
  reused by every package. This feature is already on trunk,
  maybe you
  want to give it a try. Any comments or feedbacks will be highly
  appreciated.
 
  Cheers,
  Jervis
 
 
  Amit Kumar wrote:
   Hello All,
  
   I am looking to organize the rules in different categories.
  But for
   distribution purposes We are creating packages for different
   roles/processing phases
  
   So a rule will reside in one pckage but for navigation it
  can belong
   to multiple categories
  
   So packages are like Shirts, Pants, Shoes, Sweaters
   Categories are Color, Material, Size, Gender and those have
 sub
   categories witin them
  
   We have rules which will device the category of the item
   Like red rule, blue rule, cloth rule, leather rule
  
   Now the problem we are facing is for category rules is if I
  define the
   rule in Shirt package .. then I will not be able ot use it
  in Pant
   package.. Will have to redefine it.
  
   The other problem in this scenario is If I have a price rule
  in Shirt
   package and the category is Blue Color and XL Size then
  I will
   have to put it in both categories
   When I put the Blue Rule on Blue Category and XL Rule
  on XL
   Category  and I put the rule in both categories.. will it
  be an and
   relationship or will be an OR
  
   Regards,
   Amit
  
 
 
  
   ___
   rules-users mailing list
   rules-users@lists.jboss.org mailto:
 rules-users@lists.jboss.org
   https://lists.jboss.org/mailman/listinfo/rules-users
  
 
  ___
  rules-users mailing list
  rules-users@lists.jboss.org mailto: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




 --
 

 Esteban Aliverti

 ___
 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] Rules categorization/packages

2010-03-16 Thread Amit Kumar
Probably because of OStype and OSversion. Let me fix that and convert to
lower case and try. I remember facing this issue sometime back with 5.0
Thanks
Amit

On Tue, Mar 16, 2010 at 9:17 AM, Amit Kumar amitku...@gmail.com wrote:

 Its coming from a JAR
 Thanks
 Amit

 Equipment   entityId int   partNumber String   manufacturer String
   owningEntityId int   Software   entityId int   OSType String
 OSVersion String   imageName String EquipmentCA extends Equipment
   hostname String   productName String   productFamily String   productId
 String
 2010/3/16 Esteban Aliverti esteban.alive...@gmail.com

 Are you importing your model from a .jar or using a Declarative Model?


 On Tue, Mar 16, 2010 at 6:28 AM, Toni Rikkola trikk...@redhat.comwrote:

 Hi,

 Its possible that there are some bugs in the snapshots. Can you tell me
 what your model looks like?

 Toni

 Amit Kumar wrote:
  The latest builds seem to be no good for guvnor
  They do seem rich in features .. especially support for
  collect/accumulate in guvnor along with inbox and global packages.
 
  But But But.. on adding a fact in the when/then clause then all the
  attributes of the facts are not coming .. some attributes come.. not
  all of them.
  I am picking it from here
 
 https://hudson.jboss.org/hudson/job/drools/lastSuccessfulBuild/artifact/trunk/target/
  Any other place I can look :)
 
  Thanks
  Amit
 
  On Mon, Feb 22, 2010 at 8:54 AM, Amit Kumar amitku...@gmail.com
  mailto:amitku...@gmail.com wrote:
 
  Thanks Jervis!!
 
  On Sun, Feb 21, 2010 at 7:05 PM, Jervisliu j...@redhat.com
   mailto:j...@redhat.com wrote:
 
  A new feature called Sharable artifacts/Global artifacts will
 be
  available in Drools 5.1. This feature allows you share an
  asset among
  different packages. It also creates a global area (you can
  consider it
  as a global package). Potentially you can promote an asset
  that you
  think is more appropriate to be defined in a global scope from
  your
  current package to the global area, so that this global asset
  can be
  reused by every package. This feature is already on trunk,
  maybe you
  want to give it a try. Any comments or feedbacks will be highly
  appreciated.
 
  Cheers,
  Jervis
 
 
  Amit Kumar wrote:
   Hello All,
  
   I am looking to organize the rules in different categories.
  But for
   distribution purposes We are creating packages for different
   roles/processing phases
  
   So a rule will reside in one pckage but for navigation it
  can belong
   to multiple categories
  
   So packages are like Shirts, Pants, Shoes, Sweaters
   Categories are Color, Material, Size, Gender and those have
 sub
   categories witin them
  
   We have rules which will device the category of the item
   Like red rule, blue rule, cloth rule, leather rule
  
   Now the problem we are facing is for category rules is if I
  define the
   rule in Shirt package .. then I will not be able ot use it
  in Pant
   package.. Will have to redefine it.
  
   The other problem in this scenario is If I have a price rule
  in Shirt
   package and the category is Blue Color and XL Size then
  I will
   have to put it in both categories
   When I put the Blue Rule on Blue Category and XL Rule
  on XL
   Category  and I put the rule in both categories.. will it
  be an and
   relationship or will be an OR
  
   Regards,
   Amit
  
 
 
  
   ___
   rules-users mailing list
   rules-users@lists.jboss.org mailto:
 rules-users@lists.jboss.org
   https://lists.jboss.org/mailman/listinfo/rules-users
  
 
  ___
  rules-users mailing list
  rules-users@lists.jboss.org mailto:
 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




 --
 

 Esteban Aliverti

 ___
 rules-users mailing list
 rules-users@lists.jboss.org
 

Re: [rules-users] Rules categorization/packages

2010-03-16 Thread Esteban Aliverti
And let me guess... The fields you are not seeing are those from Equipment
when you have an EquipmentCA?

2010/3/16 Amit Kumar amitku...@gmail.com

 Its coming from a JAR
 Thanks
 Amit

  EquipmententityId int   partNumber Stringmanufacturer
 StringowningEntityId intSoftwareentityId int   OSType
 StringOSVersion StringimageName String  EquipmentCA extends
 Equipmenthostname StringproductName StringproductFamily
 StringproductId String
 2010/3/16 Esteban Aliverti esteban.alive...@gmail.com

 Are you importing your model from a .jar or using a Declarative Model?


 On Tue, Mar 16, 2010 at 6:28 AM, Toni Rikkola trikk...@redhat.comwrote:

 Hi,

 Its possible that there are some bugs in the snapshots. Can you tell me
 what your model looks like?

 Toni

 Amit Kumar wrote:
  The latest builds seem to be no good for guvnor
  They do seem rich in features .. especially support for
  collect/accumulate in guvnor along with inbox and global packages.
 
  But But But.. on adding a fact in the when/then clause then all the
  attributes of the facts are not coming .. some attributes come.. not
  all of them.
  I am picking it from here
 
 https://hudson.jboss.org/hudson/job/drools/lastSuccessfulBuild/artifact/trunk/target/
  Any other place I can look :)
 
  Thanks
  Amit
 
  On Mon, Feb 22, 2010 at 8:54 AM, Amit Kumar amitku...@gmail.com
  mailto:amitku...@gmail.com wrote:
 
  Thanks Jervis!!
 
  On Sun, Feb 21, 2010 at 7:05 PM, Jervisliu j...@redhat.com
mailto:j...@redhat.com wrote:
 
  A new feature called Sharable artifacts/Global artifacts will
 be
  available in Drools 5.1. This feature allows you share an
  asset among
  different packages. It also creates a global area (you can
  consider it
  as a global package). Potentially you can promote an asset
  that you
  think is more appropriate to be defined in a global scope from
  your
  current package to the global area, so that this global asset
  can be
  reused by every package. This feature is already on trunk,
  maybe you
  want to give it a try. Any comments or feedbacks will be highly
  appreciated.
 
  Cheers,
  Jervis
 
 
  Amit Kumar wrote:
   Hello All,
  
   I am looking to organize the rules in different categories.
  But for
   distribution purposes We are creating packages for different
   roles/processing phases
  
   So a rule will reside in one pckage but for navigation it
  can belong
   to multiple categories
  
   So packages are like Shirts, Pants, Shoes, Sweaters
   Categories are Color, Material, Size, Gender and those have
 sub
   categories witin them
  
   We have rules which will device the category of the item
   Like red rule, blue rule, cloth rule, leather rule
  
   Now the problem we are facing is for category rules is if I
  define the
   rule in Shirt package .. then I will not be able ot use it
  in Pant
   package.. Will have to redefine it.
  
   The other problem in this scenario is If I have a price rule
  in Shirt
   package and the category is Blue Color and XL Size then
  I will
   have to put it in both categories
   When I put the Blue Rule on Blue Category and XL Rule
  on XL
   Category  and I put the rule in both categories.. will it
  be an and
   relationship or will be an OR
  
   Regards,
   Amit
  
 
 
  
   ___
   rules-users mailing list
   rules-users@lists.jboss.org mailto:
 rules-users@lists.jboss.org
   https://lists.jboss.org/mailman/listinfo/rules-users
  
 
  ___
  rules-users mailing list
  rules-users@lists.jboss.org mailto:
 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




 --
 

 Esteban Aliverti

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



 

Re: [rules-users] Rules categorization/packages

2010-03-16 Thread Esteban Aliverti
But, which fields didn't appear in guvnor?

2010/3/16 Amit Kumar amitku...@gmail.com

 Probably because of OStype and OSversion. Let me fix that and convert to
 lower case and try. I remember facing this issue sometime back with 5.0
 Thanks
 Amit

 On Tue, Mar 16, 2010 at 9:17 AM, Amit Kumar amitku...@gmail.com wrote:

 Its coming from a JAR
 Thanks
 Amit

  EquipmententityId int   partNumber String   manufacturer
 String   owningEntityId int   Software   entityId int   OSType String
   OSVersion String   imageName String EquipmentCA extends Equipment
 hostname String   productName String   productFamily String
 productId String
 2010/3/16 Esteban Aliverti esteban.alive...@gmail.com

 Are you importing your model from a .jar or using a Declarative Model?


 On Tue, Mar 16, 2010 at 6:28 AM, Toni Rikkola trikk...@redhat.comwrote:

 Hi,

 Its possible that there are some bugs in the snapshots. Can you tell me
 what your model looks like?

 Toni

 Amit Kumar wrote:
  The latest builds seem to be no good for guvnor
  They do seem rich in features .. especially support for
  collect/accumulate in guvnor along with inbox and global packages.
 
  But But But.. on adding a fact in the when/then clause then all the
  attributes of the facts are not coming .. some attributes come.. not
  all of them.
  I am picking it from here
 
 https://hudson.jboss.org/hudson/job/drools/lastSuccessfulBuild/artifact/trunk/target/
  Any other place I can look :)
 
  Thanks
  Amit
 
  On Mon, Feb 22, 2010 at 8:54 AM, Amit Kumar amitku...@gmail.com
  mailto:amitku...@gmail.com wrote:
 
  Thanks Jervis!!
 
  On Sun, Feb 21, 2010 at 7:05 PM, Jervisliu j...@redhat.com
mailto:j...@redhat.com wrote:
 
  A new feature called Sharable artifacts/Global artifacts
 will be
  available in Drools 5.1. This feature allows you share an
  asset among
  different packages. It also creates a global area (you can
  consider it
  as a global package). Potentially you can promote an asset
  that you
  think is more appropriate to be defined in a global scope from
  your
  current package to the global area, so that this global asset
  can be
  reused by every package. This feature is already on trunk,
  maybe you
  want to give it a try. Any comments or feedbacks will be
 highly
  appreciated.
 
  Cheers,
  Jervis
 
 
  Amit Kumar wrote:
   Hello All,
  
   I am looking to organize the rules in different categories.
  But for
   distribution purposes We are creating packages for different
   roles/processing phases
  
   So a rule will reside in one pckage but for navigation it
  can belong
   to multiple categories
  
   So packages are like Shirts, Pants, Shoes, Sweaters
   Categories are Color, Material, Size, Gender and those have
 sub
   categories witin them
  
   We have rules which will device the category of the item
   Like red rule, blue rule, cloth rule, leather rule
  
   Now the problem we are facing is for category rules is if I
  define the
   rule in Shirt package .. then I will not be able ot use it
  in Pant
   package.. Will have to redefine it.
  
   The other problem in this scenario is If I have a price rule
  in Shirt
   package and the category is Blue Color and XL Size then
  I will
   have to put it in both categories
   When I put the Blue Rule on Blue Category and XL Rule
  on XL
   Category  and I put the rule in both categories.. will it
  be an and
   relationship or will be an OR
  
   Regards,
   Amit
  
 
 
  
   ___
   rules-users mailing list
   rules-users@lists.jboss.org mailto:
 rules-users@lists.jboss.org
   https://lists.jboss.org/mailman/listinfo/rules-users
  
 
  ___
  rules-users mailing list
  rules-users@lists.jboss.org mailto:
 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




 --
 

 Esteban Aliverti

 

Re: [rules-users] Rules categorization/packages

2010-03-15 Thread Amit Kumar
The latest builds seem to be no good for guvnor
They do seem rich in features .. especially support for collect/accumulate
in guvnor along with inbox and global packages.

But But But.. on adding a fact in the when/then clause then all the
attributes of the facts are not coming .. some attributes come.. not all of
them.
I am picking it from here
https://hudson.jboss.org/hudson/job/drools/lastSuccessfulBuild/artifact/trunk/target/
Any other place I can look :)

Thanks
Amit

On Mon, Feb 22, 2010 at 8:54 AM, Amit Kumar amitku...@gmail.com wrote:

 Thanks Jervis!!

   On Sun, Feb 21, 2010 at 7:05 PM, Jervisliu j...@redhat.com wrote:

 A new feature called Sharable artifacts/Global artifacts will be
 available in Drools 5.1. This feature allows you share an asset among
 different packages. It also creates a global area (you can consider it
 as a global package). Potentially you can promote an asset that you
 think is more appropriate to be defined in a global scope from your
 current package to the global area, so that this global asset can be
 reused by every package. This feature is already on trunk, maybe you
 want to give it a try. Any comments or feedbacks will be highly
 appreciated.

 Cheers,
 Jervis


 Amit Kumar wrote:
  Hello All,
 
  I am looking to organize the rules in different categories. But for
  distribution purposes We are creating packages for different
  roles/processing phases
 
  So a rule will reside in one pckage but for navigation it can belong
  to multiple categories
 
  So packages are like Shirts, Pants, Shoes, Sweaters
  Categories are Color, Material, Size, Gender and those have sub
  categories witin them
 
  We have rules which will device the category of the item
  Like red rule, blue rule, cloth rule, leather rule
 
  Now the problem we are facing is for category rules is if I define the
  rule in Shirt package .. then I will not be able ot use it in Pant
  package.. Will have to redefine it.
 
  The other problem in this scenario is If I have a price rule in Shirt
  package and the category is Blue Color and XL Size then I will
  have to put it in both categories
  When I put the Blue Rule on Blue Category and XL Rule on XL
  Category  and I put the rule in both categories.. will it be an and
  relationship or will be an OR
 
  Regards,
  Amit
  
  
  ___
  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] Rules categorization/packages

2010-02-22 Thread Amit Kumar
Thanks Jervis!!

On Sun, Feb 21, 2010 at 7:05 PM, Jervisliu j...@redhat.com wrote:

 A new feature called Sharable artifacts/Global artifacts will be
 available in Drools 5.1. This feature allows you share an asset among
 different packages. It also creates a global area (you can consider it
 as a global package). Potentially you can promote an asset that you
 think is more appropriate to be defined in a global scope from your
 current package to the global area, so that this global asset can be
 reused by every package. This feature is already on trunk, maybe you
 want to give it a try. Any comments or feedbacks will be highly
 appreciated.

 Cheers,
 Jervis


 Amit Kumar wrote:
  Hello All,
 
  I am looking to organize the rules in different categories. But for
  distribution purposes We are creating packages for different
  roles/processing phases
 
  So a rule will reside in one pckage but for navigation it can belong
  to multiple categories
 
  So packages are like Shirts, Pants, Shoes, Sweaters
  Categories are Color, Material, Size, Gender and those have sub
  categories witin them
 
  We have rules which will device the category of the item
  Like red rule, blue rule, cloth rule, leather rule
 
  Now the problem we are facing is for category rules is if I define the
  rule in Shirt package .. then I will not be able ot use it in Pant
  package.. Will have to redefine it.
 
  The other problem in this scenario is If I have a price rule in Shirt
  package and the category is Blue Color and XL Size then I will
  have to put it in both categories
  When I put the Blue Rule on Blue Category and XL Rule on XL
  Category  and I put the rule in both categories.. will it be an and
  relationship or will be an OR
 
  Regards,
  Amit
  
  
  ___
  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] Rules categorization/packages

2010-02-21 Thread Jervisliu
A new feature called Sharable artifacts/Global artifacts will be 
available in Drools 5.1. This feature allows you share an asset among 
different packages. It also creates a global area (you can consider it 
as a global package). Potentially you can promote an asset that you 
think is more appropriate to be defined in a global scope from your 
current package to the global area, so that this global asset can be 
reused by every package. This feature is already on trunk, maybe you 
want to give it a try. Any comments or feedbacks will be highly 
appreciated.

Cheers,
Jervis


Amit Kumar wrote:
 Hello All,
  
 I am looking to organize the rules in different categories. But for 
 distribution purposes We are creating packages for different 
 roles/processing phases
  
 So a rule will reside in one pckage but for navigation it can belong 
 to multiple categories
  
 So packages are like Shirts, Pants, Shoes, Sweaters
 Categories are Color, Material, Size, Gender and those have sub 
 categories witin them
  
 We have rules which will device the category of the item
 Like red rule, blue rule, cloth rule, leather rule
  
 Now the problem we are facing is for category rules is if I define the 
 rule in Shirt package .. then I will not be able ot use it in Pant 
 package.. Will have to redefine it.
  
 The other problem in this scenario is If I have a price rule in Shirt 
 package and the category is Blue Color and XL Size then I will 
 have to put it in both categories
 When I put the Blue Rule on Blue Category and XL Rule on XL 
 Category  and I put the rule in both categories.. will it be an and 
 relationship or will be an OR
  
 Regards,
 Amit
 

 ___
 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] Rules categorization/packages

2010-02-20 Thread Amit Kumar
Hello All,

I am looking to organize the rules in different categories. But for
distribution purposes We are creating packages for different
roles/processing phases

So a rule will reside in one pckage but for navigation it can belong to
multiple categories

So packages are like Shirts, Pants, Shoes, Sweaters
Categories are Color, Material, Size, Gender and those have sub categories
witin them

We have rules which will device the category of the item
Like red rule, blue rule, cloth rule, leather rule

Now the problem we are facing is for category rules is if I define the rule
in Shirt package .. then I will not be able ot use it in Pant package.. Will
have to redefine it.

The other problem in this scenario is If I have a price rule in Shirt
package and the category is Blue Color and XL Size then I will have to
put it in both categories
When I put the Blue Rule on Blue Category and XL Rule on XL
Category  and I put the rule in both categories.. will it be an and
relationship or will be an OR

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