Contents
anyblok_rea.bloks.rea.
REABlok
(registry)Bases: anyblok.blok.Blok
Base entity REA blok
author
= 'ANDRE Simon'conditional_by
= []conflicting_by
= []import_declaration_module
()name
= 'rea'optional_by
= []reload_declaration_module
(reload)required
= ['anyblok-core']required_by
= ['rea-commitment', 'rea-group']version
= '0.0.1'anyblok_rea.bloks.rea.entity.
Entity
Bases: object
Declaration type: | |
---|---|
Model | |
Registry name: | Model.REA.Entity |
Tablename: | rea_entity |
Inherit model or mixin: | |
field name | Description |
---|---|
entity_type |
|
id |
|
anyblok_rea.bloks.rea.entity.
Resource
Bases: anyblok.model.Entity
Economic Resource is a thing that is scarce, and has utility for economic agents, and is something users of business applications want to plan, monitor, and control. Examples of economic resources are products and services, money, raw materials, labor, tools, and services the enterprise uses.
Just like agents, Resources contain an ID and Name. In addition a re- source has a Value which is defined as the value in US dollars of a single unit of the resource, i.e., the price of a single pizza
# Model-Driven Design Using Business Patterns # Authors: Hruby, Pavel # ISBN-10 3-540-30154-2 Springer Berlin Heidelberg New York # ISBN-13 978-3-540-30154-7 Springer Berlin Heidelberg New York
Declaration type: | |
---|---|
Model |
|
Registry name: | Model.REA.Resource |
Tablename: | rea_resource |
Inherit model or mixin: | |
|
field name | Description |
---|---|
id |
|
anyblok_rea.bloks.rea.entity.
Agent
Bases: anyblok.model.Entity
Economic Agent is an individual or organization capable of having control over economic resources, and transferring or receiving the control to or from other individuals or organizations. Examples of economic agents are customers, vendors, employees, and enterprises. The enterprise is an economic agent from whose perspective we create the REA model.
# Model-Driven Design Using Business Patterns # Authors: Hruby, Pavel # ISBN-10 3-540-30154-2 Springer Berlin Heidelberg New York # ISBN-13 978-3-540-30154-7 Springer Berlin Heidelberg New York
Declaration type: | |
---|---|
Model |
|
Registry name: | Model.REA.Agent |
Tablename: | rea_agent |
Inherit model or mixin: | |
|
field name | Description |
---|---|
id |
|
anyblok_rea.bloks.rea.entity.
IncrementEvent
Bases: anyblok.model.Entity
Economic Event represents either an increment or a decrement in the value of economic resources that are under the control of the enterprise. Some economic events occur instantaneously, such as sales of goods; some occur over time, such as rentals, labor acquisition, and provision and use of services.
# Model-Driven Design Using Business Patterns # Authors: Hruby, Pavel # ISBN-10 3-540-30154-2 Springer Berlin Heidelberg New York # ISBN-13 978-3-540-30154-7 Springer Berlin Heidelberg New York
Declaration type: | |
---|---|
Model |
|
Registry name: | Model.REA.IncrementEvent |
Tablename: | rea_incrementevent |
Inherit model or mixin: | |
|
field name | Description |
---|---|
resource |
|
value |
|
id |
|
provider |
|
date |
|
anyblok_rea.bloks.rea.entity.
DecrementEvent
Bases: anyblok.model.Entity
Economic Event represents either an increment or a decrement in the value of economic resources that are under the control of the enterprise. Some economic events occur instantaneously, such as sales of goods; some occur over time, such as rentals, labor acquisition, and provision and use of services.
# Model-Driven Design Using Business Patterns # Authors: Hruby, Pavel # ISBN-10 3-540-30154-2 Springer Berlin Heidelberg New York # ISBN-13 978-3-540-30154-7 Springer Berlin Heidelberg New York
Declaration type: | |
---|---|
Model |
|
Registry name: | Model.REA.DecrementEvent |
Tablename: | rea_decrementevent |
Inherit model or mixin: | |
|
field name | Description |
---|---|
resource |
|
recipient |
|
value |
|
id |
|
date |
|
anyblok_rea.bloks.rea.utility.
Utility
Bases: object
Declaration type: | |
---|---|
Model | |
Registry name: | Model.Utility |
Tablename: | utility |
Inherit model or mixin: | |
get_resource_value
(resource, agent)Get all event value about an agent and a resource.
Parameters: |
|
---|---|
Returns: | value |
anyblok_rea.bloks.rea.exceptions.
REABlokException
Bases: Exception
anyblok_rea.bloks.rea_commitment.
REACommitmentBlok
(registry)Bases: anyblok.blok.Blok
Commitment pattern REA blok
conditional_by
= []conflicting_by
= []import_declaration_module
()name
= 'rea-commitment'optional_by
= []reload_declaration_module
(reload)required
= ['rea']required_by
= ['rea-contract']version
= '0.0.1'anyblok_rea.bloks.rea_commitment.entity.
IncrementCommitment
Bases: anyblok.model.Entity
Commitment is a promise or obligation of economic agents to perform an economic event in the future. For example, line items on a sales order represent commitments to sell goods.
# Model-Driven Design Using Business Patterns # Authors: Hruby, Pavel # ISBN-10 3-540-30154-2 Springer Berlin Heidelberg New York # ISBN-13 978-3-540-30154-7 Springer Berlin Heidelberg New York
Declaration type: | |
---|---|
Model |
|
Registry name: | Model.REA.IncrementCommitment |
Tablename: | rea_incrementcommitment |
Inherit model or mixin: | |
|
field name | Description |
---|---|
fulfilled |
|
resource |
|
value |
|
id |
|
provider |
|
fulfill
()Returns: | True if commitment is fulfilled |
---|
anyblok_rea.bloks.rea_commitment.entity.
DecrementCommitment
Bases: anyblok.model.Entity
Commitment is a promise or obligation of economic agents to perform an economic event in the future. For example, line items on a sales order represent commitments to sell goods.
# Model-Driven Design Using Business Patterns # Authors: Hruby, Pavel # ISBN-10 3-540-30154-2 Springer Berlin Heidelberg New York # ISBN-13 978-3-540-30154-7 Springer Berlin Heidelberg New York
Declaration type: | |
---|---|
Model |
|
Registry name: | Model.REA.DecrementCommitment |
Tablename: | rea_decrementcommitment |
Inherit model or mixin: | |
|
field name | Description |
---|---|
fulfilled |
|
recipient |
|
value |
|
id |
|
resource |
|
fulfill
()Returns: | True if commitment is fulfilled |
---|
anyblok_rea.bloks.rea_commitment.entity.
IncrementEvent
Bases: object
Declaration type: | |
---|---|
Model | |
Registry name: | Model.REA.IncrementEvent |
Tablename: | rea_incrementevent |
Inherit model or mixin: | |
field name | Description |
---|---|
fulfillment |
|
anyblok_rea.bloks.rea_commitment.entity.
DecrementEvent
Bases: object
Declaration type: | |
---|---|
Model | |
Registry name: | Model.REA.DecrementEvent |
Tablename: | rea_decrementevent |
Inherit model or mixin: | |
field name | Description |
---|---|
fulfillment |
|
anyblok_rea.bloks.rea_commitment.utility.
Utility
Bases: object
Declaration type: | |
---|---|
Model | |
Registry name: | Model.Utility |
Tablename: | utility |
Inherit model or mixin: | |
anyblok_rea.bloks.rea_commitment.exceptions.
FulfillmentException
Bases: anyblok_rea.bloks.rea.exceptions.REABlokException