Thanks againg for replying so quickly.
1. view source:
#created on: Mar 27, 2012
2. |
3. | #list any import classes here.
4. |
5. | import com.gpm.domain.*;
6. | import com.gpm.rules.vo.*;
7. |
8. |
9. | #declare any global variables here
10. | global DataDifferenceVO dataDifferenceVO;
11. |
12. |
13. | rule "Phone_AreaCode_Rule"
14. | when
15. | Phone( $areaCode1 : areaCode, $tc1 : phoneTypeCode .tc )
16. | Phone( areaCode == $areaCode1 , phoneTypeCode .tc != $tc1 )
17. | then
18. |
dataDifferenceVO.getDataDiffArray().add("Party/Phone/AreaCode");
19. | end
2. guvnor version is 5.2 final
3. actual class:
public class Phone {
@XmlElement(name = "PhoneKey")
protected String phoneKey;
@XmlElement(name = "PhoneTypeCode")
protected PhoneTypeCode phoneTypeCode;
@XmlElement(name = "AreaCode")
protected String areaCode;
@XmlElement(name = "DialNumber")
protected String dialNumber;
@XmlElement(name = "Ext")
protected String ext;
.
.
.
}
public class PhoneTypeCode {
@XmlValue
protected String value;
@XmlAttribute
protected String tc;
...}
--
View this message in context:
http://drools.46999.n3.nabble.com/drl-problem-tp3877814p3877957.html
Sent from the Drools: User forum mailing list archive at
Nabble.com.