trigger, bridge up service and subscription document

Hi,

Could anyone give me an example on how to write a filter? What is the format and grammer? Or any detailed documnet?

I’m using a trigger to connect a service with a subscribed document, but have difficulty mapping the document’s fields into the service’s input fields.

Many thanks in advance!
Zhan