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

  []s
  Edson

2008/2/13, ST <[EMAIL PROTECTED]>:
>
> 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
> [email protected]
> 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
_______________________________________________
rules-users mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/rules-users

Reply via email to