Please ensure Javascript is enabled for purposes of website accessibility
Powered by Zoomin Software. For more details please contactZoomin

AVEVA™ Work Tasks Extension and Connector for MES 7​.1

Create an MES event and workflow trigger

  • Last UpdatedOct 17, 2025
  • 4 minute read

The MES Workflow Event Creator utility allows you to create an event that triggers a workflow using an MES middleware extensibility hook. The utility is installed as part of the Work Tasks Connector for MES installation.

The following procedure uses the creation of an event based on the MES Stateless API method Prod.ItemClass.Add as an example.

Create the MES event and workflow trigger

  1. From the Start menu, open Workflow Event Creator.

  2. In the box at the upper left, enter the class that includes the Stateless API method on which to base the event.

    A list of Stateless APIs that match the entry appears.

    Workflow event creator select API or stored procedure name.

  3. In the list, select the method (for example, Prod.ItemClass.Add).

  4. Select the Process button.

    The parameter grid appears.

  5. In the parameter grid list, add the parameters that must be matched for the event to trigger the associated workflow (for example, item_class_id, item_class_desc, and produced).

    Workflow event creator with parameter grid list.

    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.

  6. When you have finished adding the parameters, click 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.

  7. Select OK to close the message.

  8. To confirm that the event was added:

    1. Select the Lists icon on the Enterprise Console dashboard and then select MES Events.

      Work Tasks Enterprise Console dashboard MES Events menu.

      The MES events are listed.

      Work Tasks Enterprise Console MES events list.

    2. 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.

      MES Event edit list item.

  9. To add a hook in the MES middleware to trigger the workflow for the event, on the Workflow Event Creator window, select the Provision Pre Hook or Provision Post Hook button.

    MES Workflow Event Creator dialgo pre and post provision hooks.

    A message appears that confirms the successful provisioning of the event, and indicating that the MES middleware service need to be restarted.

    Sucessful event provisioning message.

  10. Select OK to close the message.

  11. Close the Workflow Event Creator window and restart the MES middleware service.

  12. 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.

Middleware configuration editor extensibility hooks tab.

Related Links
TitleResults for “How to create a CRG?”Also Available in