Use o arquivo mapping.xml e faça as atualizações nele para assegurar a sincronização entre os elementos no Rational Asset Manager e no WSRR.
Há vários tipos de mapeamento definidos no arquivo, como tipos de recurso, relacionamentos e atributos. O arquivo de mapeamento também contém acionadores, que são eventos que são chamados durante as operações de salvamento, entrada de estado ou ações manuais configuradas para uma política.
Há uma política SOA que é fornecida com o Rational Asset Manager. Ela lê o arquivo de mapeamento e executa os acionadores definidos para a ação manual, entrada de estado ou evento de salvamento. A política SOA é configurada em cada estado do ciclo de vida SOA e possui uma propriedade de configuração de conexão do WSRR para ser associada a uma conexão WSRR específica.
O arquivo de mapeamento contém dois elementos, mapeamento e acionadores principais.
<Mapping id="SPEC"
wsrrType="&GEP63;SchemaSpecification" ramType="Specification"
extends="ASSET" ramCategory="Software Development/Kind/Schema">
</Mapping>
<Attribute
wsrrName="gep63_versionAvailabilityDate" ramName="Availability Date"
type="date"/>
<Relationship wsrrName="gep63_interfaceSpecifications"
ramName="specification"/>
<Relationship wsrrName="gep63_charter"
ramArtifactLabel="Charter"/>
Os acionadores são eventos que são chamados durante as operações de salvamento, entrada de estado ou ações manuais configuradas para uma política. Por exemplo:
<Trigger source="RAM" type="Release" state="Identified">
<Rule ruleType="CATEGORIZATION" target="RAM"
categoryValue="Software Development/Kind/Process" />
<Action target="WSRR" action="create"/>
</Trigger>
<Trigger source="RAM" type="Business Solution"
state="Proposed" transition="Revise">
</Trigger>
<Trigger source="RAM" type="Business Solution"
state="Rejected">
</Trigger>
Uma regra pode ser uma regra simples ou uma regra complexa.
<Rule
ruleType="CATEGORIZATION" target="RAM" categoryValue="Software
Development/Kind/Process" />
Uma regra complexa pode ser criada usando os operadores “AND” ou “OR” para as Regras Simples.
<Rule operator="OR"> <Rule ruleType="CATEGORIZATION"
target="RAM" categoryValue="Software Development/Kind/Web
Application" />
<Rule ruleType="CATEGORIZATION" target="RAM"
categoryValue="Software Development/Kind/Service" />
<Rule ruleType="CATEGORIZATION" target="RAM"
categoryValue="Software Development/Kind/Process" />
</Rule>
categoryValue ="Software Development/Kind/Web Application"
<Rule
ruleType="CATEGORIZATION" target="RAM" categoryValue="Software
Development/Kind/Web Application" />
<Rule
ruleType="ARTIFACT" target="RAM" countType="EXACTLY" count="1"
artifactMatchType="LABEL_OF" artifactMatchTypeValue="Charter" />
relatedAssetType="Implementation"
relationshipName="implementation"
<Rule target="RAM"
ruleType="RELATIONSHIP" countType="ATLEAST" count="1"
relatedAssetType="Implementation" relationshipName="implementation"
/>
<Rule target="RAM" ruleType="ATTRIBUTE"
attributeName="Custom Attribute" attributeValue="Value 1" />
<Rule ruleType="WSRR_STATE"
target="WSRR" state="&GEPLifecycle;PlanReview"/>
<Action target="WSRR" action="create"/>
<Action target="WSRR"
transition="&GEPLifecycle;ProposeCharter"
state="&GEPLifecycle;CharterReview"/>
<Action
target="RAM" action="create" type="Release"
relationshipName="release" />