Skip to main content
This guide walks you through creating a TWU model in Veratrace.

Prerequisites

  • Access to a Veratrace instance
  • Appropriate permissions to create TWU models
Source: Feature Inventory - UI Flows (TWU Models)

Step 1: Navigate to Create Page

Go to /twu-models/create in the application. Source: Feature Inventory - UI Flows (TWU Models)

Step 2: Define Model Basics

Provide:
  • Name - Model name
  • Description - Model description
Source: Feature Inventory - Core Objects (TWU Model)

Step 3: Define Entities

Entities are objects that work operates on. Define the entities your model will use. Source: Feature Inventory - Core Objects (TWU Model)

Step 4: Define Actions

Actions are operations performed on entities. Define what actions your model supports. Source: Feature Inventory - Core Objects (TWU Model)

Step 5: Define Events

Events are state changes or occurrences. Define what events your model tracks. Source: Feature Inventory - Core Objects (TWU Model)

Step 6: Define Outcomes

Outcomes are results with expressions. Define how to compute outcomes from work operations. Source: Feature Inventory - Core Objects (TWU Model)

Step 7: Create Draft Version

Save the model to create a draft version. Draft versions can be edited before publishing. API: POST /instances/:instanceId/twu-models Source: Feature Inventory - API Surface (TWU Models API)

Step 8: Publish Model

Once the draft is ready, publish it to make it available for use. API: POST /instances/:instanceId/twu-models/:modelId/publish Source: Feature Inventory - API Surface (TWU Models API)

Versioning

To make changes to a published model:
  1. Create a new version
  2. Edit the new version
  3. Publish when ready
Old versions remain available and can be archived. API: POST /instances/:instanceId/twu-models/:modelId/versions Source: Feature Inventory - API Surface (TWU Models API)