Recommended reading https://www.moqui.org/m/docs/mantle/Mantle+Structure+and+UDM/Party
This document provides an overview of this model, focusing on its core entities - Party, Person, Organization and PartyRole - and their applications in representing various business relationships. Additionally, we will delve into how to define Parties and their Roles. Finally, we provide sample JSON data for a Person and Organization in various Roles.
Example: John Doe works as an employee at ABC Organization, where he is also a customer.
- Description: Represents any entity that can enter into a relationship. This includes
PERSON
orORGANIZATION
. - Key Attribute:
partyId
- Example: Lets create the relevant parties.
{
"Party": [
{
"partyId": "PER123",
"partyTypeId": "PERSON"
},
{
"partyId": "ORG456",
"partyTypeId": "ORGANIZATION"
}
]
}
- Description: A specialization of
Party
, representing individual human beings. - Key Attribute:
partyId
- Example: Lets create the relevent person.
{
"Person": {
"partyId": "PER123",
"firstName": "John",
"lastName": "Doe",
"birthDate": "1990-01-01"
}
}
- Description: Another specialization of
Party
, representing collective entities such as companies or organizations. - Key Attributes:
partyId
. - Example: Lets create the relevant organization.
{
"Organization": {
"partyID": "ORG456",
"organizationName": "ABC"
}
}
- Description: Defines the role of a
Party
in a specific context. - Key Attributes:
partyid
,roleTypeId
- Examples: Lets define the relevant roles for the parties.
{
"PartyRole": [
{
"partyId": "PER123",
"roleTypeId": "CUSTOMER"
},
{
"partyId": "PER123",
"roleTypeId": "EMPLOYEE"
},
{
"partyId": "ORG456",
"roleTypeId": "EMPLOYER"
}
]
}
{
"Party": {
"partyId": "PER123",
"partyTypeId": "PERSON",
"Person": {
"firstName": "John",
"lastName": "Doe",
"birthDate": "1990-01-01"
},
"PartyRole": [
{
"roleTypeId": "CUSTOMER"
},
{
"roleTypeId": "EMPLOYEE"
}
]
}
}
{
"Party": {
"partyId": "ORG456",
"partyTypeId": "ORGANIZATION",
"Organization": {
"organizationName": "ABC"
},
"PartyRole": {
"roleTypeId": "EMPLOYER"
}
}
}