Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Transformer Specification

How this event is processed is defined by a pipe.

Code Block
languagejs
const transformer = {
    name: "transformer_name", 
    event_schema: "es11", //EventGrammar on which the transformer can act.
    dataset_schema: "ds23", //Dataset that this transformer which modify.
    config: {
        spawn((callback, receive) => {
            // send to parent
            callback('SOME_EVENT');

            // receive from parent
            receive((event) => {
            // handle event
            });

            // disposal
            return () => {
            /* do cleanup here */
            };
        }),
    }
}

How this event is processed is defined by a pipe