Hi all,
I am looking for how to define a PARTY_RELATIONSHIP archetype.
I found an example from the Brazilian Demographic-archetypes, which are very good examples, but this one is, in my opinion not complete/correct.
The definition part looks like this:
definition
PARTY_RELATIONSHIP[at0000] matches { – Relações Pessoais
details matches {
ITEM_SINGLE[at0001] matches { – Item
item matches {
ELEMENT[at0002] matches { – Grau de parentesco
value matches {
DV_TEXT matches {*}
}
}
}
}
}
}
Now my question is how to define the PARTY_REF’s inside this ADL, I cannot get it done without errors. It must be something stupid
So what I tried was this:
PARTY_RELATIONSHIP[at0000] matches { – Relações Pessoais
details matches {
ITEM_SINGLE[at0001] matches { – Item
item matches {
ELEMENT[at0002] matches { – Grau de parentesco
value matches {
DV_TEXT matches {*}
}
}
}
}
source matches { <<---- line 54
PARTYREF[at0003] matches {
type matches {“PERSON”}
}
}
target matches {
PARTY_REF[at0004] matches {
type matches {“GROUP”}
}
}
I get an error in the adl_workbench on this
(already attempted; status = ERROR - line 54: parse error [last cADL token = V_ATTRIBUTE_IDENTIFIER]
line 54: expecting a new node definition, primitive node definition, ‘use’ path, or ‘archetype’ reference
[last cADL token = V_ATTRIBUTE_IDENTIFIER]
(Parse failed) (ARCH_REP_ARCHETYPE.parse_archetype)
Can someone tell me how to do this, or explain what I misunderstand, I cannot find an example.
Thanks very much
Bert