Previous Up Next

7  Link the two notations

We have created two simple notations, one for data modeling and the scond for process modeling. Now let us combine these two. The most natural way appears to regard object types (entity types and relationship types) as possible inputs and outputs of tasks in a process model.



Exercise 13: Define a new construct ObjectType that generalizes EntityType and RelationshipType.



ObjectType end
EntityType isA ObjectType end
RelationshipType isA ObjectType end

So, this was easy. We now can link the two notations via ObjectType.



Exercise 14: Define object type as possible input/output of tasks in process models.



Task with
 attribute
    input: ObjectType;
    output: ObjectType
end

Attributes in ConceptBase are by default multi-valued, ie. they can have zero, one or many values. This is exaclty what we want in this case.

We finalize this tutorial by attaching some objects types as input/output of tasks.



Exercise 15: Define some of the object types of exercise 5 as input/output of the process model of exercise 11.



receiveClaim with
  output o1: Claim
end

checkPolicy with
  input i1: claim_policy
end

Previous Up Next