Bulk Component Inspection

Processes a batch of manufacturing components concurrently using a Map state with a maximum concurrency of 3. Each component set is independently validated, inspected, partially assembled, and structurally tested before sub-system certification.
{
  "Comment": "Bulk Component Inspection - process multiple vehicle production lots concurrently",
  "StartAt": "ProcessProductionLots",
  "States": {
    "ProcessProductionLots": {
      "Type": "Map",
      "ItemsPath": "$.productionLots",
      "MaxConcurrency": 3,
      "ItemProcessor": {
        "ProcessorConfig": {
          "Mode": "INLINE"
        },
        "StartAt": "ValidateOrder",
        "States": {
          "ValidateOrder": {
            "Type": "Task",
            "Resource": "${ValidateManufacturingOrderFunctionArn}",
            "Retry": [
              {
                "ErrorEquals": [
                  "States.ALL"
                ],
                "IntervalSeconds": 2,
                "MaxAttempts": 2
              }
            ],
            "Next": "InspectAndAssemble"
          },
          "InspectAndAssemble": {
            "Type": "Parallel",
            "Branches": [
              {
                "StartAt": "InspectComponents",
                "States": {
                  "InspectComponents": {
                    "Type": "Task",
                    "Resource": "${InspectComponentsFunctionArn}",
                    "End": true
                  }
                }
              },
              {
                "StartAt": "AssembleStage",
                "States": {
                  "AssembleStage": {
                    "Type": "Task",
                    "Resource": "${AssembleStageFunctionArn}",
                    "End": true
                  }
                }
              }
            ],
            "Next": "RunStructuralTest"
          },
          "RunStructuralTest": {
            "Type": "Task",
            "Resource": "${RunStructuralTestFunctionArn}",
            "Retry": [
              {
                "ErrorEquals": [
                  "States.ALL"
                ],
                "IntervalSeconds": 2,
                "MaxAttempts": 2
              }
            ],
            "Next": "CertifyVehicle"
          },
          "CertifyVehicle": {
            "Type": "Task",
            "Resource": "${CertifyVehicleFunctionArn}",
            "End": true
          }
        }
      },
      "Next": "BulkInspectionComplete"
    },
    "BulkInspectionComplete": {
      "Type": "Succeed"
    }
  }
}
JSON
Expand
100%

Aerospace teams can use patterns like this to build reliable, compliant, and scalable automation for payment systems and can test and refine these flows locally with Thrubit to reduce cloud cost and speed up iteration.

Free Trial