Einfache Metadaten über- und untergeordneter dynamischer Angaben

In den folgenden Metadaten sind Attribute für den dynamischen Angabentyp 'Adoption' enthalten. Da die Metadaten für 'Adoption' über zwei Attribute verfügen, weist diese Entität zwei zugehörige Felder des Typs 'CaseParticipant' auf. Das Feld 'caseParticipantRoleID' ist eine primäre Fallbeteiligtenrolle (CaseParticipantRole) und 'parCaseParticipantRoleID' ist eine zugeordnete Fallbeteiligtenrolle (CaseParticipantRole).

<?xml version="1.0" encoding="UTF-8"?>
<EvidenceTypeVersion xmlns:xsi="http://www.w3.org/2001/
    XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../../../
DynamicEvidence/source/curam/dynamicevidence/definition/impl/
                         xmlresources/DynamicEvidenceMetadata.xsd">
    <Model>
        <Attributes>
            <Attribute>
                <DataAttribute name="adoptionFinalizedDate">
                    <DomainType dataType="Date" />
                </DataAttribute>
            </Attribute>
            <Attribute>
                <RelatedCPAttribute name="caseParticipantRoleID"
                        participantType="Person" volatile="true" />
            </Attribute>
            <Attribute>
                <RelatedCPAttribute name="parCaseParticipantRoleID"
                                        participantType="Person" />
            </Attribute>
        </Attributes>
    </Model>
    <UserInterface>
        <Cluster>
            <RelCPCluster fullCreateParticipant="true">
                <StandardField source="caseParticipantRoleID" />
            </RelCPCluster>
        </Cluster>
        <Cluster>
            <RelCPCluster fullCreateParticipant="true">
                <StandardField source="parCaseParticipantRoleID" />
            </RelCPCluster>
        </Cluster>
    </UserInterface>
</EvidenceTypeVersion>

Die Metadaten 'AdoptionPayment' verfügen über eine Beziehung zu den übergeordneten dynamischen Angaben.

<?xml version="1.0" encoding="UTF-8"?>
<EvidenceTypeVersion xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
 xsi:noNamespaceSchemaLocation="file://DynamicEvidenceMetadata.xsd"
 javaHookClassNameForCalculatedAttributes="curam.dynamicevidencetest.
 hook.impl.AdoptionPaymentCalcualtedAttributeHook"
 useHookForCalculatedAttributes="true">
    <Model>
        <Attributes>
            <Attribute>
                <DataAttribute name="amount">
                    <DomainType dataType="Money" />
                </DataAttribute>
            </Attribute>
            <Attribute>
                <CalculatedAttribute name="parentName">
                    <DomainType dataType="String" />
                </CalculatedAttribute>
            </Attribute>
        </Attributes>
        <Relationships>
            <Relationship>
                <MandatoryParent name="adoptions" 
                           evidenceTypeCode="DET004" />
            </Relationship>
        </Relationships>
    </Model>
</EvidenceTypeVersion>