1. A method of defining a workflow comprised of objects, comprising: opening an application interface associated with one of a manufacturing execution system (MES) application, a product lifecycle management (PLM) application, an enterprise resource planning (ERP) application, or a human machine interface (HMI); in the application interface, defining a workflow comprising a plurality of tasks, wherein each task is defined as one or more objects; and in the application interface, activating a first control to automatically generate an executable script to be attached to one of the objects, wherein when a first event occurs the executable script executes; wherein the first event is associated with an event definition and/or event design window and/or dialog box that defines a first event trigger; wherein the first event is linked to other tasks and/or other workflows; wherein when the first event trigger occurs the linked task and/or the linked other workflow is launched by executing the generated executable script; wherein the application interface includes a workflow builder interface which invokes one or more application programming interface calls to construct and build the workflow, the tasks, and the scripts; and wherein the workflow builder interface is implemented in or interfaces with a plant model automation application for defining a workflow as an object oriented plant model wherein different aspects of the plant are modeled as objects, each object having attributes comprising at least one of temperature, state, pressure, and/or other values relating to its object; and further comprising: activating a second control to define a context of the first event wherein the second control automatically generates a second executable script to be attached to one of the objects, wherein when the first event occurs the second executable script executes.