title: drool validations for list of objects
body: <p>I have a list of pojo class objects containing 44 fields. Now i am Iterating the each object in java and passing it to the drool for validation. Is there any way to validate the entire list in drools. Sample code is </p>
  
  <pre><code>rule "RuleSerialNoContent"
  when
      droolRecord : DroolRecordBO(flowStatus==droolRecord.FLOW_PASS,
                                 serialNo.trim() not matches "^\\d{1,10}$" )
  then
      droolRecord.setRuleStatus(droolRecord.SERIAL_CONTENT_ERR+
                                " "+droolRecord.getSerialNo());
      droolRecord.setFlowStatus(droolRecord.FLOW_ERROR);
      update(droolRecord);
  end
  
  
  rule "RuleInstitutionIdLength"
  when
      droolRecord : DroolRecordBO(flowStatus==droolRecord.FLOW_PASS,
                                  institutionId.length() != 6 )
  then
      droolRecord.setRuleStatus(droolRecord.INSTITUTIONID_LENGTH_ERR);
      droolRecord.setFlowStatus(droolRecord.FLOW_ERROR);
      update(droolRecord);
  end
  </code></pre>