A Webhook is a way for one application to trigger in real time another application. Fluxweave supports receiving webhook calls from other systems - that will then trigger a Lua script - or calling a web API including webhooks in other systems.
See the webhook documentation for more details.
Life cycle events
Lua scripts can also be triggered based on life cycle events with the system.
The following lifecycle events are supported:
- Dispatch creation for a specific tracker
- User added to the org
- User added or removed from a program
- User added or removed from a group
- A user label applied
When a lifecycle event happens information about the event will be available through the
param function. The
mock function can be used to simulate this for test purposes.
Dispatch creation using a tracker
A script can be triggered when a dispatch is created for specific trackers.
mock("dispatchId", "819ae45f-71ae-4269-835e-44405b50c8ac"); local dispatchId = param("dispatchId")