ion actions.md

ION Actions

ION Actions allows you to define, manage, and automate business rules that govern your manufacturing processes directly within ION, leveraging the power and flexibility of GraphQL. Actions enable users to create, edit, update, or delete rules that determine workflow behaviors, enforce data validation, and manage conditions for status transitions.

Key Action Fields

Each Action consists of key attributes that define its behavior and purpose:

Use cases for Actions include:

Actions Statuses

Below is guidance on creating and managing Actions effectively:

Remember, you must enable rules within your organizational settings before using Actions to automate and enforce your processes. To do so you can follow the following instructions:

Turn rules on in your environment:

First, rules must be enabled in your organization settings in order to use them.

Check that the rules are enabled with the below query:

{
  me {
    organization {
      id
      _etag
      settings {
        rules {
          enabled
        }
      }
    }
  }
}

If they are not, enable them with this mutation:

mutation UpdateOrganization($input: UpdateOrganizationInput!) {
  updateOrganization(input: $input) {
    organization {
      settings {
        rules {
          enabled
          errorState
          errorStateMessage
        }
      }
    }
  }
}

With the following input variables (retrieve the etag from the first query):

{
  "input": {
    "id": <populate from first query>,
    "etag": "<populate from first query>",
    "settings": {
      "rules": {
        "enabled": true
      }
    }
  }
}