Every Velaris feature is built on a small set of precisely-defined concepts — understand these 20 terms and the entire platform becomes predictable.
| Term | Definition | Key Attributes |
|---|---|---|
| Case Type | The template or blueprint that defines a class of business process. "Customer Onboarding" and "Loan Application" are case types. A case type defines stages, steps, forms, SLA rules, access restrictions, and connector configurations. It is versioned via HxBranch. | slug, name, description, stages, sla_config, access_group_id, version |
| Case | A single running instance of a case type — the actual unit of work. When a customer submits a request, a case is created. Cases progress through stages, accumulate events, store form data in JSONB, and eventually reach a terminal state (resolved or cancelled). | id, case_number, status, current_stage_id, assignee_id, data (JSONB), sla_deadline |
| Stage | A named phase within a case type's lifecycle. Stages group related steps. Cases move through stages sequentially or in parallel depending on the stage type. Each stage has an entry condition, contained steps, and exit transitions. | name, stage_type (sequential/parallel/decision/loopback/terminal), order, transitions |
| Step | An individual task within a stage. Steps are completed by agents (or automated via connectors). A step has a step type that determines its behavior — a standard step presents a form; a payment_request step invokes Stripe. All steps must be completed before a stage can transition. |
name, step_type, form_id, connector_id, is_required, order |
| Form | The data collection definition attached to a step. A form is a schema — an ordered list of fields with types, labels, validations, and visibility conditions. Form data is serialized into the case's JSONB data field at step completion. |
fields (ordered array), submit_label, schema_version |
| Field | A single input within a form. Velaris supports 12 field types. Each field can have validation rules, visibility conditions (show only if another field equals a value), and calculated expressions. Dropdown fields can be backed by connector data. | key (unique within form), type, label, required, validation, visibility, default |
| Access Group | An organizational unit that controls which users can see and work on which cases. Access groups support nesting — a parent group's members can read (but not act on) cases in child groups. Every case type is associated with an access group. | name, slug, parent_id, members (user list with permission levels) |
| SLA | A Service Level Agreement configuration attached to a case type or individual stage. Defines the target completion duration, warning threshold, business hours calendar, and escalation action triggered on breach. | duration_hours, warning_pct, business_hours_only, calendar_id, escalation_action, pause_conditions |
| Connector | A pre-built integration adapter that backs a step type. Connectors hold credentials and configuration (API keys, endpoints, webhook secrets). They are shared across case types. Examples: the Stripe connector backs payment_request steps; the Onfido connector backs identity_verify steps. |
connector_type, name, config (encrypted JSONB), is_active |
| HxNexus | The AI assistant embedded throughout Velaris. AI-powered, with a pluggable backend (Anthropic, Ollama, OpenAI-compatible). HxNexus answers natural language questions about cases, summarizes queues, detects anomalies, explains concepts, and suggests next actions. It queries the live database and HxGraph in real time. | Query endpoint: POST /api/v1/ai/nexus/query, streaming via SSE |
| HxGraph | The platform's live semantic knowledge graph. Nodes represent case types, stages, steps, forms, fields, modules, endpoints, access groups, connectors, and concepts. Edges represent structural, semantic, and similarity relationships. Built automatically from the database; queryable in natural language. | Endpoints: /api/v1/graph/query, /graph/path, /graph/explain, /graph/similar |
| Step Type | The behavioral category of a step. The step type determines whether the step presents a form to an agent, invokes an external connector, or does both. For example, payment_request invokes Stripe and records the payment result; standard simply renders a form. Step types are fixed at the platform level. |
Values: standard, payment_request, payment_disbursement, identity_verify, esign_send, crm_sync, invoice_generate, sms_send, slack_notify, doc_extract, doc_store, custom_http |
| Tenant | A top-level organizational isolation boundary. In multi-tenant deployments managed by HxGlobal, each tenant has its own schema namespace, data residency policy, and SSO configuration. In single-tenant deployments, there is one implicit tenant. | tenant_id, region, data_residency_policy, sso_config |
| Variable | A named value carried by a case. Variables are the addressable surface of case data — rules bind to them, forms pre-fill from them, and search indexes them. The namespace is flat by design; hierarchical names are rejected rather than silently flattened. Platform-supplied values live under velaris.*. |
key (flat, unique per case), type, value, source (form / rule / identity / promoted) |
| Draft | A proposed configuration change that is not yet live. Drafts are reviewed as diff cards — rule, case type, form, connector config, escalation — and carry a checksum so a conflicting concurrent edit is rejected rather than merged blindly. A draft becomes real only when a human merges it. | kind, diff, checksum, status (draft / merged / rejected) |
| Feature Flag | The per-tenant switch that turns a module on. Flags are versioned rows in the database seeded from the release manifest — not environment variables. A module can be present in the code and completely dark to a tenant whose flag is off. | flag, version, checked via is_feature_enabled |
| Capability Grant | The explicit, admin-approved permission set a marketplace app runs under. A grant can only ever be a subset of what the installing admin holds, names the exact hosts the app may reach, and can be revoked instantly. Nothing an app does happens outside its grant. | package_id, capabilities, granted_domains, status, revoked_at |
| Session | A real-time meeting attached to a case (HxMeet). Sessions carry participants, single-use guest invites, and — only with recorded consent — a sealed recording and transcript that are tenant-DEK encrypted and anchored in the audit chain. | case_id, driver, participants, recording_consent, sealed_at |
| Replay | Re-running a closed case, or a cohort of them, against a changed configuration to see what would have happened. Results are labelled by how they were derived, so an estimate is never presented as a determinate outcome. | scope (single / cohort), baseline, variant, confidence_label |
| Customer Account | The identity a portal customer signs in with, distinct from a platform user. Supports passwordless login by OTP or magic link, spans a customer's case history, and is tenant-scoped so the same email in two tenants is two accounts. | email, tenant_id, portal_enabled, linked cases |
Every case progresses through a well-defined set of states. The state machine is not strictly linear — cases can be placed on hold, escalated, returned to previous stages (via loopback stages), or cancelled at any point.
┌──────────────────────────┐
│ CASE SUBMITTED │
│ status: open │
└────────────┬─────────────┘
│ Agent claims
▼
┌──────────────────────────┐
│ INTAKE STAGE │
│ status: in_progress │
└────────────┬─────────────┘
│ Steps complete
┌────────────▼─────────────┐
│ REVIEW STAGE │<---- Return / Loopback
│ status: in_progress │
└────────────┬─────────────┘
┌───────────┴───────────┐
│ Decision Transition │
┌─────▼──────┐ ┌──────▼──────┐
│ APPROVAL │ │ REJECTION │
│ STAGE │ │ STAGE │
└─────┬──────┘ └──────┬──────┘
│ │
┌──────▼──────┐ ┌──────▼──────┐
│ RESOLVED │ │ CANCELLED │
│ (terminal) │ │ (terminal) │
└─────────────┘ └─────────────┘
At any stage:
┌──────────────────────────────────────────────┐
│ on_hold ----> (resumed) ----> in_progress │
│ escalated ----> (handled) ----> in_progress │
└──────────────────────────────────────────────┘
| State | Meaning | Can Transition To |
|---|---|---|
open |
Created, not yet claimed or worked | in_progress, cancelled |
in_progress |
Claimed and actively being processed | on_hold, escalated, resolved, cancelled |
on_hold |
Paused — waiting for external information or action | in_progress, cancelled |
escalated |
Flagged as needing higher-level attention (SLA breach or manual escalation) | in_progress, resolved, cancelled |
resolved |
Successfully completed — terminal state | None |
cancelled |
Closed without completion — terminal state | None |
The nesting of case type components follows a strict containment hierarchy. Understanding this hierarchy is essential when designing workflows in Studio and when querying the API.
Case Type (e.g., "Loan Application") │ ├── Stage 1: Application Intake [sequential] │ ├── Step 1.1: Personal Details [standard] │ │ └── Form: personal_details_v1 │ │ ├── Field: full_name [text, required] │ │ ├── Field: date_of_birth [date, required] │ │ └── Field: loan_amount [number, min=1000] │ └── Step 1.2: Document Upload [standard] │ └── Form: document_upload_v1 │ └── Field: id_document [file, required] │ ├── Stage 2: Identity Verification [sequential] │ └── Step 2.1: Verify Identity [identity_verify > Onfido] │ ├── Stage 3: Credit Decision [decision] │ ├── Transition A > Stage 4 (Approved) guard: data.credit_score >= 650 │ └── Transition B > Stage 5 (Declined) guard: data.credit_score < 650 │ ├── Stage 4: Approval & Disbursement [sequential] │ ├── Step 4.1: Manager Approval [standard] │ └── Step 4.2: Disburse Funds [payment_disbursement > Stripe] │ └── Stage 5: Declined Notification [terminal] └── Step 5.1: Send SMS [sms_send > Twilio]
payment_request steps in multiple case types.
The step type is the single most important configuration choice for a step because it determines the runtime behavior and which connector (if any) is invoked. A standard step is purely human-driven — an agent sees a form and submits it. All other step types invoke an external system via a connector, and many also surface result data back into the case's JSONB data store.
| Step Type | Human Action? | Connector Required? | What It Does |
|---|---|---|---|
standard |
Yes | No | Agent completes a form. Data saved to case JSONB. |
payment_request |
Notifies customer | Yes (Stripe) | Creates a Stripe Checkout session; records payment ID and status back to case. |
identity_verify |
No (automated) | Yes (Onfido) | Submits applicant data to Onfido; writes identity_check_result to case data. |
esign_send |
Notifies signatory | Yes (DocuSign) | Creates a DocuSign envelope; writes signing URL and status to case data. |
slack_notify |
No (automated) | Yes (Slack) | Posts a message to a configured Slack channel with case details. |
custom_http |
Optional | Yes (Custom HTTP) | Calls any REST API with configurable method, headers, body template, and response mapping. |