The following metadata has attributes for the Adoption dynamic evidence type. This Adoption metadata has two attributes which describes that this entity has two related CaseParticipant fields. The field "caseParticipantRoleID" is a primary CaseParticipantRole and "parCaseParticipantRoleID" is an associated 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>
The AdoptionPayment metadata has Relationship with its parent dynamic evidence.
<?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>