<dtml-comment>
title:
connection_id:cmf_activity_sql_connection
max_rows:1
max_cache:100
cache_time:1
class_name:
class_file:
</dtml-comment>
<params>path
method_id
only_valid</params>
SELECT count(path) as message_count FROM
  message
WHERE
1 = 1
<dtml-if path> AND path = <dtml-sqlvar path type="string"></dtml-if>
<dtml-if method_id>AND method_id = <dtml-sqlvar method_id type="string"></dtml-if>
<dtml-if only_valid>AND processing_node > -2</dtml-if>

