Table of Contents

KVSMEDProcessParticipantLib

Procedures

UpdateAssignedPartnerRoleByProcessParticipant(Record KVSMEDProcessParticipant) :

Summary: Updates the assigned partner role record based on changes made to a process participant. Synchronizes Start Date, End Date, and Process Type from the process participant back to the assigned partner role.

procedure UpdateAssignedPartnerRoleByProcessParticipant(KVSMEDProcessParticipant: Record "KVSMEDProcessParticipant"): 

Parameters:

  • KVSMEDProcessParticipant: The modified process participant record whose values are synchronized to the assigned partner role.

InsertProcessParticipantByAssignedPartnerRole(Record KVSMEDAssignedPartnerRole, Boolean) :

Summary: Inserts process participants for all customer processes based on the given assigned partner role. If a matching process participant setup exists and updates are allowed, a new participant is created for each relevant process.

procedure InsertProcessParticipantByAssignedPartnerRole(KVSMEDAssignedPartnerRole: Record "KVSMEDAssignedPartnerRole"; HideMessage: Boolean): 

Parameters:

  • KVSMEDAssignedPartnerRole: The assigned partner role record used to create process participants.
  • HideMessage: If true, confirmation dialogs are suppressed.

Events

OnBeforeAddProcessParticipant(Code[20], Code[20], Code[10], Code[20], Date, Date, Integer, Integer, Code[10], Boolean) :

Summary: This event is fired before Process Participant is inserted.

[IntegrationEvent(false, false)]
local procedure OnBeforeAddProcessParticipant(CustomerNo: Code[20]; ProcessNo: Code[20]; PartnerRole: Code[10]; ContactPartnerNo: Code[20]; StartingDate: Date; EndingDate: Date; BillingRelevance: Integer; ContractRelevance: Integer; ProcessTypeCode: Code[10]; var IsHandled: Boolean): 

Parameters:

  • CustomerNo:
  • ProcessNo:
  • PartnerRole:
  • ContactPartnerNo:
  • StartingDate:
  • EndingDate:
  • BillingRelevance:
  • ContractRelevance:
  • ProcessTypeCode:
  • IsHandled:

OnAfterGetProcessParticipants(Record KVSMEDProcess, Record KVSMEDProcessParticipant) :

Summary: This event is fired in GetProcessParticipants. It is possible to modify the needed record TempKVSMEDProcessParticipant.

[IntegrationEvent(false, false)]
local procedure OnAfterGetProcessParticipants(KVSMEDProcess: Record "KVSMEDProcess"; var TempKVSMEDProcessParticipant: Record "KVSMEDProcessParticipant" temporary): 

Parameters:

  • KVSMEDProcess:
  • TempKVSMEDProcessParticipant:

OnBeforeUpdateProcessPeriodConsultant(Record KVSMEDProcessPeriod, Boolean, Boolean) :

Summary: This event is fired in UpdateProcessPeriodConsultant to set own logic to KVSMEDProcessPeriod.

[IntegrationEvent(false, false)]
local procedure OnBeforeUpdateProcessPeriodConsultant(var KVSMEDProcessPeriod: Record "KVSMEDProcessPeriod"; var Result: Boolean; var IsHandled: Boolean): 

Parameters:

  • KVSMEDProcessPeriod:
  • Result:
  • IsHandled:

OnBeforeInsertProcessParticipantByAssignedPartnerRole(Record KVSMEDAssignedPartnerRole, Boolean, Boolean) :

Summary: This event is fired before a process participant is inserted based on an assigned partner role. Subscribe to this event to prevent or customize the insertion logic.

[IntegrationEvent(false, false)]
local procedure OnBeforeInsertProcessParticipantByAssignedPartnerRole(KVSMEDAssignedPartnerRole: Record "KVSMEDAssignedPartnerRole"; var HideMessage: Boolean; var IsHandled: Boolean): 

Parameters:

  • KVSMEDAssignedPartnerRole: The assigned partner role record that triggers the participant insertion.
  • HideMessage: Indicates whether confirmation dialogs are suppressed. Can be modified by subscribers to control message display behavior.
  • IsHandled: Set to true to skip the default insertion logic.

OnBeforeUpdateAssignedPartnerRoleByProcessParticipant(Record KVSMEDProcessParticipant, Boolean) :

Summary: This event is fired before the assigned partner role is updated based on a modified process participant. Subscribe to this event to prevent or customize the update logic.

[IntegrationEvent(false, false)]
local procedure OnBeforeUpdateAssignedPartnerRoleByProcessParticipant(KVSMEDProcessParticipant: Record "KVSMEDProcessParticipant"; var IsHandled: Boolean): 

Parameters:

  • KVSMEDProcessParticipant: The modified process participant record that triggers the update.
  • IsHandled: Set to true to skip the default update logic.