Create the MES add item class event
- Last UpdatedJan 21, 2026
- 3 minute read
You have to create a Prod.ItemClass.Add event for this test procedure.
Create the MES event
-
Open MES Workflow Event Creator.
-
In the box at the upper left, enter Prod.ItemClass.
A list of Stateless APIs that match the entry appears.

-
In the list, select Prod.ItemClass.Add.
-
Select the Process button.
The parameter grid appears.
-
In the parameter grid lists, select item_class_id, then item_class_desc, and then produced.

The selected parameters will be available in the event and will be created as part of the XML variable inside the workflow. You can choose to make these parameters required or optional.
While associating this event with the workflow, you can give filter values for this parameter. If the parameter is mandatory, then while associating this event with the workflow, a value must be provided for it. At run time (while raising the event), the parameter's runtime value should match with its association time value. If the value matches, then it will trigger the workflow or alert the wait-for-MES-event activity.
-
Every mandatory parameter's runtime value should match with its association time value.
-
Every optional parameter's values specified while associating the workflow should match with its runtime value.
-
If for any optional parameter, value is not specified at the association screen, that parameter will be ignored.
-
-
When you have finished adding the parameters, select the Provision event in all connected Workflow Repositories button.
Events are added to all connected repositories. If the same event already exists in any of the repositories, you will be prompted as to whether you want to overwrite the existing event.
When the provisioning is completed, a message appears that confirms the successful provisioning of the event.
-
Select OK to close the message.
-
To confirm that the event was added:
-
Select the Lists icon on the Enterprise Console Dashboard and then select MES Events.

The MES events are listed.

-
To view or edit the new event's parameters, select the event, and then select the Edit icon on the toolbar.
The Edit list item dialog appears.

-
-
To add the hook in the MES middleware to trigger the workflow for the event, on the Workflow Event Creator window, select the Provision Post Hook button.
A message appears that confirms the successful provisioning of the event, and indicating that the MES middleware service needs to be restarted.
-
Select OK to close the message.
-
Close the MES Workflow Event Creator window and restart the MES middleware service.
-
To confirm that the hook was added to the MES middleware, from the Start menu open Middleware Configuration Editor and go to the Extensibility Hooks tab.
An entry for the stored procedure that corresponds to the event should be listed, and the event file name should appear in the Post Hook Name column.