Create the add item class workflow
- Last UpdatedJan 21, 2026
- 4 minute read
To create a workflow for the Add an Item Class test procedure:
-
From a web browser, log in to the Work Tasks Enterprise Console as an MES user.
-
On the left menu, select the Workflows icon.
The Workflows page appears.
-
On the action, click New, then select the MES icon.
A New MES Workflow window appears.

-
Complete the fields and options as follows:
Title
The workflow title (e.g., ItemClass.Add).
Description
A description of the workflow.
Unique Environment Name
Select the environment name (e.g., MESDB_MES).
MES Middleware Machine Name
Select the MES middleware connection (e.g., mes40).
Event Name
Select the event that was created, Prod.ItemClass.Add
Pre/Post Hook
Select Post Hook.
Object Name
Type item_class.
-
Select Next and then select Save & Continue.
The Workflow Options window appears. The option on the workflow tasks defaults to Design the workflow now.
-
Select Finish.
A workflow window appears. It includes a Start activity by default.
-
In the Activities list, click Human Activities.
-
Select and drag the Information activity onto the window to the right of the Start activity.

-
On the tool bar, select the Link icon and create a link from the Start activity to the Information1 activity.

-
Right-click the Information1 activity and select Activity Properties.
-
In the Actors section of the Activity Properties pane, select the Assign Actor(s) box button.
The Assign Actor(s) window appears.

-
Select the User option.
The User Lookup window appears.
-
In the list at the upper right, select MES Users.
-
In the search box, type an MES user and select user_name.user_id in the list.

-
Select Search.
The user appears in the Available Resources box.
-
Select the user and select the right arrow button to add the user to the Selected Resources box.

-
Select Update.
The user appears in the Assign Actor(s) window.

-
Select Update to save the assigned actor and close the Assign Actor(s) window.
-
In the Notification Contents section of the Activity Properties pane, select the Subject box button.
The Subject window appears.
-
In the main box, type New Item Class Created and press Enter.

-
In the first field list, select XML Variables.
-
In the second field list, select MESEventData.
-
Select the third list’s button.
A tree of available XML variables appears.

-
Select the item_class_id variable.
The tree closes and the variable is entered in the third list.
-
Press Enter to create a new line and then select the Append button.
The variable is added to the main box.

-
Use the same procedure to add the following variables to the main box:
-
item_class_desc
-
produced

-
-
Select the Update button.
The Subject window closes.
-
At the bottom of the Activity Properties pane, select Save and close the workflow window.
-
In the Workflows window, right-click the ItemClass.Add workflow and select Publish.
A message appears indicating the status of the publish operation.
-
Select Close to close the message.