Docsity

Force - Clouds and Power Aware Computing - Lecture Notes, Study notes of Computer Science

Partial preview of the text

Download Force - Clouds and Power Aware Computing - Lecture Notes and more Study notes Computer Science in PDF only on Docsity!

AppEngine: entirely like a program BPEL: like a flowchart. BPMN: like an extension of a flowchart. So far, we've studied things that look awfully much like programs. Force.com: a completely different way to model processes. Claim: no coding! Today, we take a walk further out on a limb. A walk on the wild side Wednesday, April 20, 2011 2:08 PM Docsity.com

I managed to torture the Free version of Force.com into doing something useful, and… The feeling is mutual , I'm sure… Summary for today Summary for today Wednesday, April 14, 2010 2:11 PM Docsity.com

A leading vendor of cloud-based business apps. Based upon a completely different modeling process than BPMN (and a much older one). Key to SalesForce.com: Event-Condition-Action (ECA) modeling. SalesForce.com SalesForce.com Wednesday, April 14, 2010 2:10 PM Docsity.com

Originally, business process was defined through databases. transforms of data lifecycles of a particular record (ECA). "triggers": things that happen when a record is changed. Process consisted of no real databases objects "like" JDOs query language SOQL: "like" JDO queries. difference: define transformations of objects, not flow of actions. In force.com Roots of force.com Roots of force.com Wednesday, April 14, 2010 6:05 PM Docsity.com

ECA: Event-Condition-Action Event : something that happens Condition : some logical condition (that is a function of state). Action : some modification of state as a result. A state machine model of business In Force, ECA applies to individual objects, and "wraps" objects in a state machine. Which implies that objects get big, and are hard to break into pieces. ECA modeling ECA modeling Wednesday, April 14, 2010 2:13 PM Docsity.com

First step: what people "can do" with the system. Second step: what people "should do". In Force.com, you define data and permissible actions first, then events and conditions. First step: what people "should do" (without the "can" part). In BPMN, you define events and conditions first, then define data and actions from them. Almost precisely backward from what we've learned about modeling so far. Developing backwards Developing backwards Wednesday, April 14, 2010 2:27 PM Docsity.com

A Profile is a set of user capabilities, e.g., "ability to modify this or that object" A Role describes management hierarchy. Managers inherit the profiles of the people they manage. Each User is assigned a (data access) Profile and (optionally) a (business) Role. Profiles, Roles, and Users Profiles, Roles, and Users Wednesday, April 14, 2010 2:24 PM Docsity.com

Wednesday, April 20, 2011 4:44 PM Docsity.com

Case: purchase of an item Three entities: customer, billing department, shipping department. An example of ECA design ordered (but not paid) paid (but not shipped) shipped cancelled An item can be An example of ECA design Wednesday, April 14, 2010 3:09 PM Docsity.com

billing controls "paid" shipping controls "shipped" and "canceled" billing controls "canceled" An ECA model of process Wednesday, April 14, 2010 2:59 PM Docsity.com

Note that state is "factored" into variables changed by different principals. You might ask, why not create a variable "state" that can be "shipped", "paid", etc? A: then that variable would be writable to all entities, even those that have no "business" writing it. Sarbanes-Oxley act of 2002: businesses are accountable for enforcing regular processes. A strange idea Wednesday, April 14, 2010 6:24 PM Docsity.com

Decompose the object into a state vector of state components that are writeable to different entities. Basic principle of factoring: a different role requires a different state component: do not allow two roles access to the same component. Factoring an object Factoring an object Wednesday, April 20, 2011 2:26 PM Docsity.com

customer creates Order record, which is partially writeable to billing and shipping. billing can change 'paid' or 'cancelled' to true in Order record. shipping can change 'shipped' or 'returned' to true in Order record. (It is nonsense for customer or billing to set 'shipped' to true!) customer can only see personal records; billing and shipping can see all records. Profiles: customer, billing, shipping Profiles Wednesday, April 14, 2010 3:08 PM Docsity.com

Create a data object containing appropriate state. Set object to be created by customer, and viewed by billing and shipping. Grant limited rights to modify state to billing and shipping. Assign profiles to people who are customers, shippers, or billers. Also need a "manager override" in case things go wrong. Implementing ECA in Force.com Implementing ECA in Force.com Wednesday, April 14, 2010 3:13 PM Docsity.com