Hello

I am facing one problem in writing drool rule which uses MVEL dialect.Incoming XML request look as shown below:

<b2b:PacketAttribute>
<b2b:Packet>
<b2b:AttributeName>SequenceNumber</b2b:AttributeName>
<b2b:AttributeValue>1</b2b:AttributeValue>
<b2b:Action>Add</b2b:Action>
</b2b:Packet>
<b2b:Packet>
<b2b:AttributeName>SequenceNumber</b2b:AttributeName>
<b2b:AttributeValue>2</b2b:AttributeValue>
<b2b:Action>Add</b2b:Action>
</b2b:Packet>
<b2b:Packet>
<b2b:AttributeName>SequenceNumber</b2b:AttributeName>
<b2b:AttributeValue>1</b2b:AttributeValue>
<b2b:Action>Add</b2b:Action>
</b2b:Packet>
<b2b:Packet>
<b2b:AttributeName>SequenceNumber</b2b:AttributeName>
<b2b:AttributeValue>1</b2b:AttributeValue>
<b2b:Action>Add</b2b:Action>
</b2b:Packet>
</b2b:PacketAttribute>

I need to write a rule which can validate if there are duplicate values for SequenceNumber attribute.Please help me in implmenting this rule.

Can this rule can be written and configured with Drool in JAVA dialect.

Thanks in Advance
-Animesh