Patent ID: 7877727

Claim:
A method for application generation, comprising: providing a template for editing of a configuration file for a hierarchical state machine (HSM); employing the configuration file to define at least the HSM and to generate an intermediate version of the HSM, wherein the intermediate version of the HSM includes linked-lists corresponding to at least some elements of the configuration file, wherein the linked-list further comprises a top-state and at least one sub-state, said top-state comprising of information for traversing the linked-list and processing the sub-states and said sub-states comprising a pointer to a parent sub-state and an ID of the sub-state, wherein each sub-state of the HSM defines a linked-list of user interface (UI) elements, wherein the HSM is in a current child sub-state of a parent sub-state, wherein the parent sub-state defines a reaction element defining transition to a third sub-state in the HSM, and wherein the child sub-state of the intermediate version is enabled to pass by default an unconsumed event having an undefined state to transition to, to the parent sub-state of the child sub-state; and based on the intermediate version, enabling an event-state engine to transition from the child sub-state to the third sub-state in response to receiving an event that was unconsumed by the child sub-state and passed by default to the parent sub-state, further enabling the event-state engine to invoke at lest one user interface element associated with the third sub-state of the HSM for an application.