DecisioQ System Architecture Decision Concepts Decision List API Guide Client Kit Developer Center Decision Studio Quick Start Playground End-to-End Examples

AUTO-REPR-004 End-to-End Example

Prioritize Repair Order compares active jobs using safety criticality, customer urgency, completion risk, margin, parts readiness, and technician fit.

AutomotiveAuto RepairRepair OperationsTOPSIS
Repair OrdersCollect job and resource signals
Input SchemaValidate business records
MappingPrepare canonical criteria
Decision EngineRank alternatives
Work QueueReview repair priorities

Decision Summary

Business question: Which repair order should be recommended for prioritize repair order in the selected Auto Repair context?

Outcome: a ranked recommendation that supports, but does not replace, accountable business judgment.

Criterion IDMeaningDirectionWeightUnit
safety_criticality_scoreSafety Criticality Scoremaximize25.0%Score
customer_urgency_scoreCustomer Urgency Scoremaximize20.0%Score
promised_completion_riskPromised Completion Riskminimize15.0%Score
gross_margin_scoreGross Margin Scoremaximize15.0%Score
parts_readiness_scoreParts Readiness Scoremaximize15.0%Score
technician_match_scoreTechnician Match Scoremaximize10.0%Score

5-Minute Quick Path

Goal

Run Prioritize Repair Order with a complete candidate set.

Recommended mode

Business Data Mode when you have ordinary operational records.

You provide

Candidate business records matching the published input schema.

DecisioQ returns

A ranked recommendation with score evidence.

First working request →

Data Preparation Guide

Business records
Input schema
Preparation profile
Canonical criteria
TOPSIS ranking

Business Data uses domain-shaped records and the published mapping profile. Prepared Criteria bypasses mapping and supplies canonical criterion IDs directly. Never send both modes in one request.

Business sourceCanonical target
option.assessment.safetyCriticalityScoresafety_criticality_score
option.assessment.customerUrgencyScorecustomer_urgency_score
option.risk.promisedCompletionRiskpromised_completion_risk
option.assessment.grossMarginScoregross_margin_score
option.assessment.partsReadinessScoreparts_readiness_score
option.assessment.technicianMatchScoretechnician_match_score

Business Data Mode

This complete illustrative request comes from certification case valid-generated-business-payload. It demonstrates shape and mapping, not production data.

{
  "decisionId": "AUTO-REPR-004",
  "mappingProfileId": "auto-repair-prioritize-repair-order-auto-repr-004",
  "businessData": {
    "requestContext": {
      "sourceSystem": "automotive-profile-factory",
      "correlationId": "factory-auto-repr-004"
    },
    "repairOrders": [
      {
        "optionId": "REPAIR-004-01",
        "name": "Prioritize Repair Order Option 1",
        "assessment": {
          "safetyCriticalityScore": 62.0,
          "customerUrgencyScore": 68.0,
          "grossMarginScore": 74.0,
          "partsReadinessScore": 23.0,
          "technicianMatchScore": 75.0
        },
        "risk": {
          "promisedCompletionRisk": 61.0
        }
      },
      {
        "optionId": "REPAIR-004-02",
        "name": "Prioritize Repair Order Option 2",
        "assessment": {
          "safetyCriticalityScore": 78.0,
          "customerUrgencyScore": 80.0,
          "grossMarginScore": 26.0,
          "partsReadinessScore": 56.0,
          "technicianMatchScore": 25.0
        },
        "risk": {
          "promisedCompletionRisk": 72.0
        }
      }
    ]
  }
}

Download Business Data request

Prepared Criteria Mode

This complete request is the published expected-canonical artifact. Values and names remain illustrative.

{
  "decisionId": "AUTO-REPR-004",
  "mappingProfileId": "auto-repair-prioritize-repair-order-auto-repr-004",
  "mappingProfileVersion": "1.0.0",
  "profileId": "balanced",
  "scenarioId": "standard",
  "algorithm": "TOPSIS",
  "weightStrategy": "Expert",
  "runSensitivity": false,
  "requestContext": {
    "correlationId": "factory-auto-repr-004"
  },
  "options": [
    {
      "optionId": "REPAIR-004-01",
      "name": "Prioritize Repair Order Option 1",
      "values": {
        "safety_criticality_score": 62.0,
        "customer_urgency_score": 68.0,
        "promised_completion_risk": 61.0,
        "gross_margin_score": 74.0,
        "parts_readiness_score": 23.0,
        "technician_match_score": 75.0
      }
    },
    {
      "optionId": "REPAIR-004-02",
      "name": "Prioritize Repair Order Option 2",
      "values": {
        "safety_criticality_score": 78.0,
        "customer_urgency_score": 80.0,
        "promised_completion_risk": 72.0,
        "gross_margin_score": 26.0,
        "parts_readiness_score": 56.0,
        "technician_match_score": 25.0
      }
    }
  ]
}

Download Prepared Criteria request

Understanding the Result

The score is a relative TOPSIS closeness coefficient within this candidate set; it is not a probability. The winner below was computed by DecisioQ.DecisionEngine.Services.TopsisEngine in-process from the published canonical request.

RankOptionIDScore
1Prioritize Repair Order Option 2REPAIR-004-020.601205
2Prioritize Repair Order Option 1REPAIR-004-010.398795

Winner: REPAIR-004-02. Download verified local result

Profiles and Scenarios

Profiles: balanced, speed_focused, quality_focused, customer_focused

Scenarios: standard, high_workload, customer_waiting, quality_control

Profiles change business priorities; scenarios represent operating context. Re-run the same candidate set and compare winner, score gap, and criterion contribution before adopting a change.

Sensitivity Analysis

Vary the highest-weight criteria in small increments and record whether the winner changes. A stable winner across reasonable weight changes is stronger evidence than a large score in one configuration.

Scenario Analysis

Use a published scenario only when it represents the intended operating context: standard, high_workload, customer_waiting, quality_control. Compare the winner, ranking gap, and trade-offs with the baseline run.

Integration Examples and Next Steps

Use the API guide and client kit to transport either request mode. This example intentionally does not duplicate authentication, routing, Key Vault, usage accounting, or operational logging guidance.

Review the batch validation report, replace illustrative data with governed business data, and add domain acceptance thresholds before rollout.