Component /dat/lib/filter/counter
Counter will count the number of non control input documents received on its input port since being cleared. The count is output as a
value of a top level tag. The resulting XML document is sent to the output port upon receipt of a signal on the send or bod pins, or
receipt of a <cx:send> or <cx:end> control document on the input port. A counter is reset to zero upon reciept
of a signal on the clear or bod pins, or on the receipt of a <cx:clear> or <cx:begin> documents on the input port
Pins
- send a signal received on this pin will send the resulting document containing the current count to the output port.
- clear the counter will be reset to zero upon receipt of a signal on this pin.
- bod a signal received on this pin will send the resulting document containing the current count to the output port and reset the
counter to zero.
Ports
- input the counter in incremented by one upon reciept of a non control document on this port. A
<cx:send> or <cx:end> control document will send the result document to the output port. A <cx:clear> or <cx:begin> control document will reset the counter
to zero.
- output resulting XML document is sent to this port.
Properties
- type the top level tag to be used in the result document. If blank, "count" will be used.
Copyright 2000,2001 Data Access Technologies