R38894 Activity - Ensure Responsible Party Is Activity Participant
Code | R38894 |
Entity | General.Activities.Activities Entity |
Name | EnsureResponsiblePartyIsActivityParticipant |
Attribute | Subject |
Layer | Front-End |
Events | AttributeChanged(ResponsibleParty) |
Priority | Normal |
Modify | YES |
Applicable Legislations | ALL // no condition needed |
Action | IF ResponsibleParty != OwnerParty
THEN IF ActivityParticipants.Count == 1 THEN Set the ParticipantPerson of the only ActivityParticipant to = ResponsibleParty ELSE IF no ActivityParticipants exists with ParticipantPerson == ResponsibleParty THEN Add new ActivityParticipant with ParticipantPerson = ResponsibleParty |
Description | Ensures that the Responsible Party always appears in the list of ActivityParticipants. If only one participant exists, it is replaced with the new Responsible Party. If there are multiple participants, the new Responsible Party is added only if not already present. |
Message | |
Version | v.25 |
Revocable | YES |
* For more information about the Business Rules Documentation Template and a short explanation of each column, see topic System Business Rules. + 63