[rules-users] referencing two or more classes with the same name but in different packages

Edson Tirelli tirelli at post.com
Thu Feb 14 11:25:12 EST 2008


  Your approach is correct... what error do you see?

  []s
  Edson

2008/2/13, ST <super_thunder2 at hotmail.com>:
>
> Hi,
>
> Is it possible to reference two or more classes with the same name but in
> different packages in a DRL file?  For example if I have a class named
> Order
> but the class exists in two different packages.  One is
> customer.invoicing.Order the other is client.service.productcatalog.Order.
>
> I tried something like the following but got an error when the DRL file is
> parsed.
>
> rule "Customer Rule"
> when
>   o: customer.invoicing.Order()
> then
>   System.out.println("customer invoice order exists.");
>
>
> rule "Client Rule"
> when
>   o: client.service.productcatalog.Order()
> then
>   System.out.println("client order exists.");
>
> Thanks,
> ST
>
> _______________________________________________
> rules-users mailing list
> rules-users at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users
>



-- 
  Edson Tirelli
  JBoss Drools Core Development
  Office: +55 11 3529-6000
  Mobile: +55 11 9287-5646
  JBoss, a division of Red Hat @ www.jboss.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-users/attachments/20080214/a972969f/attachment.html 


More information about the rules-users mailing list