Comp150CPA: Clouds and Power-Aware Computing
Classroom Exercise 19
Event/Condition/Action Modeling
Spring 2011

group member 1: ____________________________ login: ______________

group member 2: ____________________________ login: ______________

group member 3: ____________________________ login: ______________

group member 4: ____________________________ login: ______________

group member 5: ____________________________ login: ______________

In class we described Event/Condition/Action modeling as the basis for use of Free Let's explore this more.

  1. Suppose a business sells cleaning services. A customer asks for a cleaning job on a specific day, after which a manager assigns a staff member to do the job. The staff member either does the cleaning and fills out a time card, or does not show up and reports the task as not done. The manager bills the customer, as appropriate, after which the billing department sends a bill. Model the state transitions for one job as an ECA state transition diagram.
  2. Describe the profiles for people in the scenerio above and what they should be able to do.

  3. Describe a data format for a job with appropriate state information to maintain state and allow each profile to change state appropriately without interfering with the state changes for other profiles.

  4. (Advanced) It is possible to specify a datatype that has a limited list of options, e.g., one could define a variable "state" that only takes the values "accepted", "scheduled", "done", "paid", etc. In a profile-based access scheme, is this a good idea? Why or why not?