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

AUTO-RECY-001 End-to-End Example

Prioritize Vehicle Dismantling

Try the interactive showcase

Automotive Recycling & SalvageBusiness Data + Prepared CriteriaAHP priorities

Decision Overview

Prioritize dismantling candidates using business value, cost, operational fit, customer impact, and risk.

Include only vehicles cleared for dismantling under your safety, ownership, and environmental procedures. Ratings are governed assessments on a 1–5 scale, not measured recovery percentages. Compare costs over the same work scope and currency; this ranking does not authorize dismantling.

Catalog decision: AUTO-RECY-001. Sector: Automotive Recycling & Salvage. Samples are fictional, not operational advice or production observations.

5-Minute Quick Path

  1. Review the three candidates in the interactive showcase.
  2. Start with the first working Business Data request, or send Prepared Criteria when values are already calculated.
  3. Inspect the ranking and rerun with changed inputs or AHP priorities.

Criteria and Scales

Use raw values in the published units. The engine normalizes them. AHP changes importance, not the direction or scale of an input.

IDMeaningUnitValidationDirectionBalanced weight
business_valueBusiness ValueRatingrating_1_to_5maximize25%
cost_impactCost ImpactCurrencynon_negative_currencyminimize20%
operational_fitOperational FitRatingrating_1_to_5maximize20%
customer_impactCustomer ImpactRatingrating_1_to_5maximize20%
risk_levelRisk LevelRatingrating_1_to_5minimize15%

Data Preparation Guide

Business records → input schema → mapping profile → canonical criteria → ranking.

Use mapping profile automotive-recycling-prioritize-vehicle-dismantling-auto-recy-001 version 1.0.0. These records contain business assessments as well as measurements; this profile renames and reshapes them, but does not infer scores from free text. Govern rating and scoring rubrics before production use.

The showcase collects Prepared Criteria directly. Its sample values match both downloadable request modes below.

Mapping profile · Input schema

Business sourceCanonical criterionTransformation
option.dismantling.operations.businessValuebusiness_valueDirect value; no unit conversion
option.financial.costImpactcost_impactDirect value; no unit conversion
option.dismantling.operations.operationalFitoperational_fitDirect value; no unit conversion
option.dismantling.operations.customerImpactcustomer_impactDirect value; no unit conversion
option.risk.riskLevelrisk_levelDirect value; no unit conversion

Business Data Mode

Complete illustrative request with three candidates and an explicit decisionVersion. Send it to the decision execute endpoint; do not add an options array to this envelope.

Response identifiers: the current published profile uses root-relative identity paths, so translation returns generated IDs option-1, option-2, and option-3 in input order, with fallback option names. Map these back to the source records by that order. Prepared Criteria retains the explicit source IDs and names. Preserving source identity in Business Data requires a reviewed profile update; this example does not modify the deployed profile.
{
  "decisionId": "AUTO-RECY-001",
  "decisionVersion": "1.0.0",
  "businessData": {
    "requestContext": {
      "sourceSystem": "automotive-profile-factory",
      "correlationId": "factory-auto-recy-001"
    },
    "salvageLots": [
      {
        "optionId": "SALVAGE-A",
        "name": "Compact hatchback",
        "dismantling": {
          "operations": {
            "businessValue": 4.1,
            "operationalFit": 4.8,
            "customerImpact": 3.8
          }
        },
        "financial": {
          "costImpact": 850
        },
        "risk": {
          "riskLevel": 1.5
        }
      },
      {
        "optionId": "SALVAGE-B",
        "name": "Delivery van",
        "dismantling": {
          "operations": {
            "businessValue": 4.8,
            "operationalFit": 3.6,
            "customerImpact": 4.7
          }
        },
        "financial": {
          "costImpact": 1700
        },
        "risk": {
          "riskLevel": 2.8
        }
      },
      {
        "optionId": "SALVAGE-C",
        "name": "Family sedan",
        "dismantling": {
          "operations": {
            "businessValue": 3.6,
            "operationalFit": 4.2,
            "customerImpact": 4.1
          }
        },
        "financial": {
          "costImpact": 620
        },
        "risk": {
          "riskLevel": 1.8
        }
      }
    ]
  }
}

Download Business Data request

Prepared Criteria Mode

The same candidates after direct mapping. This request uses the balanced profile with no named scenario. Do not add businessData to this envelope.

{
  "decisionId": "AUTO-RECY-001",
  "decisionName": "Prioritize Vehicle Dismantling",
  "profileId": "balanced",
  "scenarioId": null,
  "options": [
    {
      "optionId": "SALVAGE-A",
      "name": "Compact hatchback",
      "values": {
        "business_value": 4.1,
        "cost_impact": 850,
        "operational_fit": 4.8,
        "customer_impact": 3.8,
        "risk_level": 1.5
      }
    },
    {
      "optionId": "SALVAGE-B",
      "name": "Delivery van",
      "values": {
        "business_value": 4.8,
        "cost_impact": 1700,
        "operational_fit": 3.6,
        "customer_impact": 4.7,
        "risk_level": 2.8
      }
    },
    {
      "optionId": "SALVAGE-C",
      "name": "Family sedan",
      "values": {
        "business_value": 3.6,
        "cost_impact": 620,
        "operational_fit": 4.2,
        "customer_impact": 4.1,
        "risk_level": 1.8
      }
    }
  ]
}

Download Prepared Criteria request

Understanding the Result

Verified local computation, not a hosted API response. The repository TOPSIS engine ranked these exact samples in-process. TOPSIS scores are relative closeness coefficients, not probabilities or confidence percentages.

RankCandidateScore
1Compact hatchback0.555007
2Delivery van0.500000
3Family sedan0.462554

Winner: SALVAGE-A. Download computation and AHP verification.

Check candidate eligibility and input evidence before acting. Adding or removing candidates can change normalization and the ranking. The showcase displays the actual service response, which may differ when the deployed catalog or configuration differs.

AHP Weights and Sensitivity

Open the paired showcase, choose “Help me generate weights (AHP)”, complete every comparison, and generate consistent weights before running. Option scores describe performance; weights express importance. Read the explanation.

Change one judgment or one measured input at a time, regenerate weights if needed, and compare the winner and score gap. A single unchanged winner is not a formal stability guarantee.

Profiles and Scenarios

The baseline uses balanced and scenarioId: null. Retrieve the deployed decision definition before selecting another profile or named scenario; never assume that “standard” exists. AHP does not override eligibility or safety requirements.

Run the Request

Use either JSON download with your existing authenticated API client. Endpoint and authentication details are in the API Guide. This browser-origin example calls the portal proxy, whose service connection must be configured:

const request = await fetch('/examples/auto-recy-001/business-data-request.json').then(r => r.json());
const response = await fetch('/decisioq-decision-api-proxy.ashx?operation=execute', {
  method: 'POST', headers: {'Content-Type': 'application/json'},
  body: JSON.stringify(request)
});
const result = await response.json();
if (!response.ok) throw new Error(JSON.stringify(result));
console.log(result);

For validation errors, check canonical IDs, required values, units, and current catalog ranges. A transport error is not a decision rejection.

Try the showcase · All examples · Playground