- Introduction
- Getting started
- Process modeling with BPMN
- Process modeling with Case Management
- Designing a persistent case entity schema
- Defining case keys (system vs. external)
- Establishing task I/O and write-back contracts
- Exit rules and early stage termination
- Modeling primary and secondary stages
- Triggering a case from Data Fabric
- Implementing stage-level personas and permissions
- Setting SLAs and automated escalation rules
- Configuring a rework loop (re-entry)
- Managing live case instances: pause, migrate, and retry
- Maestro case management component dictionary
- Process implementation
- Debugging
- Simulating
- Publishing and upgrading agentic processes
- Common implementation scenarios
- Extracting and validating documents
- Process operations
- Process monitoring
- Process optimization
- Reference information
Maestro user guide
| Maestro Case | Maestro BPMN | |
|---|---|---|
| Content applies to | ✅ | ❌ |
Audience: Intermediate — Automation Developers and Business Architects familiar with Studio Web
Overview
This tutorial walks you through building a complete property insurance claims case from scratch using Maestro Case. By the end, you will have a fully functional case with four primary stages, three secondary stages, task mappings across multiple task types, stage rules (entry, complete, exit, re-entry), and a configured Case App — all deployed and ready to process live claim instances.
Learning objectives
After completing this tutorial, you will be able to:
- Create a case type in Studio Web with a constant prefix key.
- Set up a case trigger using Data Fabric or a connector event.
- Model primary and secondary stages on the case plan canvas.
- Add and configure tasks of different types (Human action, RPA, API, AI Agent, Maestro Agentic Process).
- Define entry, complete, exit, and re-entry rules using case entity fields.
- Configure a secondary stage with return‑to‑origin behavior.
- Configure a terminal secondary stage.
- Configure a connector‑driven secondary stage entry.
- Set up the Case App with case title and case details.
- Publish, deploy, and verify a running case.
Prerequisites
Before you start, ensure you have the following:
- Access to Studio Web , Action Apps, Integration Service, Data fabric, Maestro
- RPA workflows or API workflows available for automation tasks (for example, incident report extraction, policy lookup).
- Action apps created for Human tasks (for example, claim officer verification forms).
- Familiarity with core Maestro Case concepts: stages, tasks, and rules.
Sample package available. Download the [CM Golden demo] Property insurance claims package and import it into Studio Web to follow along or use it as a reference while building from scratch.
Step 1: creating the case
Creating a new case type
- Open Studio Web.
- Select Case Management Project to create a new project.
Setting the case name and case key
- Enter
HomeClaimsas the case name. - Select Constant Prefix Key as the case key type.
- Enter a prefix such as
HOto generate keys likeHO-1234.
The case key uniquely identifies each case instance across Maestro and external systems. The system auto‑generates a sequential number after your prefix for every new case.
Step 2: setting up the case trigger
The trigger defines what starts a new case instance and which data fields become available throughout the case lifecycle.
- Open the trigger configuration for your case management project. The imported project includes an empty trigger by default.
- Set up a Data Fabric Entity trigger using a Row Created event (or an equivalent Wait for Connector trigger event) for your Home Claims entity.
- Map the incoming entity fields to case fields. These fields become available in conditions and task inputs across all stages.
You can also pass existing data through a connector trigger. The API payload fields become case fields and are available throughout the case for conditions and task execution.
Step 3: modeling the primary stages
Primary stages represent the happy‑path phases that a claim progresses through from intake to closure.
Adding stages to the canvas
- Select the + icon beside an existing stage, or select the + icon on the canvas to add a new stage.
Creating four primary stages
Add the following stages in order:
- Intake
- Review
- Settlement
- Closure
Step 4: adding tasks to each stage
Tasks are the units of work inside each stage. Maestro Case supports Human action, RPA, API workflow, AI Agent, Maestro Agentic Process, and Child Case task types.
Adding tasks
- Select + Add Task inside a stage.
- Select the task type from the dropdown.
Configuring tasks for each stage
Add the following tasks under each stage:
Intake
| Task | Type |
|---|---|
| Extract claim details (IXP) | RPA |
| Lookup policy and historical claims | API workflow |
| Incident reports Robot | RPA |
| Anomaly agent (Snowflake) | AI Agent |
Review
| Task | Type |
|---|---|
| Coverage check | Maestro Agentic Process |
| Book appraisal | API workflow |
| Gather quotes | API workflow |
| Auditor agent (UiPath) | AI Agent |
| Claim officer verification | Human action |
Settlement
| Task | Type |
|---|---|
| Fulfilment process | Maestro Agentic Process |
| Settlement process | Maestro Agentic Process |
| Comms Agent (LangChain) | AI Agent (External) |
Closure
| Task | Type |
|---|---|
| Claim packet creation | RPA |
| Generate audit report | API workflow |
For each task, configure:
- Inputs — map case entity fields to the task's input parameters.
- Outputs — map the task's result back to case entity fields.
- Conditional execution — set an entry rule when a task should only run under specific circumstances (for example, run only when
Amount >= 1000).
Step 5: adding primary stage rules
Rules control how the case moves between stages. Every rule has three parts — a WHEN event that triggers evaluation, an optional IF condition over case entity fields, and an ACTION that decides what happens when the rule fires. Use Data Fabric fields (from the trigger) in your IF expressions.
Intake to review
-
Open the Complete rule on the Intake stage.
-
Configure:
- WHEN required tasks in the stage complete
- IF
vars.validationPassed == true
With no explicit action set, the case advances normally — the Review stage's Entry rule fires on the resulting
StageCompletedevent.
Review to settlement, denied, or pending with customer
- Open the Complete and Exit rules on the Review stage.
- Configure branches on the case decision:
- Complete rule — WHEN the claim officer review task completes IF
vars.adjusterDecision == "approve". The Settlement stage's Entry rule fires on the same event. - Exit rule — WHEN the claim officer review task completes IF
vars.action == "Reject". Routes to the Denied secondary stage via its Entry rule. - Exit rule — WHEN the claim officer review task completes IF
vars.decision IN ("Request documents", "Missing reports"). Routes to the Pending with Customer secondary stage.
- Complete rule — WHEN the claim officer review task completes IF
Configuring re-entry from review to intake
Re-entry allows a case to return to a previously completed stage for rework — for example, when key reports are missing.
- Open the Re-entry rule on the Review stage.
- Configure:
- WHEN the claim officer review task completes
- IF
vars.decision == "Claim is missing key incident reports"
- Select the specific tasks to re-run in Intake via per-task
runOnlyOncesettings on the Intake stage — leaverunOnlyOnce: falseon Incident reports Robot and Anomaly agent (Snowflake) (re-run), and setrunOnlyOnce: trueon tasks whose previous output is still valid.
This targeted re‑entry avoids re‑running all Intake tasks. Only the selected tasks execute again with updated data.
Step 6: configuring secondary stages
Secondary stages handle exception paths that diverge from the primary happy path.
Pending with customer — return to origin on completion
This stage collects additional information from the customer before returning the case to the stage that sent it.
- Add a secondary stage named Pending with Customer.
- Configure the Entry rule with two branches (so different upstream outcomes can route the case here):
- WHEN the Review claim officer task completes IF
vars.decision == "Request documents" - WHEN the Review claim officer task completes IF
vars.decision == "Missing reports"
- WHEN the Review claim officer task completes IF
- Set the Complete rule action to Return-to-origin so the case routes back to the stage that activated this one (for example, Review) once all tasks complete.
- Add tasks: Request documents, Document agent.
Denied — case-ending outcome
This stage handles claim denials and ends the case.
- Add a secondary stage named Denied.
- Configure the Entry rule:
- WHEN the Review claim officer task completes
- IF
vars.action == "Reject"
- Set the Complete rule action to Exit the case so the case ends when the denial tasks complete.
- Add tasks: Send denial packet, Generate audit report.
Withdrawn — connector-driven entry, case-ending exit
This stage handles cases where the claimant withdraws via an external event.
- Add a secondary stage named Withdrawn.
- Configure the Entry rule to listen for an external connector event:
- WHEN a Microsoft Teams Channel Message Posted event arrives (add filters and parameters as needed)
- IF (optional — add a guard such as a keyword check on the message text)
- When this external event arrives, the case enters the Withdrawn stage automatically. Because Withdrawn is a secondary stage, the entry rule defaults to
interrupting = trueand takes over any active stages.
- Set the Complete rule action to Exit the case so the case ends when the withdrawal tasks complete.
- Add tasks: Send withdrawal packet, Generate audit report.
Step 7: configuring the case app
The Case App provides a business‑ready workspace for case workers and case managers to view cases, track progress, and complete human tasks.
- Open Case Management Settings in your project.
- Select Configure case app.
- Set the Case title — the display name shown in the case list (for example, map it to the claimant name or policy number).
- Set the Case details — select the case entity fields to display on the case detail view.
Step 8: publishing, deploying, and verifying
Validating the case plan
- Review all stages, tasks, rules (entry, complete, exit, re-entry), and secondary stage configurations for completeness.
- Run the built‑in Validate check in Studio Web to catch configuration errors.
Publishing and deploying
- Publish the case plan from Studio Web.
- Deploy and activate the published case plan in a target folder.
Observing in case instance management
- Open Case Instance Management in Maestro.
- Monitor live case instances as they are created and progress through stages.
- Investigate any incidents (failed tasks, stuck cases) using the Retry or Migrate operator actions.
Monitoring in the case app
- Open the Case App in Maestro.
- View the case list, case details, timeline, and human task queue.
- Complete human tasks (for example, Claim officer verification) directly from the Case App.
Expected outcome
After completing this tutorial, you will have:
- A HomeClaims case type with a
HO-prefix key deployed in Maestro. - A case trigger linked to your Data Fabric entity or connector event.
- Four primary stages (Intake, Review, Settlement, Closure) with tasks mapped to RPA, API, Human, and AI Agent task types.
- Three secondary stages (Pending with Customer, Denied, Withdrawn) with entry rules, Exit the case actions, and Return-to-origin behavior.
- Stage rules including entry, complete, exit, and a re-entry rule from Review back to Intake.
- A configured Case App displaying case title and case details for business users.
- A live deployment where new case instances are created by the trigger and progress through stages as tasks complete.
To verify success:
- Trigger a new case instance (for example, create a row in the Data Fabric entity).
- Confirm the case appears in Case Instance Management with a
HO-prefix key. - Confirm the case appears in the Case App and progresses through the Intake stage.
- Complete a human task in the Case App and verify the case advances to the next stage.
Troubleshooting
| Symptom | Possible cause | Resolution |
|---|---|---|
| Case instance does not start | Trigger is not configured or entity event is not firing | Verify the trigger setup in the case project. Confirm the Data Fabric entity or connector event is active. |
| Case is stuck in a stage | Exit rule is not met or a required task has not completed | Check the exit rule expression. Verify all required tasks have produced output. |
| Re-entry does not trigger | Re-entry rule expression does not match the current variable value | Open the Re-entry rule and verify the expression matches the exact output value from the Review tasks. |
| Secondary stage does not activate | Entry rule does not match | Verify the variable or connector event that should trigger the secondary stage entry. |
| Tasks are not visible in the Case App | Case App configuration is missing or the deployment is outdated | Re‑open Configure case app, verify title and details, then republish and redeploy. |
Limitations
- Case user roles and access (stage‑aware permissions for Case Workers and Case Managers) are not yet available.
- Native case‑entity support in Data Fabric is not yet available. Use a Data Fabric VDO or connector trigger payload for now.
- Maestro Case follows the same billing as Maestro. Work run inside a case consumes the native consumables of the task types you use (AI Agents, RPA workflows, API workflows, IS connectors).
Next steps
- Explore the sample package: Download [CM Golden demo] Property insurance claims and import it into Studio Web to compare it against your build.
- Add SLAs and escalations: Define case‑level and stage‑level SLAs with at‑risk and breach escalation rules. See SLAs and escalations.
- Configure the Case Manager Agent: Set up the Case Manager Agent that orchestrates the case lifecycle — rules-first, with agent reasoning as fallback for exceptions.
- Build a custom Case App: Extend the out‑of‑box Case App with the pro‑code SDK for bespoke views and actions. See Case App customization.
- Add a Child Case: Configure a child case task (for example, a fraud investigation sub‑case) that runs its own lifecycle linked to the parent claim.
- Overview
- Learning objectives
- Prerequisites
- Step 1: creating the case
- Creating a new case type
- Setting the case name and case key
- Step 2: setting up the case trigger
- Step 3: modeling the primary stages
- Adding stages to the canvas
- Creating four primary stages
- Step 4: adding tasks to each stage
- Adding tasks
- Configuring tasks for each stage
- Step 5: adding primary stage rules
- Intake to review
- Review to settlement, denied, or pending with customer
- Configuring re-entry from review to intake
- Step 6: configuring secondary stages
- Pending with customer — return to origin on completion
- Denied — case-ending outcome
- Withdrawn — connector-driven entry, case-ending exit
- Step 7: configuring the case app
- Step 8: publishing, deploying, and verifying
- Validating the case plan
- Publishing and deploying
- Observing in case instance management
- Monitoring in the case app
- Expected outcome
- Troubleshooting
- Limitations
- Next steps