How To: Create or Import a DEE Action#
DEE (Dynamic Execution Engine) Actions are C# code blocks that extend MES behavior. In the context of Automation Scheduled Action, they can be used at any pipeline stage to integrate with external systems or express logic that built-in types cannot cover.
The tutorial provides pre-written DEE stubs in scenarios/dees/. The fastest path is to import those files directly (Option 1). If you need to create a new action from scratch, use Option 2.
Option 1 - Import a C# File#
- Navigate to Administration → DEE Actions.
- Select Import on the top ribbon.
- Select and upload the
.csfile. - MES creates the action and validates the code automatically.
- Open the imported action and confirm Is Enabled is set correctly before use.
For reference, see Importing a DEE Action ⧉.
Option 2 - Create Manually#
- Navigate to Administration → DEE Actions.
- Select New DEE Action.
- Enter a name - you will reference it in the ASA Definition.
- Optionally, enter a description and classification.
- Set
Is Enabledto the desired state. A disabled action will not execute. - If the DEE Action should run automatically as part of pre-action or post-action logic, add it to one or more DEE Action Groups. For ASA-specific actions, groups are not required.
- The Test Condition must return
truefor the action code to run asfalseto skip it. - Edit the DEE Action Code and paste or write your C# implementation.
- Select Save. The code is validated automatically. You can also validate explicitly at any time using Validate.
For reference, see Creating DEE Actions ⧉.