Skip to documentation
GenHealth integration

Collect Recent Loop Results (Cross-Run)

Perform Collect Recent Loop Results (Cross-Run) through GenHealth.

View as Markdown
collect_recent_loop_results
write

Inputs

  • source_workflow_definition_id
    workflow_select
    Source Workflow Definition Id

    Optional selected identifier or value.

  • loop_node_id
    text
    Loop Node Id

    Optional text value.

  • collection_mode
    select
    Collection Mode

    Optional selected identifier or value.

    Default: "finished_runs"

    Options: Finished runs (legacy) ("finished_runs"), All started runs (normalized audit) ("normalized_all_started_runs")

  • report_day
    text
    Report Day

    Optional text value.

    Default: "today"

  • window_hours
    select
    Window Hours

    Optional selected identifier or value.

    Options: Full calendar day (""), Every hour ("1"), Every 2 hours ("2"), Every 3 hours ("3"), Every 4 hours ("4"), Every 6 hours ("6"), Every 8 hours ("8"), Every 12 hours ("12")

  • timezone
    text
    Timezone

    Optional text value.

    Default: "UTC"

  • auto_rollover_hour
    number
    Auto Rollover Hour

    Optional numeric value.

    Default: 2

  • replay_mutable_runs
    boolean
    Replay Mutable Runs

    Optional true-or-false value.

    Default: false

  • result_node_ids
    text
    Result Node Ids

    Optional text value.

  • result_field_projection
    json
    Result Field Projection

    Optional JSON value.

  • compact_result_node_ids
    text
    Compact Result Node Ids

    Optional text value.

  • item_field_projection
    json
    Item Field Projection

    Optional JSON value.

  • max_iterations
    number
    Max Iterations

    Optional numeric value.

    Default: 2000

  • max_output_bytes
    number
    Max Output Bytes

    Optional numeric value.

    Default: 3500000

Outputs

  • successSuccess
  • iterationsIterations
  • iteration_countIteration Count
  • iterations_omittedIterations Omitted
  • run_countRun Count
  • runs_in_windowRuns In Window
  • runs_selectedRuns Selected
  • runs_truncatedRuns Truncated
  • runs_by_statusRuns By Status
  • collection_modeCollection Mode
  • window_basisWindow Basis
  • run_status_scopeRun Status Scope
  • storage_sourceStorage Source
  • transaction_isolationTransaction Isolation
  • transaction_read_onlyTransaction Read Only
  • audit_scope_completeAudit Scope Complete
  • completed_run_countCompleted Run Count
  • replay_mutable_runs_appliedReplay Mutable Runs Applied
  • run_selection_scopeRun Selection Scope
  • result_node_idsResult Node Ids
  • result_node_ids_appliedResult Node Ids Applied
  • selected_result_node_countSelected Result Node Count
  • result_field_projectionResult Field Projection
  • result_field_projection_appliedResult Field Projection Applied
  • compact_result_node_idsCompact Result Node Ids
  • compact_result_node_ids_appliedCompact Result Node Ids Applied
  • item_field_projectionItem Field Projection
  • item_field_projection_appliedItem Field Projection Applied
  • max_output_bytesMax Output Bytes
  • report_dayReport Day
  • report_day_usReport Day Us
  • timezoneTimezone
  • window_startWindow Start
  • window_endWindow End
  • window_closedWindow Closed
  • window_idWindow Id
  • window_labelWindow Label
  • truncatedTruncated
  • errorError

Output schema completeness: best_effort_declared

Safety

External effect
write
Confirmation recommended
No
Retry safe
No
Dry run supported
No

Schemas

These schemas are first-pass authoring guidance. Runtime validation remains authoritative.

Input schema
{
  "type": "object",
  "properties": {
    "timezone": {
      "type": "string",
      "default": "UTC",
      "description": "Optional text value.",
      "x-workflow-field-type": "text"
    },
    "report_day": {
      "type": "string",
      "default": "today",
      "description": "Optional text value.",
      "x-workflow-field-type": "text"
    },
    "loop_node_id": {
      "type": "string",
      "description": "Optional text value.",
      "x-workflow-field-type": "text"
    },
    "window_hours": {
      "enum": [
        "",
        "1",
        "2",
        "3",
        "4",
        "6",
        "8",
        "12"
      ],
      "type": "string",
      "description": "Optional selected identifier or value.",
      "x-workflow-field-type": "select"
    },
    "max_iterations": {
      "type": "number",
      "default": 2000,
      "description": "Optional numeric value.",
      "x-workflow-field-type": "number"
    },
    "collection_mode": {
      "enum": [
        "finished_runs",
        "normalized_all_started_runs"
      ],
      "type": "string",
      "default": "finished_runs",
      "description": "Optional selected identifier or value.",
      "x-workflow-field-type": "select"
    },
    "result_node_ids": {
      "type": "string",
      "description": "Optional text value.",
      "x-workflow-field-type": "text"
    },
    "max_output_bytes": {
      "type": "number",
      "default": 3500000,
      "description": "Optional numeric value.",
      "x-workflow-field-type": "number"
    },
    "auto_rollover_hour": {
      "type": "number",
      "default": 2,
      "description": "Optional numeric value.",
      "x-workflow-field-type": "number"
    },
    "replay_mutable_runs": {
      "type": "boolean",
      "default": false,
      "description": "Optional true-or-false value.",
      "x-workflow-field-type": "boolean"
    },
    "item_field_projection": {
      "description": "Optional JSON value.",
      "x-workflow-field-type": "json"
    },
    "compact_result_node_ids": {
      "type": "string",
      "description": "Optional text value.",
      "x-workflow-field-type": "text"
    },
    "result_field_projection": {
      "description": "Optional JSON value.",
      "x-workflow-field-type": "json"
    },
    "source_workflow_definition_id": {
      "type": "string",
      "description": "Optional selected identifier or value.",
      "x-workflow-field-type": "workflow_select"
    }
  },
  "additionalProperties": false
}
Output schema
{
  "type": "object",
  "properties": {
    "error": {},
    "success": {},
    "timezone": {},
    "run_count": {},
    "truncated": {},
    "window_id": {},
    "iterations": {},
    "report_day": {},
    "window_end": {},
    "window_basis": {},
    "window_label": {},
    "window_start": {},
    "report_day_us": {},
    "runs_selected": {},
    "window_closed": {},
    "runs_by_status": {},
    "runs_in_window": {},
    "runs_truncated": {},
    "storage_source": {},
    "collection_mode": {},
    "iteration_count": {},
    "result_node_ids": {},
    "max_output_bytes": {},
    "run_status_scope": {},
    "iterations_omitted": {},
    "completed_run_count": {},
    "run_selection_scope": {},
    "audit_scope_complete": {},
    "item_field_projection": {},
    "transaction_isolation": {},
    "transaction_read_only": {},
    "compact_result_node_ids": {},
    "result_field_projection": {},
    "result_node_ids_applied": {},
    "selected_result_node_count": {},
    "replay_mutable_runs_applied": {},
    "item_field_projection_applied": {},
    "compact_result_node_ids_applied": {},
    "result_field_projection_applied": {}
  },
  "additionalProperties": true
}
View all GenHealth actions