Hi,
Just installed divolte and out of the box getting the default parameters working with no problem.
But unable to parse custom events.Even couldn't get the basic examples from documentation to work. Stuck on this for 3 days. please help.
Added following to Avsc:
{ "name": "fooField", "type": ["null", "string"], "default": null},
{ "name": "barField", "type": ["null", "int"], "default": null}
Added following to Groovy:
map eventParameters().value('foo') onto 'fooField'
map { parse eventParameters().value('bar') to int32 } onto 'barField'
And javascript call:
divolte.signal('myEvent', { foo: 'hello', bar: 42 });
The eventType is coming as expected. But the fooField and barField are coming null.
"eventType":"myEvent",
"fooField":null,"barField":null
Please any help greatly appreciated
Thanks,
Sridhar