A data processing system has the following construction in order to achieve high speed data processing with reduced memory capacity. The instructions include template based user defined instructions. The script is provided to a robotic prescription dispensary operable to recognize either the human readable description or the machine readable description, and validate and dispense the drug accordingly. In response to the notifying, the execution state of the software application is automatically changed.