1. A method for evaluating a behavior of an entity, the method comprising: using a processor and a memory accessible to the processor in which computer program instructions are stored, wherein the instructions comprise distinct software modules including a complex event processing (CEP) engine, the processor operative under control of the instructions for: modeling a behavior of the entity as a state machine representation thereof, the state machine representation comprising states, transitions between states, and actions of the entity; converting the state machine representation of the behavior of the entity to a CEP model of the behavior of the entity; wherein the converting comprises defining a transition between multiple states of the state machine representation as a situation, and responsively to an occurrence of the transition generating an event in the CEP model that initiates a lifespan of the situation; processing the CEP model in the CEP engine; and responsively to processing the CEP model evaluating the behavior of the entity.