例 1
この例では、テーブルがオブジェクト定義にマッピングされる方法と (value) プロパティが ARIS 属性にマッピングされる方法を示します。さらに、概要モデルを作成し、このテーブルからモデルに各オブジェクトのオカレンスを配置することができます。Reference または ReferenceArray のプロパティは、接続線、アサインメント、または接続線とアサインメントにマッピングできます。Value プロパティは、接続線またはアサインメント、あるいは両方に同時にマッピングすることが可能です。Value プロパティは、オブジェクト自体に割り当てる代わりに、作成された接続線に割り当てることができます。
<table name="APPLICATIONGROUP" arisgroupname="Application groups" aristype="OT_APPL_SYS_CLS" isgroup="true" overview-model="MT_APPL_SYS_TYPE_DGM,ST_APPL_SYS_CLS">
<attr alfabet="name" aris="AT_NAME" />
<attr alfabet="description" aris="AT_DESC" />
<attr alfabet="a_size" aris="" /> <!-- not mapped-->
...
<cxn property="belongsto" cxntype="CT_CAN_SUBS_2" srctotarget="false" />
<!-- overview-model="ST_APPL_SYS_CLS" means: show in overview model with its CXN and the given symbol -->
<!-- an attr element within a cxn element maps an attribute from the Alfabet table to the cxn -->
<cxn property="belongsto" cxntype="CT_CAN_SUBS_2" srctotarget="false" connected-objtype="OT_APPL_SYS_CLS" overview-model="ST_APPL_SYS_CLS" ordernum="1" >
<attr alfabet="refstr" aris="AT_EXTERNAL_ID" />
</cxn>
<cxn property="applications" cxntype="CT_BELONGS_TO_CLS" srctotarget="true" >
<!-- "each" would mean 1 assignment per child, all=assign them all to the parent in one model -->
<!-- add-parent: assignment contains occ of the parent. This needs: parent-symbol="ST_APPL_SYS_CLS" -->
<assign type="all" model="MT_APPL_SYS_TYPE_DGM" add-parent="true" parent-symbol="ST_APPL_SYS_CLS" child-symbol="ST_APPL_SYS_TYPE" />
</cxn>
<cxn property="processes" /> <!-- not mapped-->
</table>
例 2
この例は、モデルがアサインされたオブジェクトへのマッピングを示します。さらに、ターゲット モデルにオブジェクト オカレンスが作成されます。
<table name="BUSINESSPROCESS" arisgroupname="Business processes" aristype="OT_FUNC" isgroup="true" overview-model="MT_VAL_ADD_CHN_DGM,ST_VAL_ADD_CHN_SML_2" check-master="ARIS_GUID" >
<!-- "each" would mean 1 assignment per child, all=assign them all to the parent in one model -->
<!-- add-parent: assignment contains occ of the parent. This needs: parent-symbol="ST_APPL_SYS_CLS" -->
<assign type="each" model="MT_FUNC_ALLOC_DGM" add-parent="true" parent-symbol="ST_VAL_ADD_CHN_SML_2" child-symbol="ST_FUNC" />
<attr alfabet="name" aris="AT_NAME" />
<attr alfabet="shortname" aris="AT_REM" />
...
<cxn property="belongsto" srctotarget="false" cxntype="CT_IS_PRCS_ORNT_SUPER" overview-model="ST_VAL_ADD_CHN_SML_2" /> <!-- BusinessProcess–>
<createocc property="model" symbol="ST_VAL_ADD_CHN_SML_2" forceexist="false" /> <!-- creates occ in the model if the model exists -->
<cxn property="executingorganizations" srctotarget="false" cxntype="CT_EXEC_1" forceexist="true" assigned-model="ST_ORG_UNIT_2" />
<cxn property="applications" srctotarget="false" cxntype="CT_CAN_SUPP_1" forceexist="true" assigned-model="ST_APPL_SYS_TYPE"/>
...
</table>
例 3
次の例では、attr プロパティの一覧である foreignattr プロパティは許容されます。この一覧で、インポートされる属性を定義します。この例は、外部属性と属性条件の使用方法を示します。外部属性は、別の Alfabet テーブルから読み込まれます。
<table name="APPLICATION" arisgroupname="Application" aristype="OT_APPL_SYS_TYPE" isgroup="false" overview-model="MT_APPL_SYS_TYPE_DGM,ST_APPL_SYS_TYPE">
<foreignattr table="TIMESTATUS" ="Owner"> <!-- Select * from TIMESTATUS where Owner = '<our AlfabetID>'. Will be written after processing "normal" attr-Elements, so will probably overwrite them -->
property
現在の table 要素を参照するほかのテーブルのプロパティの名前です ( Owner など)。
<attr alfabet="StartDate" condition="Status" value="Evaluation" aris="AT_EVALUATION_START" />
<attr alfabet="EndDate" condition="Status" value="Evaluation" aris="AT_EVALUATION_END" />
<attr alfabet="StartDate" condition="Status" value="Pilot" aris="AT_TO_BE_PHASED_IN_START" />
<attr alfabet="EndDate" condition="Status" value="Pilot" aris="AT_TO_BE_PHASED_IN_END" />
<attr alfabet="StartDate" condition="Status" value="Production" aris="AT_STANDARD_START" />
<attr alfabet="EndDate" condition="Status" value="Production" aris="AT_STANDARD_END" />
<attr alfabet="StartDate" condition="Status" value="Limited Production" aris="" /> <!-- tbd -->
<attr alfabet="EndDate" condition="Status" value="Limited Production" aris="" />
<attr alfabet="StartDate" condition="Status" value="Retired - Shut Down" aris="AT_TO_BE_PHASED_OUT_START" />
<attr alfabet="EndDate" condition="Status" value="Retired - Shut Down" aris="AT_TO_BE_PHASED_OUT_END" />
</foreignattr>
<attr alfabet="Name" aris="AT_NAME" />
<attr alfabet="ObjectState" aris="AT_REM" />
<attr alfabet="Description" aris="AT_DESC" />
...
<cxn property="NextVersion" cxntype="CT_IS_PRED_OF" srctotarget="true" forceexist="true" connected-objtype="OT_APPL_SYS_TYPE" overview-model="ST_APPL_SYS_TYPE"/>
<cxn property="ApplicationGroups" cxntype="CT_BELONGS_TO_CLS" srctotarget="true" forceexist="true" connected-objtype="OT_APPL_SYS_CLS" />
<cxn property="ICTObject" cxntype="CT_GENERAL" srctotarget="false" forceexist="true" connected-objtype="OT_APPL_SYS_TYPE" overview-model="ST_APPL_SYS_TYPE"/>
<cxn property="Products" />
...
</table>