The script language is intended to create custom content on a page, like reports or related item content in a presentation. The script language uses tag-libraries according to the JSP 1.1 standard. The typical scripting elements are tags including input parameters like in the following example:
<om:showentity modelname="Open model" entityname="Process"key0="Open">
......<%=content%>....
</om:showentity>
This example will show all entities of entity-type "Process" in the model "Open model" having a name that starts with "Open". Between the tags a number of html-tags can be added, while the data is returned in Java variables like 'content' in the example. The tags can be nested.
The relevant objects for scripting purposes are model, entity and item.
The model is a unity that contains a set of related entities containing data that is meaningful for a particular objective or scope.
An entity is an object that contains the occurrences for a number of models.
An item is the elementary data container.
Currently two tags have been implemented: showentity and showitem.
<om:showentity/>This tag shows all entities of a model. The input variables key0 through key3 operate as 'like' values, so all entities that start with the indicated string are displayed. The entity type names can be found in the metamodel description.
input variables | description | output variables | Description |
modelname | The selected model | entitytypename | The name of the entity type |
entityname | The selected entity type | model | The model id |
key0 | The first key name | mmodel | The metamodel id |
key1 | The second key name | entity | The entity type id |
key2 | The third key name | prefix | The entity prefix |
key3 | The fourth key name | key | The key id |
language | The default language | ||
keyvalue | The key names | ||
table | The table of the entity type |
This tag shows an item of the selected entity. The tag should be contained in an om:showentity/> tag. The itemnames can be found in the metamodel description.
input variables | description | output variables | Description |
itemname | The selected item | itemnr | The sequence number of the item content line |
itemname | The selected item | ||
type | The type of the item | ||
subtype | The subtype of the item | ||
length | The maximum length of the item | ||
column | The column name of the item | ||
content | The content of the item | ||
In case of relations: | |||
rmodel | The related model id | ||
rentity | The related entity type id | ||
rprefix | The related entity prefix | ||
rkey | The related key id | ||
language | The default language | ||
rkeyvalue | The related key names |
<om:if/>
This tag evaluates a test and includes the body content if the condition is met.
input variables | description | output variables | Description |
test | The test to be evaluated. Curently the supported values are: . first is this the first result? . !first is this not the first result? | No |
The metamodel in this description conforms to the metamodel that is shipped with the Open Modeling installation. The metamodel can be extended and changed using the metamodel browser. In that case this description should be changed as well.
Models |
Open model |
Entities | Entities |
Activity | Global process |
Activity cluster | Information system |
Archive | Journal |
Computer activity | Non implemented requirement |
Computer file | Office link |
Computer list | ORF |
Computer process | Process |
Concept | Referral |
Decision | Register |
Department | Role type |
Diskette | Salary group |
Document | Standard |
Employee | Standard clause |
External procedure | Tape file |
Externality | Temporary storage |
File | Terminator |
Functionary | Text |
Global activity | User comment |
Webnews |
Entity | Item | Entity | Item |
Activity | Name | Has as a comment | |
Instruction text | Global activity | Name | |
Fixed costs | Instruction text | ||
Trigger | External procedure | Fixed costs | |
Instruction text_ | Name EN | ||
Name EN | Process | ||
Belongs to activity cluster | Connected to activities | ||
Uses information system | Specific entities | ||
Global activity(ies) | Contains concepts | ||
Global choice | Hierarchy | ||
Specific entities | Is a part of | ||
Additional information for | Has as a comment | ||
Contains concepts | Global process | Name | |
Hierarchy | Date | ||
Is a part of | Description | ||
Has as a comment | Range | ||
Activity cluster | Name | Fixed costs | |
Contains activities | Version | ||
Hierarchy | Name EN | ||
Is a part of | Incoming processes | ||
Has as a comment | Outgoing processes | ||
Archive | Name | Global Scheme | |
Location | Concerned functionaries | ||
Description_ | Concerned employees | ||
Sequence_ | Additional information for | ||
Medium | Refers to externality | ||
Joined1 | Author | ||
Specific entities | Hierarchy | ||
Administrator | Is a part of | ||
Hierarchy | Has as a comment | ||
Is a part of | Information system | Name | |
Has as a comment | Is used by activity | ||
Computer activity | Name | Hierarchy | |
Kind | Is a part of | ||
Control description1 | Has as a comment | ||
Information system | Journal | Name | |
Instruction text | Description | ||
Fixed costs | Forms part of | ||
Trigger | Hierarchy | ||
Specific entities | Is a part of | ||
Contains concepts | Has as a comment | ||
Hierarchy | Non implemented requirement | Name | |
Is a part of | Description2 | ||
Has as a comment | Non implemented standard | ||
Computer file | Name | Hierarchy | |
Medium | Is a part of | ||
Description_ | Has as a comment | ||
Name EN | Office link | Name | |
Is joined with | File name | ||
Forms part of | Show on site NL SelMul | ||
Specific entities | Show on site EN SelMul | ||
Hierarchy | Additional documentation | ||
Is a part of | Hierarchy | ||
Has as a comment | Is a part of | ||
Computer list | Name | Has as a comment | |
Description | ORF | Name | |
Forms part of | Description | ||
Hierarchy | Is composed of | ||
Is a part of | Forms part of | ||
Has as a comment | Hierarchy | ||
Computer process | Name | Is a part of | |
Description | Has as a comment | ||
Hierarchy | Process | Name | |
Is a part of | Documents | ||
Has as a comment | Contains other components | ||
Concept | Name | Description_ | |
Definition | State | ||
Consists of concept | Fixed costs | ||
Is part of concept | Description EN | ||
Concept occurs on1 | Name EN | ||
Hierarchy | Information system | ||
Is a part of | Involved in activities | ||
Has as a comment | Incoming processes | ||
Decision | Name | Outgoing processes | |
Control description1 | Detailed Scheme | ||
Instruction text | Concerned functionaries | ||
Instruction text_ | Concerned employees | ||
Fixed costs | Additional information for | ||
Name EN | Refers to externality | ||
Activity | Author | ||
Global choice | Hierarchy | ||
Global activity(ies) | Is a part of | ||
Specific entities | Has as a comment | ||
Additional information for | Referral | Name | |
Contains concepts | Description_ | ||
Hierarchy | Name EN | ||
Is a part of | Specific entities | ||
Has as a comment | Additional information for | ||
Department | Name | Hierarchy | |
Description_ | Is a part of | ||
Description EN | Has as a comment | ||
Name EN | Register | Name | |
Has functional relationships wit | Description_ | ||
Has staff object(s) | Joined1 | ||
Is staff object of | Forms part of | ||
Involved in activities | Hierarchy | ||
Functionaries | Is a part of | ||
Employees | Has as a comment | ||
Additional information for | Role type | Name | |
Hierarchy | Abbreviation | ||
Is a part of | Description_ | ||
Has as a comment | Sequence | ||
Diskette | Name | Hierarchy | |
Description | Is a part of | ||
Forms part of | Has as a comment | ||
Hierarchy | Occurs in Employee | ||
Is a part of | Occurs in Functionary | ||
Has as a comment | Salary group | Name | |
Document | Name | Wages | |
Description_ | Contains functionaries | ||
Description EN | Hierarchy | ||
Name EN | Is a part of | ||
Has copies | Has as a comment | ||
Is copy of | Standard | Name | |
Specific entities | Title | ||
Is composed of | Description2 | ||
Forms part of | Date of version | ||
Additional information for | Norm Type | ||
Administrator | Contains standard clauses | ||
Hierarchy | Hierarchy | ||
Is a part of | Is a part of | ||
Has as a comment | Has as a comment | ||
Employee | Name | Standard clause | Name |
Features | Paragraph number | ||
Key identifier | Text | ||
Acts as functionary | Interpretation | ||
Is employee of | Not implemented because | ||
Is involved in | Forms part of | ||
Writes procedure | Hierarchy | ||
Hierarchy | Is a part of | ||
Is a part of | Has as a comment | ||
Has as a comment | Tape file | Name | |
Name | Description | ||
Kind | Forms part of | ||
Control description1 | Hierarchy | ||
Instruction text | Is a part of | ||
Fixed costs | Has as a comment | ||
Known as external entity | Temporary storage | Name | |
Specific entities | Description_ | ||
Hierarchy | Sequence_ | ||
Is a part of | Medium | ||
Has as a comment | Description EN | ||
Externality | Name | Joined1 | |
Location | Specific entities | ||
Description_ | Administrator | ||
Reference number | Hierarchy | ||
Type Form SelMul | Is a part of | ||
Type Manual SelMul | Has as a comment | ||
Type Archive SelMul | Terminator | Name | |
Type Standard SelMul | Description | ||
Type Registration SelMul | Kind_ | ||
Type Procedure SelMul | Hierarchy | ||
Type Method SelMul | Is a part of | ||
Type Technique SelMul | Has as a comment | ||
Date of version | Text | Name | |
Coincides with external procedur | Date | ||
Occurs in external procedure | Text | ||
Administrator | Version | ||
Hierarchy | Contains concepts | ||
Is a part of | Hierarchy | ||
Has as a comment | Is a part of | ||
File | Name | Has as a comment | |
Description | User comment | Name | |
Joined1 | Content | ||
Forms part of | User id | ||
Hierarchy | Is related to | ||
Is a part of | Hierarchy | ||
Has as a comment | Is a part of | ||
Functionary | Name | Webnews | Name |
Description_ | E-mail address | ||
Employee acting as functionary | Title webnews | ||
Belongs to salary group | Show in news overview | ||
Publisher of webnews | Date | ||
Is functionary of | Description_ | ||
Is involved in | Responsible publisher | ||
Administrates documents | Hierarchy | ||
Hierarchy | Is a part of | ||
Is a part of | Has as a comment |