Create the add job workflow
- Last UpdatedJan 21, 2026
- 3 minute read
Design and configure a sequence of activities that define process logic within the Work Tasks environment. Build workflows that automate tasks, manage data, and interact with MES systems.
Create a workflow for the Add a Job test procedure
-
From a web browser, log in to the Enterprise Console as an MES user.
-
On the Enterprise Console left menu, select the Workflows icon.
The Workflows page appears.
-
On the action, select New, then select the Workflow icon.
A New Workflow window appears.

-
Type the title (for example, Job.Add), and then select Save and Continue.
A success message appears.
-
Select Close.
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, select Engine Activities.
-
Select and drag the Update Variable activity onto the window to the right of the Start activity.

-
On the Activities menu, select MES.
-
Select and drag the MESXMLCommand activity onto the window to the right of the UpdateVariable activity.

-
On the tool bar, select the Link icon and create a link from the Start activity to the UpdateVariable1 activity.
-
Create another link from the UpdateVariable1 activity to the MESXMLCommand1 activity.

-
Right-click the link between the UpdateVariable1 and MESXMLCommand1 activities and select Updated.
-
Right-click the MESXMLCommand1 activity and select Activity Properties.
-
In the Configuration section of the Activity Properties pane, select the Generate Command box button.

The Generate Command window appears.
-
In the Unique Environment Name list, select the environment (for example, MESDB_MES).
-
In the Stateless API/SP Reference box, begin typing Prod.Job.Add until that entry appears in the list and select it.
-
Select the Generate Input XML Variable check box and type job_input in the box.
-
Select the Generate Output XML Variable check box and type job_output in the box.

-
Select the Generate XML Variables button.
-
At the bottom of the Activity Properties pane, select Save and close the workflow window.