Piper Push Cache Documentation Download Samples Contact  

NATS Publish Actor

The nats_publish actor publishes the record using the NATS messaging system. The delivery takes place asynchronously.

The only parameter is the subject that the JSON record will be published on. The subject is a template where patterns of the form are replaced by elements of the JSON record being published. The string inside the < and > characters are taken as a dot delimited path to a value in the record.

The task follows the first or only link to the next task. No link label is needed.

The JSON used to designate a nats_publish task in a flow description is:

    "task-x": {
        "actor": "nats_publish",
        "trace": false,
        "subject": "out..",
         "links": {
            "": "task-y"
        }
    }

Parameters the NATS publisher actor expects are:

subject The subject that the JSON record will be published on. The subject is a template where patterns of the form <a.b.c> are replaced by elements of the JSON record being published. The string inside the < and > characters are taken as a dot delimited path to a value in the JSON record.