scriptSensor v0.0.9

Script sensors let you prototype and execute any script without a need to create a specific sensor. You have access to all waylay packages and task context (vai options) like any other sensor. Please be aware that script in the end must return either send(null, {observedState:“done”}) OR send(null, {observedState:“error”}) You should return back as the observed states either:

  • done
  • error

Required properties:

  • script

States:

  • done
  • error