c8volt ops repair process-instance

Repair incidents selected by process instances

Synopsis

Repair active incidents for selected process instances.

Select by key or process filters. The workflow fixes the incident targets, applies requested variables, restores related job retries, resolves incidents, and waits for clearance. –set-retries 0 skips retry restoration.

Use –dry-run to review the repair plan and –report-file to save an audit report. Use –auto-confirm for unattended execution.

c8volt ops repair process-instance [flags]

Examples

  c8volt ops repair process-instance --key <process-instance-key> --dry-run
  c8volt ops repair process-instance --bpmn-process-id order --set-retries 3 --report-file repair.md

Options

  -n, --batch-size int32                process instances per discovery page (server maximum 1000) (default 1000)
      --bid string                      exact opaque business ID to select incident-bearing process instances (only c8.10+)
  -b, --bpmn-process-id string          BPMN process ID to filter process instances
      --children-only                   select only child process instances
      --direct-incidents-only           select only process instances with direct active incidents
      --dry-run                         freeze repair targets and preview repair steps without submitting mutations
      --end-date-after string           only include process instances with end date >= YYYY-MM-DD
      --end-date-before string          only include process instances with end date <= YYYY-MM-DD
      --end-date-newer-days int         only include process instances with end date N days old or newer (0 means today) (default -1)
      --end-date-older-days int         only include process instances with end date N days old or older (default -1)
      --fail-fast                       stop scheduling incident repairs after the first error
  -h, --help                            help for process-instance
      --incident-error-message string   case-insensitive incident error message substring filter for --direct-incidents-only
      --incident-error-type string      case-insensitive incident error type filter for --direct-incidents-only
      --incident-state string           incident state scope for --direct-incidents-only: active, pending, resolved, migrated, unknown, all (default "active")
  -k, --key strings                     process-instance key(s) whose active incidents should be repaired; repeat or combine with stdin '-'
  -l, --limit int32                     maximum number of matching process instances to freeze for repair; omit to discover all matches
      --no-wait                         return after repair mutations are accepted without incident or retry confirmation
      --no-worker-limit                 use all queued jobs as workers when --workers is unset
      --parent-key string               parent process instance key to filter process instances
      --pd-key string                   process definition key (mutually exclusive with bpmn-process-id, pd-version, and pd-version-tag)
      --pd-version int32                process definition version
      --pd-version-tag string           process definition version tag
      --report-file string              plan an audit report at the given path
      --report-format string            audit report format: markdown, json (default inferred from report-file extension)
      --roots-only                      select only root process instances
      --set-job-timeout string          timeout duration to submit for related jobs, for example 60s, 5m, or 1h
      --set-retries int32               retry count to set on related jobs; 0 skips retry restoration (default 1)
      --set-vars string                 JSON object with variables to set once per process-instance scope before resolving dependent incidents
      --set-vars-file string            path to JSON object file with variables to set once per process-instance scope
      --start-date-after string         only include process instances with start date >= YYYY-MM-DD
      --start-date-before string        only include process instances with start date <= YYYY-MM-DD
      --start-date-newer-days int       only include process instances N days old or newer (0 means today) (default -1)
      --start-date-older-days int       only include process instances N days old or older (default -1)
  -s, --state string                    state to filter process instances: all, active, completed, canceled, terminated (default "all")
  -w, --workers int                     maximum concurrent workers; omit for an automatic limit

Options inherited from parent commands

      --all-tenants          search all accessible tenants; cannot combine with --tenant
  -y, --auto-confirm         auto-confirm prompts for non-interactive use
      --automation           enable non-interactive mode for commands that explicitly support it
      --config string        path to config file
      --debug                enable debug logging
  -j, --json                 output as JSON (where applicable)
      --keys-only            output keys only (where applicable)
      --log-level string     log level (debug, info, warn, error) (default "info")
      --no-indicator         disable transient terminal activity indicators
      --no-version-check     skip the automatic advisory gateway version check
      --profile string       config active profile name to use (e.g. dev, prod)
  -q, --quiet                suppress output except errors
      --request-rate float   maximum shared request starts per second (fractions allowed; 0 disables pacing)
      --tenant string        tenant for discovery and creation; explicit keys use backend authorization
      --timeout duration     HTTP request timeout (default 30s)
  -v, --verbose              show additional output

SEE ALSO