jruizgit / rules

Durable Rules Engine
MIT License
1.14k stars 209 forks source link

how to call a custom nodejs function in durable? #369

Open codeneno opened 3 years ago

codeneno commented 3 years ago

var d = require('durable'); function abc(data){ console.log(data); } d.ruleset('test', function() { whenAll: m.subject == 'World' run:abc(m)//can't call this function });

d.post('test', {subject: 'World'});