Workflow Input - OnSet Script
You can add a script that will be executed when the Input Translator set the Input on your workflow.
An example of such a script would be as follows
function onSet(value /* Integer */) {
}
You will also have access to the Device Properties, Device Properties, Property Bag and state machines and can invoke Output Commands.