07.03.2014 Views

BPMN and Beyond Business process modelling notation, workflow ...

BPMN and Beyond Business process modelling notation, workflow ...

BPMN and Beyond Business process modelling notation, workflow ...

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

ASM Foundations of Database Management 7<br />

join, selection, union, difference, intersection). We combine these functions into<br />

an S-algebra.<br />

Databases change over time, We may represent the change history of a<br />

database by a sequence of database states. The changes are defined by an application<br />

of database systems operations to the current database state. We may<br />

require that any change applied to a model shall either transform the model to<br />

a new model or shall not be considered otherwise. This operating requirement<br />

leads to transaction semantics of database operating. We can use the logic L S<br />

for the definition of transition constraints.<br />

A transition constraint consists of a pair of formulas (ψ pre , ψ post ) from L S .<br />

The transition constraint is valid for a database modification from DB to DB ′<br />

if DB |= ψ pre <strong>and</strong> DB ′ |= ψ post . Static integrity constraints from a finite set<br />

Σ can be mapped to transition constraints ( ∧ α∈Σ α, ∧ α∈Σ α). Let Σ dynamic be<br />

the set of transition constraints.<br />

A sequence of database states DB 0 , DB 1 , ..., DB i+1 = τ A (DB i ), ...<br />

satisfying Σ dynamic is called a run of the database system. The run can be<br />

defined though S-algorithms A or transformation rules that impose a one-step<br />

transformation τA<br />

DB of a database state to its successor in the run.<br />

A database program is given by a rule name r of arity n is an expression<br />

r(x 1 , ..., x n ) = P where P is a database transition operation <strong>and</strong> the free variables<br />

of P are contained in the list x 1 , ..., x n .<br />

Database transition operations are either basic operations from the S-algebra<br />

or are constructed by inductively applying the following construction rules:<br />

– Skip rule: skip<br />

– Update rule: f(s 1 , ..., s n ) := t<br />

– Parallel execution rule: P par Q<br />

– Conditional rule: if φ then P else Q<br />

– Let rule: let x = t in P<br />

– For all rule: forall x with φ do P<br />

– Choose rule: choose x with φ do P<br />

– Sequence rule: P seq Q<br />

– Call rule: r(t 1 , ..., t n )<br />

A database system consists of a database management system <strong>and</strong> of a number<br />

of databases. Let us consider only one database.<br />

An abstract database system M consists of a<br />

– a signature S M of the database system that embodies the signature S of the<br />

database,<br />

– a set of initial states for S M ,<br />

– a set of database programs,<br />

– a distinguished program of arity zero called main program of the system.<br />

We denote the current state of the database system by DBS <strong>and</strong> by DB the<br />

current state of the database. The transition operation P yields the modification<br />

set U in a state DBS under the variable assignment ζ: +yields+(P,DBS,ζ,U).<br />

Semantics of transition operations defined in a calculus by rules:<br />

Premise 1 , ..., Premise n<br />

Conclusion<br />

Condition

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!