Chapter Learning Objectives
Explain entity-relationship conceptual modeling notation in diagrammatic and grammar formats
Assign cardinalities to represent the participation of REA entities in prescribed relationships
Identify economic exchanges that form the core of business processes
Identify commitment events that lead to economic exchange events
Identify instigation events that lead to mutual commitment events
Identify resources involved in instigation, commitment, and economic events
Identify agents (internal and external) involved in instigation, commitment, and economic events
Create a conceptual model for a business process following the REA pattern
40 trang |
Chia sẻ: baothanh01 | Lượt xem: 941 | Lượt tải: 0
Bạn đang xem trước 20 trang tài liệu Bài giảng Enterprise information systems - Chapter 4: The REA Enterprise Ontology: Business Process Level Modeling, để xem tài liệu hoàn chỉnh bạn click vào nút DOWNLOAD ở trên
Chapter 4The REA Enterprise Ontology:Business Process Level ModelingAcknowledgement: Many of the slides for this chapter are adapted from class materials prepared by Professor William E. McCarthy at Michigan State UniversityChapter Learning ObjectivesExplain entity-relationship conceptual modeling notation in diagrammatic and grammar formats Assign cardinalities to represent the participation of REA entities in prescribed relationships Identify economic exchanges that form the core of business processes Identify commitment events that lead to economic exchange events Identify instigation events that lead to mutual commitment events Identify resources involved in instigation, commitment, and economic events Identify agents (internal and external) involved in instigation, commitment, and economic events Create a conceptual model for a business process following the REA pattern 2Conceptual Modeling ConstructsEntitiesSets of real world objects – things that have a separate existence, either physical or conceptualNote SETSRelationshipsSets of associations between entitiesAgain, note SETSDegrees of relationships3Example Entities and Relationships4Conceptual Modeling ConstructsAttributesCharacteristics or elementary properties of entities and/or relationshipsPrimary key attribute uniquely and universally identifies each instance of an entity or relationship setSimple versus composite attributesDerivable attributesStatic – will not change if new data is entered into systemVolatile – will change if new data is entered into system5Conceptual Modeling ConstructsParticipation Cardinalities (Min,Max)Minimum cardinality: expresses the minimum number of times one instance of an entity set must participate in a relationship. 0 = optional participation 1 = mandatory participationMaximum cardinality: expresses the maximum number of times one instance of an entity set may participate in a relationship 1 = one-time only participation N = as many times as needed, no restrictions6Conceptual Modeling ConstructsAbstraction MechanismsTypificationSpecification of a relationship between a set of objects and a category to which the objects could be assigned on the basis of shared characteristicsAllows storage of characteristics that apply at the category level of detailE.g. for student category, characteristics such as tuition rate per hour and maximum number of credits allowed per semester7Abstraction mechanisms, continuedGeneralizationSpecification of subclass-superclass relationships, I.e., “Is-A” relationshipsSubclass entities include contain more specific instances of superclass entitiesE.g. Instrument as a supertype, Woodwind Instrument, Brass Instrument, and Stringed Instrument as subtypesAre used when similar entity sets have enough shared attributes to warrant grouping them together, but they also have non-shared attributes that need to be stored The non-shared attribute values are null if the attribute is assigned to the superclass entity; generalization avoids this problem.Conceptual Modeling Constructs8Conceptual Modeling NotationsMultiple notations are used to communicate the same conceptual modeling conceptsJust as people across the globe speak multiple languages to communicate the same general concepts – that’s life!People who are multi-lingual in life have an advantage over those who only speak one languagePeople who learn multiple conceptual modeling notations have an advantage over those who only learn one9Entity-Relationship (ER) Grammar notationEntity: ENTITY NAMEAttributes: ATTRIBUTE NAMESIdentifiers: PRIMARY KEY ATTRIBUTERelationship: RELATIONSHIP NAMEConnected entities: (min,max) ENTITY1 (min,max) ENTITY2Attributes: ATTRIBUTE NAMES (if any)Objects are often stored in alphabetical order according to entity and relationship names, with all entities first, then all relationships Notation is sometimes called “BNF Grammar” format (Backus-Naur Form), after its creators, Backus and Naur.10Entity-Relationship (ER) Diagram NotationThe ER Diagram is an alternative means for representing the same constructs as in the ER GrammarMost conceptual models are created with some version of the ER DiagramSeveral variations exist, and notation (especially for cardinalities) differs between the variations11Conceptual Modeling Notation: Entities ER Grammars list entities (usually alphabetically) by name, each name is preceded by the word Entity and a colon, i.e. Entity: name of entityER Diagrams portray entities as rectangles (each rectangle is labeled with the entity name)12Examples: Customer, SaleER Grammar formatEntity: CustomerEntity: SaleER Diagram formatCustomerSale13Conceptual Modeling Notation: RelationshipsER Grammars list relationships (usually alphabetically) by name, with the word Relationship and a colon, i.e., Relationship: name of relationship, followed by the words Connected Entities: and the names of the related entitiesER Diagrams portray relationships as diamonds attached by straight lines to the entities for which the relationship depicts an association.14Example: Sale IS-MADE-TO CustomerER Grammar format Relationship: IS-MADE-TOConnected entities: (1,1) Sale (0,N) CustomerER Diagram formatCustomerSaleis made to15Conceptual Modeling Notation: Attributes ER Grammars list attributes by name within entity and/or relationship descriptions. The name of the primary key attribute(s) is also included after the word Identifiers and a colon.ER Diagrams depict attributes with small circles attached by short lines to the applicable entities and/or relationships. The circles for primary key attributes are darkened. 16Example: Customer CharacteristicsIn ER grammar formatIn ER diagram formatEntity: CustomerAttributes: ID# Customer_Name Customer_PhoneIdentifiers: ID#CustomerID #NamePhone17Conceptual Modeling Notation: Participation CardinalitiesER Grammars incorporate participation cardinalities into the relationship descriptions. The participation cardinalities that apply to each entity in the relationship appear next to each entity name in the Connected Entities: statement.ER Diagrams include participation cardinalities as labels on the lines between the entities and the relationships for which the participation cardinalities apply. 18Example: Employee/Department cardinalitiesEmployees are not necessarily assigned to departments Minimum participation of employee = 0Every department has at least one employee assigned to it Minimum participation of department = 1An employee can work for no more than one department Maximum participation of employee = 1A department may have many employees assigned to itMaximum participation of department = N19Example (continued): Employee/Department CardinalitiesIn ER Grammar formatRelationship: Assigned-toConnected Entities: (0,1) Employee (1,N) DepartmentIn ER Diagram formatDepartmentEmployeeAssigned to(0,1)(1,N)20Comparison of Cardinality NotationsThe same 4 questions are asked; the only difference in the “languages” is where the answers are placed and what symbols are used to represent the answers21Interpret cardinalities: Exercise 1Q1: Can at least one sale exist in the database without a related instance of cash receipt?Q2: Can at least one sale in the database relate to multiple instances of cash receipt? In other words, all sales are paid for immediately with cash, and sales are the company’s only source of cashNo – 1 min on saleNo – 1 max on saleQ3: Can at least one cash receipt exist in the database without a related instance of sale?No – 1 min on cash receiptQ4: Can at least one cash receipt in the database relate to multiple instances of sale? No – 1 max on cash receipt22Interpret Cardinalities: Exercise 2In other words, sales may be made on credit with no partial payments or combined payments accepted, and sales are the company’s only source of cashQ1: Can at least one sale exist in the database without a related instance of cash receipt?Q2: Can at least one sale in the database relate to multiple instances of cash receipt? Yes – 0 min on saleNo – 1 max on saleQ3: Can at least one cash receipt exist in the database without a related instance of sale?No – 1 min on cash receiptQ4: Can at least one cash receipt in the database relate to multiple instances of sale? No – 1 max on cash receipt23Interpret Cardinalities: Exercise 3In other words, sales may be made on credit with partial payments but no combined payments accepted, and sales are the company’s only source of cashQ1: Can at least one sale exist in the database without a related instance of cash receipt?Q2: Can at least one sale in the database relate to multiple instances of cash receipt? Yes – 0 min on saleYes – N max on saleQ3: Can at least one cash receipt exist in the database without a related instance of sale?No – 1 min on cash receiptQ4: Can at least one cash receipt in the database relate to multiple instances of sale? No – 1 max on cash receipt24Interpret Cardinalities: Exercise 4In other words, sales may be made on credit with partial payments and combined payments accepted, and cash comes from sources other than salesQ1: Can at least one sale exist in the database without a related instance of cash receipt?Q2: Can at least one sale in the database relate to multiple instances of cash receipt? Yes – 0 min on saleYes – N max on saleQ3: Can at least one cash receipt exist in the database without a related instance of sale?Yes – 0 min on cash receiptQ4: Can at least one cash receipt in the database relate to multiple instances of sale? Yes – N max on cash receipt25Typification ExampleStudent TypeStudent typification26Generalization ExampleStudentStudentIDNameAddressMBA studentPhD studentDissertation topicGMAT scoreStudentMBA StudentPhD Student27REA Business Process Level Pattern: Core Pattern28Steps to Create a REA Business Process Level ModelStep 1: Identify Economic Exchange EventsUse value chain level model if you have oneWhich events provide and use up the resources in the business process you are modeling?Create each economic exchange event as an entity and create a duality relationship between themStep 2: Attach Resources to the Economic EventsAgain, use value chain if you have one, to identify which resources are increased by the economic increment event and which are decreased by the economic decrement eventCreate each resource as an entity and create a stockflow relationship between it and the related economic event29Step 3: Attach External Agents to Economic EventsUse value system level model if you have oneIdentify the external agent from whom resources are obtained in each economic increment event Create the external agent as an entity and create a participation relationship between the event and the agentIdentify the external agent to whom resources are transferred in each economic decrement eventCreate the external agent as an entity and create a participation relationship between the event and the agentSteps to Create a REA Business Process Level Model30Step 4: Attach internal agents to economic eventsIdentify the internal agent(s) who processes, accomplishes, or authorizes each economic increment event Create the internal agent as an entity and create a participation relationship between the event and the agentIdentify the internal agent(s) who processes, accomplishes, or authorizes each economic decrement eventCreate the internal agent as an entity and create a participation relationship between the event and the agentSteps to Create a REA Business Process Level Model31Step 5: Assign Attributes to Entities and RelationshipsObtain list of attributes from the enterprise or conduct a series of interviews to determine the attributes the enterprise needs to be able to capture and storeMake sure you understand the information each attribute is intended to communicateAssign attributes to the entities and relationshipsDetermine whether the attribute describes just one thing (entity) or a combination of things (relationship)Resource attributes typically include an identifier, description, and attributes indicating value or dimensionsMust first determine whether instances of the resource entity are type level or token level objectsEvent attributes typically include an identifier, a date/time (or beginning and ending dates/times), and attributes indicating value or other dimensionsAgent attributes typically include an identifier, name, address, telephone, other contact informationSteps to Create a REA Business Process Level Model32Steps to Create a REA Business Process Level ModelStep 6: Participation Cardinality AssignmentAssign cardinalities to each relationship in the modelUse business rules provided by enterprise in narratives or from interviews with enterprise staffHeuristics – rules of thumb that usually (but don’t always) apply(0,N) Resource Type – (1,N) Economic Event (Stockflow)Exception if alternative kinds of resource types could participate in the stockflow relationship(0,1) Resource – (1,N) Economic EventException if economic event involves rental of resource rather than permanent transfer or in case of an enterprise that handles both new and used resources(1,1) Economic Event – (0,N) AgentException if alternative agent can participateException if multiple agents share responsibility for event33Steps to Create a REA Business Process Level ModelStep 7: Validate ModelReview the model with a sufficiently knowledgeable enterprise representativeBe sure to use plain language when communicating with the representative; do not assume they know the meanings of terms such as entities, attributes, cardinalities, stockflow, duality, and so on.34REA business process level with extensionsEntitiesResources and Resource TypesEventsInstigation EventAn event that initiates activities in the business process; may be internally instigated (e.g. a marketing event) or externally instigated (call from supplier’s salesperson)Mutual Commitment EventAn event in which commitments are made by the enterprise and one of its external business partners for a future economic exchangeEconomic Exchange EventAn event in which a resource is either given up or takenIncrement economic event results in resource inflowDecrement economic event results in resource outflow35REA business process level with extensionsEntitiesAgentsInternal agents act on behalf of the enterpriseExternal agents are external business partnersRelationshipsEvent-Event relationshipsDuality (link increment and decrement economic events)Reciprocal (link increment and decrement commitment events)Is the commitment equivalent of dualityFulfillment (link commitment and economic events)Event-Resource relationshipsStockflow (link economic events and resources or resource types)Reservation (link commitment events and resources or resource types)36REA business process patternRelationshipsEvent-Agent relationshipsParticipation (link events and the agents that participate in the events)Agent-Agent relationshipsAssignment (link internal agent to external agent)Use only when relationship between internal agent and external agent exists independently of their mutual participation in an eventResponsibility (link internal agent to internal agent)Use when one internal agent is responsible for another, independent of their mutual participation in an event37REA business process patternRelationshipsResource-Agent relationshipsCustody (link resource and internal agent)Use when an internal agent’s responsibility for a resource needs to be tracked independently of any eventResource-Resource relationshipsLinkage (link two resources)Use to identify resource made up of another resourceTypificationEach resource, event, or agent can be related to a resource type, event type, or agent typeGeneralizationEach resource, event, agent, and commitment can also participate in a relationship with a sub-class or super-class via a generalization relationship.38SummaryThe primary purpose of creating a conceptual REA model at the business process level is to design the database architecture for an enterprise system using a specified object patternThe database architecture components included in REA modeling are entities, attributes, relationships, and cardinalitiesThree main entity types in the REA ontology are Resources, Events, and AgentsThree main relationship types in the REA ontology are duality, stockflow, and participation; additional types are assignment, custody, fulfillment, linkage, reciprocal, reservation, and responsibility. The REA ontology also allows for generalization and typification relationships39Chapter 4End of Chapter