Home > Glossary

Script

Definition

Scripts are small programs written into a Workflow in a language called JavaScript. They are used to respond to defined events and provide more advanced functionality.




Example

When the Plymouth IoT Conveyor Belt sent a Message that a bearing reached a temperature of 425°, the Script within the Workflow compared that temperature value to a predefined threshold as set in a Device Specific Setting for the bearing overheating. It determined that the bearing was overheating and a Message should be sent to stop the belt before damage was done.