Composite event

The composite event functionality is based on the same features as the existing event-based API calls and event-based alerts. The event that the function should listen to must be created in 'Event Subscription. Open' (CMS045). In 'Composite Events. Open' (CMS042) you must define the name of the composite event, the filters to be applied to the event before any activity, and the additional information from another M3 table.

These outgoing BODs use composite events:

BOD Composite events
ProcessAdvanceShipNotice

MHEXRDCIDVEN

MHEXRHCIDVEN

SyncCarrierParty

CIDREFCIDMAS

CIDVENCIDMAS

SyncContractCOBlanketAgr

OAGRLNOAGRHE

OAGRPROAGRHE

SyncCustomerCall CIMHEACIMLIN
SyncPurchaseOrder MPOEXPMPHEAD
SyncRemitToPartyMaster

CIDADRCIDMAS

CIDREFCIDMAS

CIDVENCIDMAS

SyncShipFromPartyMaster

CIDADRCIDMAS

CIDREFCIDMAS

CIDVENCIDMAS

To trigger the BODs with composite events, corresponding event subscriptions and composite events must be set up in Infor M3 Business Engine.

These event subscriptions must be set up in 'Event Subscription. Open' (CMS045):

Event name Event operation Event publisher
CIDADR CU-Create/Update M3
CIDADR D-Delete M3
CIDREF CU-Create/Update M3
CIDREF D-Delete M3
CIDVEN CU-Create/Update M3
CIDVEN D-Delete M3
CIMHEA U-Update M3
MHEXRD CU-Create/Update M3
MHEXRH CU-Create/Update M3
MPOEXP CU-Create/Update M3
MPOEXP D-Delete M3
OAGRLN CU-Create/Update M3
OAGRLN D-Delete M3
OAGRPR CU-Create/Update M3
OAGRPR D-Delete M3

Ensure that Status is set to 20-Approved and these parameters are selected on (CMS045/E):

  • Include in auto job event alerts (CMS911)
  • Include in auto job event DB changes (CMS912)
  • incl web service call in event auto job

Create these composite events in 'Composite Events. Open' (CMS042):

Event publisher Event name Event operation Composite event
M3 CIDADR CU CIDADRCIDMAS
M3 CIDADR D CIDADRCIDMAS
M3 CIDREF CU CIDREFCIDMAS
M3 CIDREF D CIDREFCIDMAS
M3 CIDVEN CU CIDVENCIDMAS
M3 CIDVEN D CIDVENCIDMAS
M3 CIMHEA U CIMHEACIMLIN
M3 MHEXRD CU MHEXRDCIDVEN
M3 MHEXRH CU MHEXRHCIDVEN
M3 MPOEXP CU MPOEXPMPHEAD
M3 MPOEXP D MPOEXPMPHEAD
M3 OAGRLN CU OAGRLNOAGRHE
M3 OAGRLN D OAGRLNOAGRHE
M3 OAGRPR CU OAGRPROAGRHE
M3 OAGRPR D OAGRPROAGRHE

On (CMS042/E), specify these details and filter for all composite events:

Field Value
Name Same as the Composite event name
Description Same as the Composite event name
Status 2-Approved
Original op Activated
Logical type N-Numeric
Field CONO
Condition 6-Does not equal (<>)
Operand 1-Blank value
And/or 3-Not defined

In the next panel, specify these details per composite event name for all event operations:

CIDADRCIDMAS

Field Value
Event k v CIDADR
Table CIDMAS00
Tabl key values SUNO=<SUNO>
Table columns SUTY
CIMHEACIMLIN
Field Value
Event k v CIMHEA
Table CIMLIN00
Tabl key values IMNR=<IMNR>
Table columns FACI

CIDREFCIDMAS

Field Value
Event k v CIDREF
Table CIDMAS00
Tabl key values SUNO=<SUNO>
Table columns SUTY

CIDVENCIDMAS

Field Value
Event k v CIDVEN
Table CIDMAS00
Tabl key values SUNO=<SUNO>
Table columns SUTY

MHEXRDCIDVEN

Field Value
Event k v MHEXRD
Table CIDVEN00
Tabl key values SUNO=<SUNO>
Table columns SHAC

MHEXRHCIDVEN

Field Value
Event k v MHEXRH
Table CIDVEN00
Tabl key values SUNO=<SUNO>
Table columns SHAC

MPOEXPMPHEAD

Field Value
Event k v MPOEXP
Table MPHEAD00
Tabl key values PUNO=<PUNO>
Table columns PUSL

OAGRLNOAGRHE

Field Value
Event k v OAGRLN
Table OAGRHE00
Tabl key values CUNO=<CUNO>,AGNO=<AGNO>
Table columns AGST,STDT

OAGRPROAGRHE

Field Value
Event k v OAGRPR
Table OAGRHE00
Tabl key values CUNO=<CUNO>,AGNO=<AGNO>
Table columns STDT

The Autojob CMS914 must be restarted to enable changes or additions in (CMS045) and (CMS042). Follow these steps to restart:

  1. Open 'Subsystem Job. Open' (MNS051).
  2. Select job CMS914 and select Related > End Job.
  3. Click Refresh to clear the Active check box.
  4. Click Refresh several times until the Active check box is enabled.