From 0dc4bbb2f57a9b2bfcc44b385d3716729d888cda Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Fri, 13 Sep 2024 21:25:32 +0000 Subject: [PATCH] deploy: 7b8d6aed6d55bb35faf3404f7fc40c4aaca070c3 --- 404.html | 4 +- assets/js/0058b4c6.8ae2de04.js | 1 + assets/js/0058b4c6.dcbc31a1.js | 1 - assets/js/141346fb.e3da3f3e.js | 1 + assets/js/2a162317.1747215b.js | 1 - assets/js/2a162317.3a272e13.js | 1 + assets/js/74974c25.138c33f9.js | 1 + assets/js/7e3e0d30.7cf38925.js | 1 + assets/js/7e3e0d30.a258cefb.js | 1 - assets/js/814f3328.75ec6df1.js | 1 + assets/js/814f3328.d35a347e.js | 1 - assets/js/84954295.6288bc19.js | 1 + assets/js/a1824316.58a6cea3.js | 1 - assets/js/a1824316.f72768dd.js | 1 + ...7f15c.8c20585e.js => a957f15c.a9209745.js} | 2 +- ...d9823.bee40241.js => c15d9823.1cab491e.js} | 2 +- assets/js/e3618154.a751bfe7.js | 1 + assets/js/e3618154.fa98f55d.js | 1 - assets/js/f81c1134.36f8627d.js | 1 - assets/js/f81c1134.c6fc2d56.js | 1 + assets/js/main.aabd6fb0.js | 2 + ...CENSE.txt => main.aabd6fb0.js.LICENSE.txt} | 0 assets/js/main.b0b786fa.js | 2 - assets/js/runtime~main.c4381292.js | 1 + assets/js/runtime~main.dafaf6e3.js | 1 - .../2024/09/04/basics-of-workflows/index.html | 78 +++++++++ blog/archive/index.html | 6 +- blog/atom.xml | 59 ++++++- blog/authors/coltmcnealy/index.html | 6 +- blog/authors/index.html | 6 +- blog/authors/lh-council/index.html | 6 +- blog/challenge-of-microservices/index.html | 6 +- blog/helm-and-k8s-operators/index.html | 6 +- blog/index.html | 57 ++++++- blog/littlehorse-0.10-release/index.html | 6 +- blog/littlehorse-0.11-release/index.html | 6 +- blog/littlehorse-0.2.0-release/index.html | 6 +- blog/littlehorse-0.5.0-release/index.html | 6 +- blog/littlehorse-0.7-release/index.html | 6 +- blog/littlehorse-0.8-release/index.html | 6 +- blog/littlehorse-0.9-release/index.html | 6 +- blog/microservices-and-workflow/index.html | 8 +- blog/promise-of-microservices/index.html | 6 +- blog/rss.xml | 59 ++++++- blog/tags/analysis/index.html | 6 +- blog/tags/index.html | 6 +- blog/tags/littlehorse/index.html | 6 +- blog/tags/release/index.html | 6 +- docs/api/index.html | 8 +- docs/architecture-and-guarantees/index.html | 6 +- docs/concepts/advanced/index.html | 6 +- .../advanced/wfspec-versioning/index.html | 6 +- docs/concepts/external-events/index.html | 6 +- docs/concepts/index.html | 6 +- .../principals-and-tenants/index.html | 6 +- docs/concepts/tasks/index.html | 6 +- docs/concepts/user-tasks/index.html | 6 +- docs/concepts/workflows/index.html | 6 +- .../client-configuration/index.html | 6 +- docs/developer-guide/grpc/basics/index.html | 6 +- docs/developer-guide/grpc/index.html | 6 +- .../grpc/managing-metadata/index.html | 6 +- .../grpc/posting-external-events/index.html | 6 +- .../grpc/running-workflows/index.html | 6 +- .../grpc/user-tasks/index.html | 6 +- docs/developer-guide/index.html | 6 +- docs/developer-guide/install/index.html | 6 +- docs/developer-guide/lhctl/index.html | 6 +- .../task-worker-development/index.html | 6 +- .../wfspec-development/basics/index.html | 6 +- .../child-threads/index.html | 6 +- .../conditionals/index.html | 6 +- .../exception-handling/index.html | 6 +- .../external-events/index.html | 9 +- .../wfspec-development/index.html | 6 +- .../wfspec-development/interrupts/index.html | 6 +- .../mutating-variables/index.html | 6 +- .../wfspec-development/user-tasks/index.html | 6 +- docs/faq/index.html | 152 ++++++++++++++++++ .../client-configuration/index.html | 6 +- .../dashboard-configuration/index.html | 6 +- .../docker-compose/basic/index.html | 6 +- .../docker-compose/confluent-cloud/index.html | 6 +- docs/operations/docker-compose/index.html | 6 +- .../docker-compose/three-servers/index.html | 8 +- docs/operations/index.html | 6 +- docs/operations/overview/index.html | 6 +- .../server-configuration/index.html | 6 +- docs/overview/index.html | 6 +- index.html | 4 +- markdown-page/index.html | 4 +- search/index.html | 4 +- sitemap.xml | 2 +- 93 files changed, 605 insertions(+), 208 deletions(-) create mode 100644 assets/js/0058b4c6.8ae2de04.js delete mode 100644 assets/js/0058b4c6.dcbc31a1.js create mode 100644 assets/js/141346fb.e3da3f3e.js delete mode 100644 assets/js/2a162317.1747215b.js create mode 100644 assets/js/2a162317.3a272e13.js create mode 100644 assets/js/74974c25.138c33f9.js create mode 100644 assets/js/7e3e0d30.7cf38925.js delete mode 100644 assets/js/7e3e0d30.a258cefb.js create mode 100644 assets/js/814f3328.75ec6df1.js delete mode 100644 assets/js/814f3328.d35a347e.js create mode 100644 assets/js/84954295.6288bc19.js delete mode 100644 assets/js/a1824316.58a6cea3.js create mode 100644 assets/js/a1824316.f72768dd.js rename assets/js/{a957f15c.8c20585e.js => a957f15c.a9209745.js} (56%) rename assets/js/{c15d9823.bee40241.js => c15d9823.1cab491e.js} (80%) create mode 100644 assets/js/e3618154.a751bfe7.js delete mode 100644 assets/js/e3618154.fa98f55d.js delete mode 100644 assets/js/f81c1134.36f8627d.js create mode 100644 assets/js/f81c1134.c6fc2d56.js create mode 100644 assets/js/main.aabd6fb0.js rename assets/js/{main.b0b786fa.js.LICENSE.txt => main.aabd6fb0.js.LICENSE.txt} (100%) delete mode 100644 assets/js/main.b0b786fa.js create mode 100644 assets/js/runtime~main.c4381292.js delete mode 100644 assets/js/runtime~main.dafaf6e3.js create mode 100644 blog/2024/09/04/basics-of-workflows/index.html create mode 100644 docs/faq/index.html diff --git a/404.html b/404.html index 82cfde818..3a6ff7d14 100644 --- a/404.html +++ b/404.html @@ -18,8 +18,8 @@ - - + +
diff --git a/assets/js/0058b4c6.8ae2de04.js b/assets/js/0058b4c6.8ae2de04.js new file mode 100644 index 000000000..c1f6d5279 --- /dev/null +++ b/assets/js/0058b4c6.8ae2de04.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunklh_site=self.webpackChunklh_site||[]).push([[849],{6164:e=>{e.exports=JSON.parse('{"version":{"pluginId":"default","version":"current","label":"Next","banner":null,"badge":false,"noIndex":false,"className":"docs-version-current","isLast":true,"docsSidebars":{"tutorialSidebar":[{"type":"link","label":"Overview","href":"/docs/overview","docId":"overview","unlisted":false},{"type":"link","label":"Architecture and Guarantees","href":"/docs/architecture-and-guarantees","docId":"architecture-and-guarantees","unlisted":false},{"type":"category","label":"Concepts","collapsible":true,"collapsed":true,"items":[{"type":"link","label":"Workflows","href":"/docs/concepts/workflows","docId":"concepts/workflows","unlisted":false},{"type":"link","label":"Tasks","href":"/docs/concepts/tasks","docId":"concepts/tasks","unlisted":false},{"type":"link","label":"External Events and Interrupts","href":"/docs/concepts/external-events","docId":"concepts/external-events","unlisted":false},{"type":"link","label":"User Tasks","href":"/docs/concepts/user-tasks","docId":"concepts/user-tasks","unlisted":false},{"type":"link","label":"Authz, Principals, and Tenants","href":"/docs/concepts/principals-and-tenants","docId":"concepts/principals-and-tenants","unlisted":false},{"type":"category","label":"Advanced Concepts","collapsible":true,"collapsed":true,"items":[{"type":"link","label":"WfSpec Versioning","href":"/docs/concepts/advanced/wfspec-versioning","docId":"concepts/advanced/wfspec-versioning","unlisted":false}],"href":"/docs/concepts/advanced/"}],"href":"/docs/concepts/"},{"type":"category","label":"Developer Guide","collapsible":true,"collapsed":true,"items":[{"type":"link","label":"Quickstart Installation","href":"/docs/developer-guide/install","docId":"developer-guide/install","unlisted":false},{"type":"link","label":"Configuring the Clients","href":"/docs/developer-guide/client-configuration","docId":"developer-guide/client-configuration","unlisted":false},{"type":"link","label":"LittleHorse CLI","href":"/docs/developer-guide/lhctl","docId":"developer-guide/lhctl","unlisted":false},{"type":"link","label":"Developing Task Workers","href":"/docs/developer-guide/task-worker-development","docId":"developer-guide/task-worker-development","unlisted":false},{"type":"category","label":"WfSpec Development","collapsible":true,"collapsed":true,"items":[{"type":"link","label":"Basics","href":"/docs/developer-guide/wfspec-development/basics","docId":"developer-guide/wfspec-development/basics","unlisted":false},{"type":"link","label":"Conditionals and Loops","href":"/docs/developer-guide/wfspec-development/conditionals","docId":"developer-guide/wfspec-development/conditionals","unlisted":false},{"type":"link","label":"Mutating Variables","href":"/docs/developer-guide/wfspec-development/mutating-variables","docId":"developer-guide/wfspec-development/mutating-variables","unlisted":false},{"type":"link","label":"External Events","href":"/docs/developer-guide/wfspec-development/external-events","docId":"developer-guide/wfspec-development/external-events","unlisted":false},{"type":"link","label":"Interrupts","href":"/docs/developer-guide/wfspec-development/interrupts","docId":"developer-guide/wfspec-development/interrupts","unlisted":false},{"type":"link","label":"Exception Handling","href":"/docs/developer-guide/wfspec-development/exception-handling","docId":"developer-guide/wfspec-development/exception-handling","unlisted":false},{"type":"link","label":"Child Threads","href":"/docs/developer-guide/wfspec-development/child-threads","docId":"developer-guide/wfspec-development/child-threads","unlisted":false},{"type":"link","label":"User Tasks","href":"/docs/developer-guide/wfspec-development/user-tasks","docId":"developer-guide/wfspec-development/user-tasks","unlisted":false}],"href":"/docs/developer-guide/wfspec-development/"},{"type":"category","label":"Using the LittleHorse API","collapsible":true,"collapsed":true,"items":[{"type":"link","label":"Background","href":"/docs/developer-guide/grpc/basics","docId":"developer-guide/grpc/basics","unlisted":false},{"type":"link","label":"Managing Metadata","href":"/docs/developer-guide/grpc/managing-metadata","docId":"developer-guide/grpc/managing-metadata","unlisted":false},{"type":"link","label":"Running a Workflow","href":"/docs/developer-guide/grpc/running-workflows","docId":"developer-guide/grpc/running-workflows","unlisted":false},{"type":"link","label":"Posting ExternalEvents","href":"/docs/developer-guide/grpc/posting-external-events","docId":"developer-guide/grpc/posting-external-events","unlisted":false},{"type":"link","label":"Handling User Tasks","href":"/docs/developer-guide/grpc/user-tasks","docId":"developer-guide/grpc/user-tasks","unlisted":false}],"href":"/docs/developer-guide/grpc/"}],"href":"/docs/developer-guide/"},{"type":"category","label":"Operations","collapsible":true,"collapsed":true,"items":[{"type":"link","label":"Operations Overview","href":"/docs/operations/overview","docId":"operations/overview","unlisted":false},{"type":"link","label":"Server Configurations","href":"/docs/operations/server-configuration","docId":"operations/server-configuration","unlisted":false},{"type":"link","label":"Dashboard Configurations","href":"/docs/operations/dashboard-configuration","docId":"operations/dashboard-configuration","unlisted":false},{"type":"link","label":"Workers/Clients Configurations","href":"/docs/operations/client-configuration","docId":"operations/client-configuration","unlisted":false},{"type":"category","label":"Docker Compose Examples","collapsible":true,"collapsed":true,"items":[{"type":"link","label":"Basic Deployment","href":"/docs/operations/docker-compose/basic","docId":"operations/docker-compose/basic","unlisted":false},{"type":"link","label":"Using Confluent Cloud","href":"/docs/operations/docker-compose/confluent-cloud","docId":"operations/docker-compose/confluent-cloud","unlisted":false},{"type":"link","label":"Three LittleHorse Orchestrators","href":"/docs/operations/docker-compose/three-servers","docId":"operations/docker-compose/three-servers","unlisted":false}],"href":"/docs/operations/docker-compose/"}],"href":"/docs/operations/"},{"type":"link","label":"Tips, Pointers, and FAQ","href":"/docs/faq","docId":"faq","unlisted":false},{"type":"link","label":"LittleHorse API Reference","href":"/docs/api","docId":"api","unlisted":false}]},"docs":{"api":{"id":"api","title":"LittleHorse API Reference","description":"The LittleHorse Server exposes a GRPC API to its clients. For most general usage of LittleHorse, you will not need to","sidebar":"tutorialSidebar"},"architecture-and-guarantees":{"id":"architecture-and-guarantees","title":"Architecture and Guarantees","description":"LittleHorse is a horizontally scalable, high-performance system with enterprise-grade security integrations to help you build systems that support even the most mission-critical workloads.","sidebar":"tutorialSidebar"},"concepts/advanced/advanced":{"id":"concepts/advanced/advanced","title":"Advanced Concepts","description":"LittleHorse is an intuitive system that generally works as you might expect it to. However, there are some advanced use-cases for which a deeper understanding of the system would be helpful.","sidebar":"tutorialSidebar"},"concepts/advanced/wfspec-versioning":{"id":"concepts/advanced/wfspec-versioning","title":"WfSpec Versioning","description":"A WfSpec is a versioned resource. Each WfSpec is uniquely identified by its name (a String), its majorVersion (an auto-incremented number, managed by LittleHorse), and its revision (another auto-incremented number).","sidebar":"tutorialSidebar"},"concepts/concepts":{"id":"concepts/concepts","title":"Concepts","description":"The LittleHorse Server is, at its core, a Workflow Engine. What makes LittleHorse unique is that it is built with developers in mind. The way users define workflow specifications in LittleHorse (a WfSpec) was designed from the ground up to be developer-friendly and have concepts that are analogous to the primitives used in day-to-day programming languages.","sidebar":"tutorialSidebar"},"concepts/external-events":{"id":"concepts/external-events","title":"External Events and Interrupts","description":"Workflows must be able to respond to inputs from the outside world in order to be truly useful and dynamic. One of the tools that LittleHorse provides which allows you to do that is External Events.","sidebar":"tutorialSidebar"},"concepts/principals-and-tenants":{"id":"concepts/principals-and-tenants","title":"Authz, Principals, and Tenants","description":"In order to provide a secure platform for use at large enterprises, LittleHorse supports multi-tenancy natively. This is accomplished through two API Objects:","sidebar":"tutorialSidebar"},"concepts/tasks":{"id":"concepts/tasks","title":"Tasks","description":"A WfSpec defines a series of steps in a process to be orchestrated by LittleHorse (in technical terms, each step is a Node). The most common type of step to execute is a TaskNode.","sidebar":"tutorialSidebar"},"concepts/user-tasks":{"id":"concepts/user-tasks","title":"User Tasks","description":"The purpose of a Workflow Engine is to coordinate processes that assign work. A TaskRun represents a unit of work assigned to a computer, but what about work assigned to a human? That\'s where User Tasks come in.","sidebar":"tutorialSidebar"},"concepts/workflows":{"id":"concepts/workflows","title":"Workflows","description":"In LittleHorse, the WfSpec object is a Metadata Object defining the blueprint for a WfRun, which is a running instance of a workflow.","sidebar":"tutorialSidebar"},"developer-guide/client-configuration":{"id":"developer-guide/client-configuration","title":"Configuring the Clients","description":"In every LittleHorse SDK, there is an LHConfig class or struct that handles the configuration required for allowing your clients and Task Workers to talk to LittleHorse Server.","sidebar":"tutorialSidebar"},"developer-guide/developer-guide":{"id":"developer-guide/developer-guide","title":"Developer Guide","description":"The LittleHorse Developer Guide tells you everything you need to know about LittleHorse from the Jedi Youngling level (installing clients, running the server) to the Jedi Master level (advanced WfSpec development, advanced security, etc).","sidebar":"tutorialSidebar"},"developer-guide/grpc/basics":{"id":"developer-guide/grpc/basics","title":"Background","description":"The public LittleHorse API is a GRPC service exposed by the LH Server. We have complete auto-generated documentation for our GRPC Service and Protocol Buffers on our docs site. For the highly curious readers, you can find the actual protocol buffer code that underpins our system in our source code repository.","sidebar":"tutorialSidebar"},"developer-guide/grpc/grpc":{"id":"developer-guide/grpc/grpc","title":"Using the LittleHorse API","description":"The public API exposed by the LittleHorse Server is a GRPC server, defined here. We chose GRPC for multiple reasons, including:","sidebar":"tutorialSidebar"},"developer-guide/grpc/managing-metadata":{"id":"developer-guide/grpc/managing-metadata","title":"Managing Metadata","description":"Before you can run a WfRun, you need to create your WfSpec\'s! This guide shows you how to do that.","sidebar":"tutorialSidebar"},"developer-guide/grpc/posting-external-events":{"id":"developer-guide/grpc/posting-external-events","title":"Posting ExternalEvents","description":"You can post an ExternalEvent using the PutExternalEvent rpc call.","sidebar":"tutorialSidebar"},"developer-guide/grpc/running-workflows":{"id":"developer-guide/grpc/running-workflows","title":"Running a Workflow","description":"You can run a WfSpec, thus creating a WfRun, in two ways:","sidebar":"tutorialSidebar"},"developer-guide/grpc/user-tasks":{"id":"developer-guide/grpc/user-tasks","title":"Handling User Tasks","description":"User Tasks enable a ThreadRun to block until a human user provides some input into the workflow. Additionally, User Tasks have several useful hooks such as automatic reassignment, reminders, and auditing capabilities.","sidebar":"tutorialSidebar"},"developer-guide/install":{"id":"developer-guide/install","title":"Quickstart Installation","description":"The minimum to get started with LittleHorse is to install the lhctl CLI, run the server in docker, and use your choice of the Java, GoLang, or Python client libraries.","sidebar":"tutorialSidebar"},"developer-guide/lhctl":{"id":"developer-guide/lhctl","title":"LittleHorse CLI","description":"lhctl is the LittleHorse CLI. It allows you to manage metadata in your system, observe and analyze your WfRuns, and also perform rudimentary actions such as running a WfRun.","sidebar":"tutorialSidebar"},"developer-guide/task-worker-development":{"id":"developer-guide/task-worker-development","title":"Developing Task Workers","description":"Each LittleHorse SDK provides an LHTaskWorker object or struct which lets you turn an arbitrary function or method into a LittleHorse Task.","sidebar":"tutorialSidebar"},"developer-guide/wfspec-development/basics":{"id":"developer-guide/wfspec-development/basics","title":"Basics","description":"To develop a WfSpec in LittleHorse, you can use the Workflow struct or object in our SDK\'s. Generally, the Workflow entity constructor requires two arguments:","sidebar":"tutorialSidebar"},"developer-guide/wfspec-development/child-threads":{"id":"developer-guide/wfspec-development/child-threads","title":"Child Threads","description":"You can use WorkflowThread#spawnThread() and WorkflowThread#waitForThreads() to launch and wait for Child ThreadRuns, respectively. This is useful if you want to execute multiple pieces of business logic in parallel.","sidebar":"tutorialSidebar"},"developer-guide/wfspec-development/conditionals":{"id":"developer-guide/wfspec-development/conditionals","title":"Conditionals and Loops","description":"In a LittleHorse WfSpec, the Edge structure tells the workflow scheduler what Node to advance to next. The Edge has a conditions field, which allows you to specify different control flow paths based on variables in your WfRun. This is analogous to if/else in programming.","sidebar":"tutorialSidebar"},"developer-guide/wfspec-development/exception-handling":{"id":"developer-guide/wfspec-development/exception-handling","title":"Exception Handling","description":"In LittleHorse, a Failure is analogous to an Exception in Programming.","sidebar":"tutorialSidebar"},"developer-guide/wfspec-development/external-events":{"id":"developer-guide/wfspec-development/external-events","title":"External Events","description":"Before you can use an ExternalEventDef in a WfSpec, you need to create the ExternalEventDef metadata object in LittleHorse. You can do that following our metadata management docs.","sidebar":"tutorialSidebar"},"developer-guide/wfspec-development/interrupts":{"id":"developer-guide/wfspec-development/interrupts","title":"Interrupts","description":"As per the Concepts Docs, you can set up a ThreadSpec such that when an ExternalEvent of a certain type comes in, the ThreadRun is interrupted and an Interrupt Handler ThreadRun is spawned.","sidebar":"tutorialSidebar"},"developer-guide/wfspec-development/mutating-variables":{"id":"developer-guide/wfspec-development/mutating-variables","title":"Mutating Variables","description":"Recall from the Concepts Documentation that every Node can have zero or more VariableMutations on it. A VariableMutation changes the value of a ThreadRun\'s Variables.","sidebar":"tutorialSidebar"},"developer-guide/wfspec-development/user-tasks":{"id":"developer-guide/wfspec-development/user-tasks","title":"User Tasks","description":"User Tasks allow you to manage tasks involving humans alongside standard computer tasks in your LittleHorse Workflow.","sidebar":"tutorialSidebar"},"developer-guide/wfspec-development/wfspec-development":{"id":"developer-guide/wfspec-development/wfspec-development","title":"WfSpec Development","description":"This section shows you how to build WfSpecs using our SDK\'s in Python, Java, and GoLang, starting from Youngling all the way up to the LittleHorse Master level.","sidebar":"tutorialSidebar"},"faq":{"id":"faq","title":"Tips, Pointers, and FAQ","description":"We do our best to make our documentation easy to navigate; however, LittleHorse has a lot of features and it may not always be easy to find what you are looking for.","sidebar":"tutorialSidebar"},"operations/client-configuration":{"id":"operations/client-configuration","title":"Workers/Clients Configurations","description":"Client","sidebar":"tutorialSidebar"},"operations/dashboard-configuration":{"id":"operations/dashboard-configuration","title":"Dashboard Configurations","description":"These configurations apply only to the ghcr.io/littlehorse-enterprises/littlehorse/lh-dashboard docker image, and not when running the LH Dashboard compiled from source. We have an open ticket in our OSS repo to homologate the configurations and also improve the startup time of the lh-dashboard docker image.","sidebar":"tutorialSidebar"},"operations/docker-compose/basic":{"id":"operations/docker-compose/basic","title":"Basic Deployment","description":"This example shows how to run LittleHorse with a single Server and the dashboard, without authentication, using Docker Compose, accessible on localhost:2023.","sidebar":"tutorialSidebar"},"operations/docker-compose/confluent-cloud":{"id":"operations/docker-compose/confluent-cloud","title":"Using Confluent Cloud","description":"LittleHorse requires Apache Kafka as its only hard dependency. Kafka is the source-of-truth for the state of a LittleHorse Cluster as all data is stored in Kafka Streams state stores (therefore, the durability of the Changelog Topics determines the durability of the LittleHorse Cluster\'s data).","sidebar":"tutorialSidebar"},"operations/docker-compose/docker-compose":{"id":"operations/docker-compose/docker-compose","title":"Docker Compose Examples","description":"This tab contains a series of examples to get LittleHorse working in Docker Compose. We recognize that not many people use Docker Compose in production, however we see value in docker compose examples because they serve as clear documentation of how to configure LittleHorse.","sidebar":"tutorialSidebar"},"operations/docker-compose/three-servers":{"id":"operations/docker-compose/three-servers","title":"Three LittleHorse Orchestrators","description":"LittleHorse is a horizontally scalable system. As such, you can configure multiple LittleHorse Orchestrator servers to act as a cluster. This provides the following benefits:","sidebar":"tutorialSidebar"},"operations/operations":{"id":"operations/operations","title":"Operations","description":"LittleHorse OSS, which can be found on our GitHub, contains all of the LittleHorse functionality. It is an enterprise-ready workflow engine that can scale to the largest workloads while meeting the most strict security requirements when deployed on premise.","sidebar":"tutorialSidebar"},"operations/overview":{"id":"operations/overview","title":"Operations Overview","description":"A minimal LittleHorse cluster has the following components:","sidebar":"tutorialSidebar"},"operations/server-configuration":{"id":"operations/server-configuration","title":"Server Configurations","description":"This page contains all of the configurations that are accepted by the LittleHorse Server. We recommend that you set these configurations as environment variables for the ghcr.io/littlehorse-enterprises/littlehorse/lh-server image.","sidebar":"tutorialSidebar"},"overview":{"id":"overview","title":"LittleHorse Overview","description":"LittleHorse Dashboard","sidebar":"tutorialSidebar"}}}}')}}]); \ No newline at end of file diff --git a/assets/js/0058b4c6.dcbc31a1.js b/assets/js/0058b4c6.dcbc31a1.js deleted file mode 100644 index 209b3beba..000000000 --- a/assets/js/0058b4c6.dcbc31a1.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunklh_site=self.webpackChunklh_site||[]).push([[849],{6164:e=>{e.exports=JSON.parse('{"version":{"pluginId":"default","version":"current","label":"Next","banner":null,"badge":false,"noIndex":false,"className":"docs-version-current","isLast":true,"docsSidebars":{"tutorialSidebar":[{"type":"link","label":"Overview","href":"/docs/overview","docId":"overview","unlisted":false},{"type":"link","label":"Architecture and Guarantees","href":"/docs/architecture-and-guarantees","docId":"architecture-and-guarantees","unlisted":false},{"type":"category","label":"Concepts","collapsible":true,"collapsed":true,"items":[{"type":"link","label":"Workflows","href":"/docs/concepts/workflows","docId":"concepts/workflows","unlisted":false},{"type":"link","label":"Tasks","href":"/docs/concepts/tasks","docId":"concepts/tasks","unlisted":false},{"type":"link","label":"External Events and Interrupts","href":"/docs/concepts/external-events","docId":"concepts/external-events","unlisted":false},{"type":"link","label":"User Tasks","href":"/docs/concepts/user-tasks","docId":"concepts/user-tasks","unlisted":false},{"type":"link","label":"Authz, Principals, and Tenants","href":"/docs/concepts/principals-and-tenants","docId":"concepts/principals-and-tenants","unlisted":false},{"type":"category","label":"Advanced Concepts","collapsible":true,"collapsed":true,"items":[{"type":"link","label":"WfSpec Versioning","href":"/docs/concepts/advanced/wfspec-versioning","docId":"concepts/advanced/wfspec-versioning","unlisted":false}],"href":"/docs/concepts/advanced/"}],"href":"/docs/concepts/"},{"type":"category","label":"Developer Guide","collapsible":true,"collapsed":true,"items":[{"type":"link","label":"Quickstart Installation","href":"/docs/developer-guide/install","docId":"developer-guide/install","unlisted":false},{"type":"link","label":"Configuring the Clients","href":"/docs/developer-guide/client-configuration","docId":"developer-guide/client-configuration","unlisted":false},{"type":"link","label":"LittleHorse CLI","href":"/docs/developer-guide/lhctl","docId":"developer-guide/lhctl","unlisted":false},{"type":"link","label":"Developing Task Workers","href":"/docs/developer-guide/task-worker-development","docId":"developer-guide/task-worker-development","unlisted":false},{"type":"category","label":"WfSpec Development","collapsible":true,"collapsed":true,"items":[{"type":"link","label":"Basics","href":"/docs/developer-guide/wfspec-development/basics","docId":"developer-guide/wfspec-development/basics","unlisted":false},{"type":"link","label":"Conditionals and Loops","href":"/docs/developer-guide/wfspec-development/conditionals","docId":"developer-guide/wfspec-development/conditionals","unlisted":false},{"type":"link","label":"Mutating Variables","href":"/docs/developer-guide/wfspec-development/mutating-variables","docId":"developer-guide/wfspec-development/mutating-variables","unlisted":false},{"type":"link","label":"External Events","href":"/docs/developer-guide/wfspec-development/external-events","docId":"developer-guide/wfspec-development/external-events","unlisted":false},{"type":"link","label":"Interrupts","href":"/docs/developer-guide/wfspec-development/interrupts","docId":"developer-guide/wfspec-development/interrupts","unlisted":false},{"type":"link","label":"Exception Handling","href":"/docs/developer-guide/wfspec-development/exception-handling","docId":"developer-guide/wfspec-development/exception-handling","unlisted":false},{"type":"link","label":"Child Threads","href":"/docs/developer-guide/wfspec-development/child-threads","docId":"developer-guide/wfspec-development/child-threads","unlisted":false},{"type":"link","label":"User Tasks","href":"/docs/developer-guide/wfspec-development/user-tasks","docId":"developer-guide/wfspec-development/user-tasks","unlisted":false}],"href":"/docs/developer-guide/wfspec-development/"},{"type":"category","label":"Using the LittleHorse API","collapsible":true,"collapsed":true,"items":[{"type":"link","label":"Background","href":"/docs/developer-guide/grpc/basics","docId":"developer-guide/grpc/basics","unlisted":false},{"type":"link","label":"Managing Metadata","href":"/docs/developer-guide/grpc/managing-metadata","docId":"developer-guide/grpc/managing-metadata","unlisted":false},{"type":"link","label":"Running a Workflow","href":"/docs/developer-guide/grpc/running-workflows","docId":"developer-guide/grpc/running-workflows","unlisted":false},{"type":"link","label":"Posting ExternalEvents","href":"/docs/developer-guide/grpc/posting-external-events","docId":"developer-guide/grpc/posting-external-events","unlisted":false},{"type":"link","label":"Handling User Tasks","href":"/docs/developer-guide/grpc/user-tasks","docId":"developer-guide/grpc/user-tasks","unlisted":false}],"href":"/docs/developer-guide/grpc/"}],"href":"/docs/developer-guide/"},{"type":"category","label":"Operations","collapsible":true,"collapsed":true,"items":[{"type":"link","label":"Operations Overview","href":"/docs/operations/overview","docId":"operations/overview","unlisted":false},{"type":"link","label":"Server Configurations","href":"/docs/operations/server-configuration","docId":"operations/server-configuration","unlisted":false},{"type":"link","label":"Dashboard Configurations","href":"/docs/operations/dashboard-configuration","docId":"operations/dashboard-configuration","unlisted":false},{"type":"link","label":"Workers/Clients Configurations","href":"/docs/operations/client-configuration","docId":"operations/client-configuration","unlisted":false},{"type":"category","label":"Docker Compose Examples","collapsible":true,"collapsed":true,"items":[{"type":"link","label":"Basic Deployment","href":"/docs/operations/docker-compose/basic","docId":"operations/docker-compose/basic","unlisted":false},{"type":"link","label":"Using Confluent Cloud","href":"/docs/operations/docker-compose/confluent-cloud","docId":"operations/docker-compose/confluent-cloud","unlisted":false},{"type":"link","label":"Three LittleHorse Orchestrators","href":"/docs/operations/docker-compose/three-servers","docId":"operations/docker-compose/three-servers","unlisted":false}],"href":"/docs/operations/docker-compose/"}],"href":"/docs/operations/"},{"type":"link","label":"LittleHorse API Reference","href":"/docs/api","docId":"api","unlisted":false}]},"docs":{"api":{"id":"api","title":"LittleHorse API Reference","description":"The LittleHorse Server exposes a GRPC API to its clients. For most general usage of LittleHorse, you will not need to","sidebar":"tutorialSidebar"},"architecture-and-guarantees":{"id":"architecture-and-guarantees","title":"Architecture and Guarantees","description":"LittleHorse is a horizontally scalable, high-performance system with enterprise-grade security integrations to help you build systems that support even the most mission-critical workloads.","sidebar":"tutorialSidebar"},"concepts/advanced/advanced":{"id":"concepts/advanced/advanced","title":"Advanced Concepts","description":"LittleHorse is an intuitive system that generally works as you might expect it to. However, there are some advanced use-cases for which a deeper understanding of the system would be helpful.","sidebar":"tutorialSidebar"},"concepts/advanced/wfspec-versioning":{"id":"concepts/advanced/wfspec-versioning","title":"WfSpec Versioning","description":"A WfSpec is a versioned resource. Each WfSpec is uniquely identified by its name (a String), its majorVersion (an auto-incremented number, managed by LittleHorse), and its revision (another auto-incremented number).","sidebar":"tutorialSidebar"},"concepts/concepts":{"id":"concepts/concepts","title":"Concepts","description":"The LittleHorse Server is, at its core, a Workflow Engine. What makes LittleHorse unique is that it is built with developers in mind. The way users define workflow specifications in LittleHorse (a WfSpec) was designed from the ground up to be developer-friendly and have concepts that are analogous to the primitives used in day-to-day programming languages.","sidebar":"tutorialSidebar"},"concepts/external-events":{"id":"concepts/external-events","title":"External Events and Interrupts","description":"Workflows must be able to respond to inputs from the outside world in order to be truly useful and dynamic. One of the tools that LittleHorse provides which allows you to do that is External Events.","sidebar":"tutorialSidebar"},"concepts/principals-and-tenants":{"id":"concepts/principals-and-tenants","title":"Authz, Principals, and Tenants","description":"In order to provide a secure platform for use at large enterprises, LittleHorse supports multi-tenancy natively. This is accomplished through two API Objects:","sidebar":"tutorialSidebar"},"concepts/tasks":{"id":"concepts/tasks","title":"Tasks","description":"A WfSpec defines a series of steps in a process to be orchestrated by LittleHorse (in technical terms, each step is a Node). The most common type of step to execute is a TaskNode.","sidebar":"tutorialSidebar"},"concepts/user-tasks":{"id":"concepts/user-tasks","title":"User Tasks","description":"The purpose of a Workflow Engine is to coordinate processes that assign work. A TaskRun represents a unit of work assigned to a computer, but what about work assigned to a human? That\'s where User Tasks come in.","sidebar":"tutorialSidebar"},"concepts/workflows":{"id":"concepts/workflows","title":"Workflows","description":"In LittleHorse, the WfSpec object is a Metadata Object defining the blueprint for a WfRun, which is a running instance of a workflow.","sidebar":"tutorialSidebar"},"developer-guide/client-configuration":{"id":"developer-guide/client-configuration","title":"Configuring the Clients","description":"In every LittleHorse SDK, there is an LHConfig class or struct that handles the configuration required for allowing your clients and Task Workers to talk to LittleHorse Server.","sidebar":"tutorialSidebar"},"developer-guide/developer-guide":{"id":"developer-guide/developer-guide","title":"Developer Guide","description":"The LittleHorse Developer Guide tells you everything you need to know about LittleHorse from the Jedi Youngling level (installing clients, running the server) to the Jedi Master level (advanced WfSpec development, advanced security, etc).","sidebar":"tutorialSidebar"},"developer-guide/grpc/basics":{"id":"developer-guide/grpc/basics","title":"Background","description":"The public LittleHorse API is a GRPC service exposed by the LH Server. We have complete auto-generated documentation for our GRPC Service and Protocol Buffers on our docs site. For the highly curious readers, you can find the actual protocol buffer code that underpins our system in our source code repository.","sidebar":"tutorialSidebar"},"developer-guide/grpc/grpc":{"id":"developer-guide/grpc/grpc","title":"Using the LittleHorse API","description":"The public API exposed by the LittleHorse Server is a GRPC server, defined here. We chose GRPC for multiple reasons, including:","sidebar":"tutorialSidebar"},"developer-guide/grpc/managing-metadata":{"id":"developer-guide/grpc/managing-metadata","title":"Managing Metadata","description":"Before you can run a WfRun, you need to create your WfSpec\'s! This guide shows you how to do that.","sidebar":"tutorialSidebar"},"developer-guide/grpc/posting-external-events":{"id":"developer-guide/grpc/posting-external-events","title":"Posting ExternalEvents","description":"You can post an ExternalEvent using the PutExternalEvent rpc call.","sidebar":"tutorialSidebar"},"developer-guide/grpc/running-workflows":{"id":"developer-guide/grpc/running-workflows","title":"Running a Workflow","description":"You can run a WfSpec, thus creating a WfRun, in two ways:","sidebar":"tutorialSidebar"},"developer-guide/grpc/user-tasks":{"id":"developer-guide/grpc/user-tasks","title":"Handling User Tasks","description":"User Tasks enable a ThreadRun to block until a human user provides some input into the workflow. Additionally, User Tasks have several useful hooks such as automatic reassignment, reminders, and auditing capabilities.","sidebar":"tutorialSidebar"},"developer-guide/install":{"id":"developer-guide/install","title":"Quickstart Installation","description":"The minimum to get started with LittleHorse is to install the lhctl CLI, run the server in docker, and use your choice of the Java, GoLang, or Python client libraries.","sidebar":"tutorialSidebar"},"developer-guide/lhctl":{"id":"developer-guide/lhctl","title":"LittleHorse CLI","description":"lhctl is the LittleHorse CLI. It allows you to manage metadata in your system, observe and analyze your WfRuns, and also perform rudimentary actions such as running a WfRun.","sidebar":"tutorialSidebar"},"developer-guide/task-worker-development":{"id":"developer-guide/task-worker-development","title":"Developing Task Workers","description":"Each LittleHorse SDK provides an LHTaskWorker object or struct which lets you turn an arbitrary function or method into a LittleHorse Task.","sidebar":"tutorialSidebar"},"developer-guide/wfspec-development/basics":{"id":"developer-guide/wfspec-development/basics","title":"Basics","description":"To develop a WfSpec in LittleHorse, you can use the Workflow struct or object in our SDK\'s. Generally, the Workflow entity constructor requires two arguments:","sidebar":"tutorialSidebar"},"developer-guide/wfspec-development/child-threads":{"id":"developer-guide/wfspec-development/child-threads","title":"Child Threads","description":"You can use WorkflowThread#spawnThread() and WorkflowThread#waitForThreads() to launch and wait for Child ThreadRuns, respectively. This is useful if you want to execute multiple pieces of business logic in parallel.","sidebar":"tutorialSidebar"},"developer-guide/wfspec-development/conditionals":{"id":"developer-guide/wfspec-development/conditionals","title":"Conditionals and Loops","description":"In a LittleHorse WfSpec, the Edge structure tells the workflow scheduler what Node to advance to next. The Edge has a conditions field, which allows you to specify different control flow paths based on variables in your WfRun. This is analogous to if/else in programming.","sidebar":"tutorialSidebar"},"developer-guide/wfspec-development/exception-handling":{"id":"developer-guide/wfspec-development/exception-handling","title":"Exception Handling","description":"In LittleHorse, a Failure is analogous to an Exception in Programming.","sidebar":"tutorialSidebar"},"developer-guide/wfspec-development/external-events":{"id":"developer-guide/wfspec-development/external-events","title":"External Events","description":"Before you can use an ExternalEventDef in a WfSpec, you need to create the ExternalEventDef metadata object in LittleHorse. You can do that following our metadata management docs.","sidebar":"tutorialSidebar"},"developer-guide/wfspec-development/interrupts":{"id":"developer-guide/wfspec-development/interrupts","title":"Interrupts","description":"As per the Concepts Docs, you can set up a ThreadSpec such that when an ExternalEvent of a certain type comes in, the ThreadRun is interrupted and an Interrupt Handler ThreadRun is spawned.","sidebar":"tutorialSidebar"},"developer-guide/wfspec-development/mutating-variables":{"id":"developer-guide/wfspec-development/mutating-variables","title":"Mutating Variables","description":"Recall from the Concepts Documentation that every Node can have zero or more VariableMutations on it. A VariableMutation changes the value of a ThreadRun\'s Variables.","sidebar":"tutorialSidebar"},"developer-guide/wfspec-development/user-tasks":{"id":"developer-guide/wfspec-development/user-tasks","title":"User Tasks","description":"User Tasks allow you to manage tasks involving humans alongside standard computer tasks in your LittleHorse Workflow.","sidebar":"tutorialSidebar"},"developer-guide/wfspec-development/wfspec-development":{"id":"developer-guide/wfspec-development/wfspec-development","title":"WfSpec Development","description":"This section shows you how to build WfSpecs using our SDK\'s in Python, Java, and GoLang, starting from Youngling all the way up to the LittleHorse Master level.","sidebar":"tutorialSidebar"},"operations/client-configuration":{"id":"operations/client-configuration","title":"Workers/Clients Configurations","description":"Client","sidebar":"tutorialSidebar"},"operations/dashboard-configuration":{"id":"operations/dashboard-configuration","title":"Dashboard Configurations","description":"These configurations apply only to the ghcr.io/littlehorse-enterprises/littlehorse/lh-dashboard docker image, and not when running the LH Dashboard compiled from source. We have an open ticket in our OSS repo to homologate the configurations and also improve the startup time of the lh-dashboard docker image.","sidebar":"tutorialSidebar"},"operations/docker-compose/basic":{"id":"operations/docker-compose/basic","title":"Basic Deployment","description":"This example shows how to run LittleHorse with a single Server and the dashboard, without authentication, using Docker Compose, accessible on localhost:2023.","sidebar":"tutorialSidebar"},"operations/docker-compose/confluent-cloud":{"id":"operations/docker-compose/confluent-cloud","title":"Using Confluent Cloud","description":"LittleHorse requires Apache Kafka as its only hard dependency. Kafka is the source-of-truth for the state of a LittleHorse Cluster as all data is stored in Kafka Streams state stores (therefore, the durability of the Changelog Topics determines the durability of the LittleHorse Cluster\'s data).","sidebar":"tutorialSidebar"},"operations/docker-compose/docker-compose":{"id":"operations/docker-compose/docker-compose","title":"Docker Compose Examples","description":"This tab contains a series of examples to get LittleHorse working in Docker Compose. We recognize that not many people use Docker Compose in production, however we see value in docker compose examples because they serve as clear documentation of how to configure LittleHorse.","sidebar":"tutorialSidebar"},"operations/docker-compose/three-servers":{"id":"operations/docker-compose/three-servers","title":"Three LittleHorse Orchestrators","description":"LittleHorse is a horizontally scalable system. As such, you can configure multiple LittleHorse Orchestrator servers to act as a cluster. This provides the following benefits:","sidebar":"tutorialSidebar"},"operations/operations":{"id":"operations/operations","title":"Operations","description":"LittleHorse OSS, which can be found on our GitHub, contains all of the LittleHorse functionality. It is an enterprise-ready workflow engine that can scale to the largest workloads while meeting the most strict security requirements when deployed on premise.","sidebar":"tutorialSidebar"},"operations/overview":{"id":"operations/overview","title":"Operations Overview","description":"A minimal LittleHorse cluster has the following components:","sidebar":"tutorialSidebar"},"operations/server-configuration":{"id":"operations/server-configuration","title":"Server Configurations","description":"This page contains all of the configurations that are accepted by the LittleHorse Server. We recommend that you set these configurations as environment variables for the ghcr.io/littlehorse-enterprises/littlehorse/lh-server image.","sidebar":"tutorialSidebar"},"overview":{"id":"overview","title":"LittleHorse Overview","description":"LittleHorse Dashboard","sidebar":"tutorialSidebar"}}}}')}}]); \ No newline at end of file diff --git a/assets/js/141346fb.e3da3f3e.js b/assets/js/141346fb.e3da3f3e.js new file mode 100644 index 000000000..051d9dfab --- /dev/null +++ b/assets/js/141346fb.e3da3f3e.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunklh_site=self.webpackChunklh_site||[]).push([[4098],{3910:(e,n,t)=>{t.r(n),t.d(n,{assets:()=>l,contentTitle:()=>r,default:()=>d,frontMatter:()=>o,metadata:()=>i,toc:()=>c});var s=t(4848),a=t(8453);const o={},r="Basics Workflow concepts",i={permalink:"/blog/2024/09/04/basics-of-workflows",source:"@site/blog/2024-09-04-basics-of-workflows.md",title:"Basics Workflow concepts",description:"What is a workflow engine?",date:"2024-09-04T00:00:00.000Z",tags:[],readingTime:3.2,hasTruncateMarker:!1,authors:[],frontMatter:{},unlisted:!1,nextItem:{title:"Microservices and Workflow: A Match Made in Heaven",permalink:"/blog/microservices-and-workflow"}},l={authorsImageUrls:[]},c=[{value:"What is a workflow engine?",id:"what-is-a-workflow-engine",level:2},{value:"Concepts",id:"concepts",level:3},{value:"Workflow specifications",id:"workflow-specifications",level:4},{value:"Tasks",id:"tasks",level:4},{value:"Task workers",id:"task-workers",level:4},{value:"Advantages of Workflow engines",id:"advantages-of-workflow-engines",level:3},{value:"Failure handling",id:"failure-handling",level:4},{value:"Microservices",id:"microservices",level:4},{value:"API gateway ",id:"api-gateway-",level:4},{value:"User tasks",id:"user-tasks",level:4},{value:"Integrations",id:"integrations",level:4},{value:"Common use cases",id:"common-use-cases",level:3},{value:"Process Orchestration or Microservices",id:"process-orchestration-or-microservices",level:4},{value:"Data manipulation",id:"data-manipulation",level:4}];function h(e){const n={a:"a",br:"br",code:"code",h2:"h2",h3:"h3",h4:"h4",li:"li",p:"p",pre:"pre",strong:"strong",ul:"ul",...(0,a.R)(),...e.components};return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(n.h2,{id:"what-is-a-workflow-engine",children:"What is a workflow engine?"}),"\n",(0,s.jsx)(n.p,{children:"A workflow engine, in the simplest way is a way to run a series of steps,\nwait for input or output,\nhow to handle problems, exceptions or retries\nand keep state of where in the steps the flow is."}),"\n",(0,s.jsx)(n.h3,{id:"concepts",children:"Concepts"}),"\n",(0,s.jsx)(n.h4,{id:"workflow-specifications",children:"Workflow specifications"}),"\n",(0,s.jsxs)(n.p,{children:["A workflow specification is the configuration, or metadata object, that tells the engine what Tasks to run,\nwhat order to run the tasks,\n",(0,s.jsx)(n.strong,{children:"how to handle exceptions or failures,"}),"\nwhat variables are to be passed from task to task,\nand what inputs and outputs are required to run the workflow."]}),"\n",(0,s.jsxs)(n.p,{children:["In LittleHorse the Workflow Spec is submitted to and held by the LittleHorse server.\nIt is a written in Code, using the LittleHorse SDK.",(0,s.jsx)(n.br,{}),"\n","In the background LittleHorse server takes the submitted spec from the SDK, and compiles a protobuf object that is submitted to the LittleHorse server."]}),"\n",(0,s.jsx)(n.p,{children:"Example:"}),"\n",(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-declarative",children:'public class QuickstartWorkflow {\n\n public static final String WF_NAME = "quickstart";\n public static final String GREET = "greet";\n\n /*\n * This method defines the logic of our workflow\n */\n public void quickstartWf(WorkflowThread wf) {\n // Create an input variable, make it searchable\n WfRunVariable name = wf.addVariable("input-name", VariableType.STR).searchable();\n\n // Execute a task and pass in the variable.\n wf.execute(GREET, name);\n }\n\n /*\n * This method returns a LittleHorse `Workflow` wrapper object that can be\n * used to register the WfSpec to the LH Server.\n */\n public Workflow getWorkflow() {\n return Workflow.newWorkflow(WF_NAME, this::quickstartWf);\n }\n}\n'})}),"\n",(0,s.jsx)(n.h4,{id:"tasks",children:"Tasks"}),"\n",(0,s.jsxs)(n.p,{children:["Tasks are the unit of work for a work flow engine.",(0,s.jsx)(n.br,{}),"\n","It's best to think in examples:"]}),"\n",(0,s.jsxs)(n.ul,{children:["\n",(0,s.jsx)(n.li,{children:"Change lower case letters to upper case letters."}),"\n",(0,s.jsx)(n.li,{children:"Call an API with an input variable and pass along the output."}),"\n",(0,s.jsx)(n.li,{children:"Wait for user input or an event to happen."}),"\n"]}),"\n",(0,s.jsx)(n.h4,{id:"task-workers",children:"Task workers"}),"\n",(0,s.jsxs)(n.p,{children:["Task workers are the places where tasks are executed.",(0,s.jsx)(n.br,{}),"\n","There can be one or many more task workers per task, this allows for scalability and reliability when executing tasks."]}),"\n",(0,s.jsx)(n.h3,{id:"advantages-of-workflow-engines",children:"Advantages of Workflow engines"}),"\n",(0,s.jsx)(n.h4,{id:"failure-handling",children:"Failure handling"}),"\n",(0,s.jsxs)(n.p,{children:["When automating a business process what to do when something doesn't happen, happens with an unexpected outcome, or plain fails is a core challenge.",(0,s.jsx)(n.br,{}),"\n","More often than not this is hard to reason about, leading to uncaught exceptions that lead to questioning completeness of a workflow or plain incorrect data.",(0,s.jsx)(n.br,{}),"\n","A workflow engine standardizes how to throw an exception, where the exception is logged, and the logic around when/how to retry."]}),"\n",(0,s.jsx)(n.h4,{id:"microservices",children:"Microservices"}),"\n",(0,s.jsxs)(n.p,{children:["Colt McNealy talks about how to wrangle Microservices with a workflow engine, ",(0,s.jsx)(n.a,{href:"https://littlehorse.dev/blog/microservices-and-workflow",children:"https://littlehorse.dev/blog/microservices-and-workflow"}),".",(0,s.jsx)(n.br,{}),"\n","The inherent properties of a workflow engine enable developers, and operators, to regain control of their microservices deployments."]}),"\n",(0,s.jsx)(n.h4,{id:"api-gateway-",children:"API gateway "}),"\n",(0,s.jsx)(n.p,{children:"If we look at the properties of an API gateway and how they are used, a workflow engine makes sense."}),"\n",(0,s.jsxs)(n.p,{children:["The usage of an API gateway is to have a single layer that abstracts further endpoints.",(0,s.jsx)(n.br,{}),"\n","In practice this most often means calling the same API gateway multiple times, receiving the requested data, and doing some date manipulation or calculations at the application layer.\nA workflow engine performs all of the most common actions, and includes things like centralized security, possible data obscurity, failure handling, observability and allows for operators to scale compute.\nAll while still maintaining a central plane that can be shared across an entire orginization.",(0,s.jsx)(n.br,{}),"\n","Additionally a workflow engine still allows for the standard CRUD(Create, Read, Update, Delete) operations that an API gateway provides."]}),"\n",(0,s.jsx)(n.h4,{id:"user-tasks",children:"User tasks"}),"\n",(0,s.jsx)(n.p,{children:"A user task allows a developer to inject a human into the process. Using UserTasks you can assign a human to do something.\nOften times this means having a human approve a process, or reject a request."}),"\n",(0,s.jsx)(n.h4,{id:"integrations",children:"Integrations"}),"\n",(0,s.jsx)(n.h3,{id:"common-use-cases",children:"Common use cases"}),"\n",(0,s.jsx)(n.h4,{id:"process-orchestration-or-microservices",children:"Process Orchestration or Microservices"}),"\n",(0,s.jsx)(n.h4,{id:"data-manipulation",children:"Data manipulation"})]})}function d(e={}){const{wrapper:n}={...(0,a.R)(),...e.components};return n?(0,s.jsx)(n,{...e,children:(0,s.jsx)(h,{...e})}):h(e)}},8453:(e,n,t)=>{t.d(n,{R:()=>r,x:()=>i});var s=t(6540);const a={},o=s.createContext(a);function r(e){const n=s.useContext(o);return s.useMemo((function(){return"function"==typeof e?e(n):{...n,...e}}),[n,e])}function i(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(a):e.components||a:r(e.components),s.createElement(o.Provider,{value:n},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/2a162317.1747215b.js b/assets/js/2a162317.1747215b.js deleted file mode 100644 index d50466b98..000000000 --- a/assets/js/2a162317.1747215b.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunklh_site=self.webpackChunklh_site||[]).push([[7828],{4620:(e,s,d)=>{d.r(s),d.d(s,{assets:()=>l,contentTitle:()=>i,default:()=>x,frontMatter:()=>t,metadata:()=>h,toc:()=>c});var r=d(4848),n=d(8453);const t={},i="LittleHorse API Reference",h={id:"api",title:"LittleHorse API Reference",description:"The LittleHorse Server exposes a GRPC API to its clients. For most general usage of LittleHorse, you will not need to",source:"@site/docs/08-api.md",sourceDirName:".",slug:"/api",permalink:"/docs/api",draft:!1,unlisted:!1,tags:[],version:"current",sidebarPosition:8,frontMatter:{},sidebar:"tutorialSidebar",previous:{title:"Three LittleHorse Orchestrators",permalink:"/docs/operations/docker-compose/three-servers"}},l={},c=[{value:"LittleHorse GRPC API",id:"littlehorse-grpc-api",level:2},{value:"RPCPutTaskDef
",id:"puttaskdef",level:3},{value:"RPC GetTaskDef
",id:"gettaskdef",level:3},{value:"RPC GetTaskWorkerGroup
",id:"gettaskworkergroup",level:3},{value:"RPC PutExternalEventDef
",id:"putexternaleventdef",level:3},{value:"RPC GetExternalEventDef
",id:"getexternaleventdef",level:3},{value:"RPC PutWorkflowEventDef
",id:"putworkfloweventdef",level:3},{value:"RPC PutWfSpec
",id:"putwfspec",level:3},{value:"RPC GetWfSpec
",id:"getwfspec",level:3},{value:"RPC GetLatestWfSpec
",id:"getlatestwfspec",level:3},{value:"RPC MigrateWfSpec
",id:"migratewfspec",level:3},{value:"RPC PutUserTaskDef
",id:"putusertaskdef",level:3},{value:"RPC GetUserTaskDef
",id:"getusertaskdef",level:3},{value:"RPC GetLatestUserTaskDef
",id:"getlatestusertaskdef",level:3},{value:"RPC RunWf
",id:"runwf",level:3},{value:"RPC ScheduleWf
",id:"schedulewf",level:3},{value:"RPC SearchScheduledWfRun
",id:"searchscheduledwfrun",level:3},{value:"RPC GetScheduledWfRun
",id:"getscheduledwfrun",level:3},{value:"RPC GetWfRun
",id:"getwfrun",level:3},{value:"RPC GetUserTaskRun
",id:"getusertaskrun",level:3},{value:"RPC AssignUserTaskRun
",id:"assignusertaskrun",level:3},{value:"RPC CompleteUserTaskRun
",id:"completeusertaskrun",level:3},{value:"RPC CancelUserTaskRun
",id:"cancelusertaskrun",level:3},{value:"RPC SaveUserTaskRunProgress
",id:"saveusertaskrunprogress",level:3},{value:"RPC ListUserTaskRuns
",id:"listusertaskruns",level:3},{value:"RPC GetNodeRun
",id:"getnoderun",level:3},{value:"RPC ListNodeRuns
",id:"listnoderuns",level:3},{value:"RPC GetTaskRun
",id:"gettaskrun",level:3},{value:"RPC ListTaskRuns
",id:"listtaskruns",level:3},{value:"RPC GetVariable
",id:"getvariable",level:3},{value:"RPC ListVariables
",id:"listvariables",level:3},{value:"RPC PutExternalEvent
",id:"putexternalevent",level:3},{value:"RPC GetExternalEvent
",id:"getexternalevent",level:3},{value:"RPC AwaitWorkflowEvent
",id:"awaitworkflowevent",level:3},{value:"RPC ListExternalEvents
",id:"listexternalevents",level:3},{value:"RPC SearchWfRun
",id:"searchwfrun",level:3},{value:"RPC SearchNodeRun
",id:"searchnoderun",level:3},{value:"RPC SearchTaskRun
",id:"searchtaskrun",level:3},{value:"RPC SearchUserTaskRun
",id:"searchusertaskrun",level:3},{value:"RPC SearchVariable
",id:"searchvariable",level:3},{value:"RPC SearchExternalEvent
",id:"searchexternalevent",level:3},{value:"RPC SearchTaskDef
",id:"searchtaskdef",level:3},{value:"RPC SearchUserTaskDef
",id:"searchusertaskdef",level:3},{value:"RPC SearchWfSpec
",id:"searchwfspec",level:3},{value:"RPC SearchExternalEventDef
",id:"searchexternaleventdef",level:3},{value:"RPC SearchTenant
",id:"searchtenant",level:3},{value:"RPC SearchPrincipal
",id:"searchprincipal",level:3},{value:"RPC RegisterTaskWorker
",id:"registertaskworker",level:3},{value:"RPC PollTask
",id:"polltask",level:3},{value:"RPC ReportTask
",id:"reporttask",level:3},{value:"RPC StopWfRun
",id:"stopwfrun",level:3},{value:"RPC ResumeWfRun
",id:"resumewfrun",level:3},{value:"RPC RescueThreadRun
",id:"rescuethreadrun",level:3},{value:"RPC DeleteWfRun
",id:"deletewfrun",level:3},{value:"RPC DeleteTaskDef
",id:"deletetaskdef",level:3},{value:"RPC DeleteWfSpec
",id:"deletewfspec",level:3},{value:"RPC DeleteUserTaskDef
",id:"deleteusertaskdef",level:3},{value:"RPC DeleteExternalEventDef
",id:"deleteexternaleventdef",level:3},{value:"RPC DeletePrincipal
",id:"deleteprincipal",level:3},{value:"RPC DeleteScheduledWfRun
",id:"deletescheduledwfrun",level:3},{value:"RPC GetTaskDefMetricsWindow
",id:"gettaskdefmetricswindow",level:3},{value:"RPC GetWfSpecMetricsWindow
",id:"getwfspecmetricswindow",level:3},{value:"RPC ListTaskDefMetrics
",id:"listtaskdefmetrics",level:3},{value:"RPC ListWfSpecMetrics
",id:"listwfspecmetrics",level:3},{value:"RPC PutTenant
",id:"puttenant",level:3},{value:"RPC GetTenant
",id:"gettenant",level:3},{value:"RPC PutPrincipal
",id:"putprincipal",level:3},{value:"RPC Whoami
",id:"whoami",level:3},{value:"RPC GetServerVersion
",id:"getserverversion",level:3},{value:"LittleHorse Protobuf Schemas",id:"littlehorse-protobuf-schemas",level:2},{value:"Message DeletePrincipalRequest
",id:"deleteprincipalrequest",level:3},{value:"Message Principal
",id:"principal",level:3},{value:"Message Principal.PerTenantAclsEntry
",id:"principalpertenantaclsentry",level:3},{value:"Message PutPrincipalRequest
",id:"putprincipalrequest",level:3},{value:"Message PutPrincipalRequest.PerTenantAclsEntry
",id:"putprincipalrequestpertenantaclsentry",level:3},{value:"Message PutTenantRequest
",id:"puttenantrequest",level:3},{value:"Message ServerACL
",id:"serveracl",level:3},{value:"Message ServerACLs
",id:"serveracls",level:3},{value:"Message Tenant
",id:"tenant",level:3},{value:"Message ExponentialBackoffRetryPolicy
",id:"exponentialbackoffretrypolicy",level:3},{value:"Message TaskNode
",id:"tasknode",level:3},{value:"Message UTActionTrigger
",id:"utactiontrigger",level:3},{value:"Message UTActionTrigger.UTACancel
",id:"utactiontriggerutacancel",level:3},{value:"Message UTActionTrigger.UTAReassign
",id:"utactiontriggerutareassign",level:3},{value:"Message UTActionTrigger.UTATask
",id:"utactiontriggerutatask",level:3},{value:"Message VariableAssignment
",id:"variableassignment",level:3},{value:"Message VariableAssignment.FormatString
",id:"variableassignmentformatstring",level:3},{value:"Message VariableDef
",id:"variabledef",level:3},{value:"Message VariableMutation
",id:"variablemutation",level:3},{value:"Message VariableMutation.NodeOutputSource
",id:"variablemutationnodeoutputsource",level:3},{value:"Message ExternalEvent
",id:"externalevent",level:3},{value:"Message ExternalEventDef
",id:"externaleventdef",level:3},{value:"Message ExternalEventRetentionPolicy
",id:"externaleventretentionpolicy",level:3},{value:"Message EntrypointRun
",id:"entrypointrun",level:3},{value:"Message ExitRun
",id:"exitrun",level:3},{value:"Message ExternalEventNodeRun
",id:"externaleventnoderun",level:3},{value:"Message Failure
",id:"failure",level:3},{value:"Message NodeRun
",id:"noderun",level:3},{value:"Message SleepNodeRun
",id:"sleepnoderun",level:3},{value:"Message StartMultipleThreadsRun
",id:"startmultiplethreadsrun",level:3},{value:"Message StartThreadRun
",id:"startthreadrun",level:3},{value:"Message TaskNodeRun
",id:"tasknoderun",level:3},{value:"Message ThrowEventNodeRun
",id:"throweventnoderun",level:3},{value:"Message UserTaskNodeRun
",id:"usertasknoderun",level:3},{value:"Message WaitForThreadsRun
",id:"waitforthreadsrun",level:3},{value:"Message WaitForThreadsRun.WaitForThread
",id:"waitforthreadsrunwaitforthread",level:3},{value:"Message ExternalEventDefId
",id:"externaleventdefid",level:3},{value:"Message ExternalEventId
",id:"externaleventid",level:3},{value:"Message NodeRunId
",id:"noderunid",level:3},{value:"Message PrincipalId
",id:"principalid",level:3},{value:"Message ScheduledWfRunId
",id:"scheduledwfrunid",level:3},{value:"Message TaskDefId
",id:"taskdefid",level:3},{value:"Message TaskDefMetricsId
",id:"taskdefmetricsid",level:3},{value:"Message TaskRunId
",id:"taskrunid",level:3},{value:"Message TaskWorkerGroupId
",id:"taskworkergroupid",level:3},{value:"Message TenantId
",id:"tenantid",level:3},{value:"Message UserTaskDefId
",id:"usertaskdefid",level:3},{value:"Message UserTaskRunId
",id:"usertaskrunid",level:3},{value:"Message VariableId
",id:"variableid",level:3},{value:"Message WfRunId
",id:"wfrunid",level:3},{value:"Message WfSpecId
",id:"wfspecid",level:3},{value:"Message WfSpecMetricsId
",id:"wfspecmetricsid",level:3},{value:"Message WorkflowEventDefId
",id:"workfloweventdefid",level:3},{value:"Message WorkflowEventId
",id:"workfloweventid",level:3},{value:"Message ScheduledWfRun
",id:"scheduledwfrun",level:3},{value:"Message ScheduledWfRun.VariablesEntry
",id:"scheduledwfrunvariablesentry",level:3},{value:"Message AwaitWorkflowEventRequest
",id:"awaitworkfloweventrequest",level:3},{value:"Message DeleteExternalEventDefRequest
",id:"deleteexternaleventdefrequest",level:3},{value:"Message DeleteExternalEventRequest
",id:"deleteexternaleventrequest",level:3},{value:"Message DeleteScheduledWfRunRequest
",id:"deletescheduledwfrunrequest",level:3},{value:"Message DeleteTaskDefRequest
",id:"deletetaskdefrequest",level:3},{value:"Message DeleteUserTaskDefRequest
",id:"deleteusertaskdefrequest",level:3},{value:"Message DeleteWfRunRequest
",id:"deletewfrunrequest",level:3},{value:"Message DeleteWfSpecRequest
",id:"deletewfspecrequest",level:3},{value:"Message ExternalEventDefIdList
",id:"externaleventdefidlist",level:3},{value:"Message ExternalEventIdList
",id:"externaleventidlist",level:3},{value:"Message ExternalEventList
",id:"externaleventlist",level:3},{value:"Message GetLatestUserTaskDefRequest
",id:"getlatestusertaskdefrequest",level:3},{value:"Message GetLatestWfSpecRequest
",id:"getlatestwfspecrequest",level:3},{value:"Message LHHostInfo
",id:"lhhostinfo",level:3},{value:"Message ListExternalEventsRequest
",id:"listexternaleventsrequest",level:3},{value:"Message ListNodeRunsRequest
",id:"listnoderunsrequest",level:3},{value:"Message ListTaskMetricsRequest
",id:"listtaskmetricsrequest",level:3},{value:"Message ListTaskMetricsResponse
",id:"listtaskmetricsresponse",level:3},{value:"Message ListTaskRunsRequest
",id:"listtaskrunsrequest",level:3},{value:"Message ListUserTaskRunRequest
",id:"listusertaskrunrequest",level:3},{value:"Message ListVariablesRequest
",id:"listvariablesrequest",level:3},{value:"Message ListWfMetricsRequest
",id:"listwfmetricsrequest",level:3},{value:"Message ListWfMetricsResponse
",id:"listwfmetricsresponse",level:3},{value:"Message MigrateWfSpecRequest
",id:"migratewfspecrequest",level:3},{value:"Message NodeRunIdList
",id:"noderunidlist",level:3},{value:"Message NodeRunList
",id:"noderunlist",level:3},{value:"Message PollTaskRequest
",id:"polltaskrequest",level:3},{value:"Message PollTaskResponse
",id:"polltaskresponse",level:3},{value:"Message PrincipalIdList
",id:"principalidlist",level:3},{value:"Message PutExternalEventDefRequest
",id:"putexternaleventdefrequest",level:3},{value:"Message PutExternalEventRequest
",id:"putexternaleventrequest",level:3},{value:"Message PutTaskDefRequest
",id:"puttaskdefrequest",level:3},{value:"Message PutUserTaskDefRequest
",id:"putusertaskdefrequest",level:3},{value:"Message PutWfSpecRequest
",id:"putwfspecrequest",level:3},{value:"Message PutWfSpecRequest.ThreadSpecsEntry
",id:"putwfspecrequestthreadspecsentry",level:3},{value:"Message PutWorkflowEventDefRequest
",id:"putworkfloweventdefrequest",level:3},{value:"Message RegisterTaskWorkerRequest
",id:"registertaskworkerrequest",level:3},{value:"Message RegisterTaskWorkerResponse
",id:"registertaskworkerresponse",level:3},{value:"Message ReportTaskRun
",id:"reporttaskrun",level:3},{value:"Message RescueThreadRunRequest
",id:"rescuethreadrunrequest",level:3},{value:"Message ResumeWfRunRequest
",id:"resumewfrunrequest",level:3},{value:"Message RunWfRequest
",id:"runwfrequest",level:3},{value:"Message RunWfRequest.VariablesEntry
",id:"runwfrequestvariablesentry",level:3},{value:"Message ScheduleWfRequest
",id:"schedulewfrequest",level:3},{value:"Message ScheduleWfRequest.VariablesEntry
",id:"schedulewfrequestvariablesentry",level:3},{value:"Message ScheduledTask
",id:"scheduledtask",level:3},{value:"Message ScheduledWfRunIdList
",id:"scheduledwfrunidlist",level:3},{value:"Message SearchExternalEventDefRequest
",id:"searchexternaleventdefrequest",level:3},{value:"Message SearchExternalEventRequest
",id:"searchexternaleventrequest",level:3},{value:"Message SearchNodeRunRequest
",id:"searchnoderunrequest",level:3},{value:"Message SearchPrincipalRequest
",id:"searchprincipalrequest",level:3},{value:"Message SearchScheduledWfRunRequest
",id:"searchscheduledwfrunrequest",level:3},{value:"Message SearchTaskDefRequest
",id:"searchtaskdefrequest",level:3},{value:"Message SearchTaskRunRequest
",id:"searchtaskrunrequest",level:3},{value:"Message SearchTenantRequest
",id:"searchtenantrequest",level:3},{value:"Message SearchUserTaskDefRequest
",id:"searchusertaskdefrequest",level:3},{value:"Message SearchUserTaskRunRequest
",id:"searchusertaskrunrequest",level:3},{value:"Message SearchVariableRequest
",id:"searchvariablerequest",level:3},{value:"Message SearchWfRunRequest
",id:"searchwfrunrequest",level:3},{value:"Message SearchWfSpecRequest
",id:"searchwfspecrequest",level:3},{value:"Message ServerVersionResponse
",id:"serverversionresponse",level:3},{value:"Message StopWfRunRequest
",id:"stopwfrunrequest",level:3},{value:"Message TaskDefIdList
",id:"taskdefidlist",level:3},{value:"Message TaskDefMetrics
",id:"taskdefmetrics",level:3},{value:"Message TaskDefMetricsQueryRequest
",id:"taskdefmetricsqueryrequest",level:3},{value:"Message TaskRunIdList
",id:"taskrunidlist",level:3},{value:"Message TaskRunList
",id:"taskrunlist",level:3},{value:"Message TaskWorkerGroup
",id:"taskworkergroup",level:3},{value:"Message TaskWorkerGroup.TaskWorkersEntry
",id:"taskworkergrouptaskworkersentry",level:3},{value:"Message TaskWorkerHeartBeatRequest
",id:"taskworkerheartbeatrequest",level:3},{value:"Message TaskWorkerMetadata
",id:"taskworkermetadata",level:3},{value:"Message TenantIdList
",id:"tenantidlist",level:3},{value:"Message UserTaskDefIdList
",id:"usertaskdefidlist",level:3},{value:"Message UserTaskRunIdList
",id:"usertaskrunidlist",level:3},{value:"Message UserTaskRunList
",id:"usertaskrunlist",level:3},{value:"Message VariableIdList
",id:"variableidlist",level:3},{value:"Message VariableList
",id:"variablelist",level:3},{value:"Message VariableMatch
",id:"variablematch",level:3},{value:"Message WfRunIdList
",id:"wfrunidlist",level:3},{value:"Message WfSpecIdList
",id:"wfspecidlist",level:3},{value:"Message WfSpecMetrics
",id:"wfspecmetrics",level:3},{value:"Message WfSpecMetricsQueryRequest
",id:"wfspecmetricsqueryrequest",level:3},{value:"Message TaskDef
",id:"taskdef",level:3},{value:"Message TaskDefOutputSchema
",id:"taskdefoutputschema",level:3},{value:"Message LHTaskError
",id:"lhtaskerror",level:3},{value:"Message LHTaskException
",id:"lhtaskexception",level:3},{value:"Message TaskAttempt
",id:"taskattempt",level:3},{value:"Message TaskNodeReference
",id:"tasknodereference",level:3},{value:"Message TaskRun
",id:"taskrun",level:3},{value:"Message TaskRunSource
",id:"taskrunsource",level:3},{value:"Message VarNameAndVal
",id:"varnameandval",level:3},{value:"Message AssignUserTaskRunRequest
",id:"assignusertaskrunrequest",level:3},{value:"Message CancelUserTaskRunRequest
",id:"cancelusertaskrunrequest",level:3},{value:"Message CompleteUserTaskRunRequest
",id:"completeusertaskrunrequest",level:3},{value:"Message CompleteUserTaskRunRequest.ResultsEntry
",id:"completeusertaskrunrequestresultsentry",level:3},{value:"Message SaveUserTaskRunProgressRequest
",id:"saveusertaskrunprogressrequest",level:3},{value:"Message SaveUserTaskRunProgressRequest.ResultsEntry
",id:"saveusertaskrunprogressrequestresultsentry",level:3},{value:"Message UserTaskDef
",id:"usertaskdef",level:3},{value:"Message UserTaskEvent
",id:"usertaskevent",level:3},{value:"Message UserTaskEvent.UTEAssigned
",id:"usertaskeventuteassigned",level:3},{value:"Message UserTaskEvent.UTECancelled
",id:"usertaskeventutecancelled",level:3},{value:"Message UserTaskEvent.UTESaved
",id:"usertaskeventutesaved",level:3},{value:"Message UserTaskEvent.UTESaved.ResultsEntry
",id:"usertaskeventutesavedresultsentry",level:3},{value:"Message UserTaskEvent.UTETaskExecuted
",id:"usertaskeventutetaskexecuted",level:3},{value:"Message UserTaskField
",id:"usertaskfield",level:3},{value:"Message UserTaskRun
",id:"usertaskrun",level:3},{value:"Message UserTaskRun.ResultsEntry
",id:"usertaskrunresultsentry",level:3},{value:"Message UserTaskTriggerReference
",id:"usertasktriggerreference",level:3},{value:"Message Variable
",id:"variable",level:3},{value:"Message VariableValue
",id:"variablevalue",level:3},{value:"Message FailureBeingHandled
",id:"failurebeinghandled",level:3},{value:"Message HandlingFailureHaltReason
",id:"handlingfailurehaltreason",level:3},{value:"Message Interrupted
",id:"interrupted",level:3},{value:"Message ManualHalt
",id:"manualhalt",level:3},{value:"Message ParentHalted
",id:"parenthalted",level:3},{value:"Message PendingFailureHandler
",id:"pendingfailurehandler",level:3},{value:"Message PendingFailureHandlerHaltReason
",id:"pendingfailurehandlerhaltreason",level:3},{value:"Message PendingInterrupt
",id:"pendinginterrupt",level:3},{value:"Message PendingInterruptHaltReason
",id:"pendinginterrupthaltreason",level:3},{value:"Message ThreadHaltReason
",id:"threadhaltreason",level:3},{value:"Message ThreadRun
",id:"threadrun",level:3},{value:"Message WfRun
",id:"wfrun",level:3},{value:"Message Edge
",id:"edge",level:3},{value:"Message EdgeCondition
",id:"edgecondition",level:3},{value:"Message EntrypointNode
",id:"entrypointnode",level:3},{value:"Message ExitNode
",id:"exitnode",level:3},{value:"Message ExternalEventNode
",id:"externaleventnode",level:3},{value:"Message FailureDef
",id:"failuredef",level:3},{value:"Message FailureHandlerDef
",id:"failurehandlerdef",level:3},{value:"Message InterruptDef
",id:"interruptdef",level:3},{value:"Message JsonIndex
",id:"jsonindex",level:3},{value:"Message Node
",id:"node",level:3},{value:"Message NodeMigration
",id:"nodemigration",level:3},{value:"Message NopNode
",id:"nopnode",level:3},{value:"Message SleepNode
",id:"sleepnode",level:3},{value:"Message StartMultipleThreadsNode
",id:"startmultiplethreadsnode",level:3},{value:"Message StartMultipleThreadsNode.VariablesEntry
",id:"startmultiplethreadsnodevariablesentry",level:3},{value:"Message StartThreadNode
",id:"startthreadnode",level:3},{value:"Message StartThreadNode.VariablesEntry
",id:"startthreadnodevariablesentry",level:3},{value:"Message ThreadRetentionPolicy
",id:"threadretentionpolicy",level:3},{value:"Message ThreadSpec
",id:"threadspec",level:3},{value:"Message ThreadSpec.NodesEntry
",id:"threadspecnodesentry",level:3},{value:"Message ThreadSpecMigration
",id:"threadspecmigration",level:3},{value:"Message ThreadSpecMigration.NodeMigrationsEntry
",id:"threadspecmigrationnodemigrationsentry",level:3},{value:"Message ThreadVarDef
",id:"threadvardef",level:3},{value:"Message ThrowEventNode
",id:"throweventnode",level:3},{value:"Message UserTaskNode
",id:"usertasknode",level:3},{value:"Message WaitForThreadsNode
",id:"waitforthreadsnode",level:3},{value:"Message WaitForThreadsNode.ThreadToWaitFor
",id:"waitforthreadsnodethreadtowaitfor",level:3},{value:"Message WaitForThreadsNode.ThreadsToWaitFor
",id:"waitforthreadsnodethreadstowaitfor",level:3},{value:"Message WfSpec
",id:"wfspec",level:3},{value:"Message WfSpec.ParentWfSpecReference
",id:"wfspecparentwfspecreference",level:3},{value:"Message WfSpec.ThreadSpecsEntry
",id:"wfspecthreadspecsentry",level:3},{value:"Message WfSpecVersionMigration
",id:"wfspecversionmigration",level:3},{value:"Message WfSpecVersionMigration.ThreadSpecMigrationsEntry
",id:"wfspecversionmigrationthreadspecmigrationsentry",level:3},{value:"Message WorkflowRetentionPolicy
",id:"workflowretentionpolicy",level:3},{value:"Message WorkflowEvent
",id:"workflowevent",level:3},{value:"Message WorkflowEventDef
",id:"workfloweventdef",level:3},{value:"LittleHorse Enums",id:"littlehorse-enums",level:2},{value:"Enum ACLAction",id:"aclaction",level:3},{value:"Enum ACLResource",id:"aclresource",level:3},{value:"Enum LHErrorType",id:"lherrortype",level:3},{value:"Enum LHStatus",id:"lhstatus",level:3},{value:"Enum MetadataStatus",id:"metadatastatus",level:3},{value:"Enum MetricsWindowLength",id:"metricswindowlength",level:3},{value:"Enum TaskStatus",id:"taskstatus",level:3},{value:"Enum VariableType",id:"variabletype",level:3},{value:"Enum Comparator",id:"comparator",level:3},{value:"Enum UTActionTrigger.UTHook",id:"utactiontriggeruthook",level:3},{value:"Enum VariableMutationType",id:"variablemutationtype",level:3},{value:"Enum WaitForThreadsRun.WaitingThreadStatus",id:"waitforthreadsrunwaitingthreadstatus",level:3},{value:"Enum AllowedUpdateType",id:"allowedupdatetype",level:3},{value:"Enum SearchNodeRunRequest.NodeType",id:"searchnoderunrequestnodetype",level:3},{value:"Enum SaveUserTaskRunProgressRequest.SaveUserTaskRunAssignmentPolicy",id:"saveusertaskrunprogressrequestsaveusertaskrunassignmentpolicy",level:3},{value:"Enum UserTaskRunStatus",id:"usertaskrunstatus",level:3},{value:"Enum ThreadType",id:"threadtype",level:3},{value:"Enum FailureHandlerDef.LHFailureType",id:"failurehandlerdeflhfailuretype",level:3},{value:"Enum WfRunVariableAccessLevel",id:"wfrunvariableaccesslevel",level:3}];function a(e){const s={a:"a",code:"code",em:"em",h1:"h1",h2:"h2",h3:"h3",header:"header",li:"li",ol:"ol",p:"p",strong:"strong",table:"table",tbody:"tbody",td:"td",th:"th",thead:"thead",tr:"tr",ul:"ul",...(0,n.R)(),...e.components};return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(s.header,{children:(0,r.jsx)(s.h1,{id:"littlehorse-api-reference",children:"LittleHorse API Reference"})}),"\n",(0,r.jsxs)(s.p,{children:["The LittleHorse Server exposes a GRPC API to its clients. For most general usage of LittleHorse, you ",(0,r.jsx)(s.em,{children:"will not"})," need to\nread the raw protobuf schema. Common LittleHorse client actions fall into three general categories:"]}),"\n",(0,r.jsxs)(s.ol,{children:["\n",(0,r.jsxs)(s.li,{children:["Developing a Task Worker, which is handled by our ",(0,r.jsx)(s.a,{href:"/docs/developer-guide/task-worker-development",children:"Task Worker SDK's"}),"."]}),"\n",(0,r.jsxs)(s.li,{children:["Developing a WfSpec, which is handled by our ",(0,r.jsxs)(s.a,{href:"/docs/developer-guide/wfspec-development",children:[(0,r.jsx)(s.code,{children:"WfSpec"})," SDK's"]}),"."]}),"\n",(0,r.jsxs)(s.li,{children:["Running and interacting with ",(0,r.jsx)(s.code,{children:"WfRun"}),"'s, which is documented in our ",(0,r.jsx)(s.a,{href:"/docs/developer-guide/grpc",children:'"Using the API"'})," docs."]}),"\n"]}),"\n",(0,r.jsxs)(s.p,{children:["However, the highly curious reader might want to see the actual GRPC and Protobuf specification. The docs on this page\nare autogenerated from our actual ",(0,r.jsx)(s.a,{href:"https://github.com/littlehorse-enterprises/littlehorse/tree/master/schemas",children:"protobuf files"}),"."]}),"\n",(0,r.jsx)(s.p,{children:"The documentation of what the specific protobuf fields mean is potentially useful for advanced Jedi Master use-cases."}),"\n",(0,r.jsx)(s.p,{children:"Happy Reading!"}),"\n",(0,r.jsx)(s.h2,{id:"littlehorse-grpc-api",children:"LittleHorse GRPC API"}),"\n",(0,r.jsxs)(s.p,{children:["The LittleHorse GRPC API is the backbone of the clients that you get in all of our SDK's. Every ",(0,r.jsx)(s.code,{children:"LHConfig"})," object\ngives you a GRPC stub to access the API. Most common operations are already documented with code examples in different\nlanguages ",(0,r.jsx)(s.a,{href:"/docs/developer-guide/grpc",children:"here"}),", but we put this here for the true Jedi Masters."]}),"\n",(0,r.jsxs)(s.h3,{id:"puttaskdef",children:["RPC ",(0,r.jsx)(s.code,{children:"PutTaskDef"})]}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Request Type"}),(0,r.jsx)(s.th,{children:"Response Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsx)(s.tbody,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#puttaskdefrequest",children:"PutTaskDefRequest"})}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#taskdef",children:"TaskDef"})}),(0,r.jsx)(s.td,{children:"Creates a TaskDef."})]})})]}),"\n",(0,r.jsxs)(s.h3,{id:"gettaskdef",children:["RPC ",(0,r.jsx)(s.code,{children:"GetTaskDef"})]}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Request Type"}),(0,r.jsx)(s.th,{children:"Response Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsx)(s.tbody,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#taskdefid",children:"TaskDefId"})}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#taskdef",children:"TaskDef"})}),(0,r.jsx)(s.td,{children:"Gets a TaskDef."})]})})]}),"\n",(0,r.jsxs)(s.h3,{id:"gettaskworkergroup",children:["RPC ",(0,r.jsx)(s.code,{children:"GetTaskWorkerGroup"})]}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Request Type"}),(0,r.jsx)(s.th,{children:"Response Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsx)(s.tbody,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#taskdefid",children:"TaskDefId"})}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#taskworkergroup",children:"TaskWorkerGroup"})}),(0,r.jsx)(s.td,{children:"Gets the registered task worker group associated with a specific TaskDef."})]})})]}),"\n",(0,r.jsxs)(s.h3,{id:"putexternaleventdef",children:["RPC ",(0,r.jsx)(s.code,{children:"PutExternalEventDef"})]}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Request Type"}),(0,r.jsx)(s.th,{children:"Response Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsx)(s.tbody,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#putexternaleventdefrequest",children:"PutExternalEventDefRequest"})}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#externaleventdef",children:"ExternalEventDef"})}),(0,r.jsx)(s.td,{children:"Creates an ExternalEventDef."})]})})]}),"\n",(0,r.jsxs)(s.h3,{id:"getexternaleventdef",children:["RPC ",(0,r.jsx)(s.code,{children:"GetExternalEventDef"})]}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Request Type"}),(0,r.jsx)(s.th,{children:"Response Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsx)(s.tbody,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#externaleventdefid",children:"ExternalEventDefId"})}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#externaleventdef",children:"ExternalEventDef"})}),(0,r.jsx)(s.td,{children:"Gets an ExternalEventDef."})]})})]}),"\n",(0,r.jsxs)(s.h3,{id:"putworkfloweventdef",children:["RPC ",(0,r.jsx)(s.code,{children:"PutWorkflowEventDef"})]}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Request Type"}),(0,r.jsx)(s.th,{children:"Response Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsx)(s.tbody,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#putworkfloweventdefrequest",children:"PutWorkflowEventDefRequest"})}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#workfloweventdef",children:"WorkflowEventDef"})}),(0,r.jsx)(s.td,{children:"EXPERIMENTAL: Creates a WorkflowEventDef."})]})})]}),"\n",(0,r.jsxs)(s.h3,{id:"putwfspec",children:["RPC ",(0,r.jsx)(s.code,{children:"PutWfSpec"})]}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Request Type"}),(0,r.jsx)(s.th,{children:"Response Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsx)(s.tbody,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#putwfspecrequest",children:"PutWfSpecRequest"})}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#wfspec",children:"WfSpec"})}),(0,r.jsx)(s.td,{children:"Creates a WfSpec."})]})})]}),"\n",(0,r.jsxs)(s.h3,{id:"getwfspec",children:["RPC ",(0,r.jsx)(s.code,{children:"GetWfSpec"})]}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Request Type"}),(0,r.jsx)(s.th,{children:"Response Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsx)(s.tbody,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#wfspecid",children:"WfSpecId"})}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#wfspec",children:"WfSpec"})}),(0,r.jsx)(s.td,{children:"Gets a WfSpec."})]})})]}),"\n",(0,r.jsxs)(s.h3,{id:"getlatestwfspec",children:["RPC ",(0,r.jsx)(s.code,{children:"GetLatestWfSpec"})]}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Request Type"}),(0,r.jsx)(s.th,{children:"Response Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsx)(s.tbody,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#getlatestwfspecrequest",children:"GetLatestWfSpecRequest"})}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#wfspec",children:"WfSpec"})}),(0,r.jsx)(s.td,{children:"Returns the latest WfSpec with a specified name (and optionally a specified Major Version)."})]})})]}),"\n",(0,r.jsxs)(s.h3,{id:"migratewfspec",children:["RPC ",(0,r.jsx)(s.code,{children:"MigrateWfSpec"})]}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Request Type"}),(0,r.jsx)(s.th,{children:"Response Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsx)(s.tbody,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#migratewfspecrequest",children:"MigrateWfSpecRequest"})}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#wfspec",children:"WfSpec"})}),(0,r.jsxs)(s.td,{children:["EXPERIMENTAL: Migrates all WfRun's from one version of a WfSpec onto a newer version of the same WfSpec. This is useful for long-running WfRun's (eg. a 60-day marketing campaign) where you must update WfRun's that are in the RUNNING state rather than allowing them to run to completion.",(0,r.jsx)("br",{}),(0,r.jsx)("br",{}),"As of 0.7.2, this feature is only partially implemented."]})]})})]}),"\n",(0,r.jsxs)(s.h3,{id:"putusertaskdef",children:["RPC ",(0,r.jsx)(s.code,{children:"PutUserTaskDef"})]}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Request Type"}),(0,r.jsx)(s.th,{children:"Response Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsx)(s.tbody,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#putusertaskdefrequest",children:"PutUserTaskDefRequest"})}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#usertaskdef",children:"UserTaskDef"})}),(0,r.jsx)(s.td,{children:"Creates a UserTaskDef."})]})})]}),"\n",(0,r.jsxs)(s.h3,{id:"getusertaskdef",children:["RPC ",(0,r.jsx)(s.code,{children:"GetUserTaskDef"})]}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Request Type"}),(0,r.jsx)(s.th,{children:"Response Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsx)(s.tbody,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#usertaskdefid",children:"UserTaskDefId"})}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#usertaskdef",children:"UserTaskDef"})}),(0,r.jsxs)(s.td,{children:["Gets a specific UserTaskDef.",(0,r.jsx)("br",{}),(0,r.jsx)("br",{}),"This RPC is highly useful for applications built around User Tasks. For example, a UI that dynamically displays form fields based on the User Task might first receive a UserTaskRun, then use that UserTaskRun to look up the UserTaskDef. The frontend would inspect the UserTaskDef and display a form field on the browser page for each field in the UserTaskDef."]})]})})]}),"\n",(0,r.jsxs)(s.h3,{id:"getlatestusertaskdef",children:["RPC ",(0,r.jsx)(s.code,{children:"GetLatestUserTaskDef"})]}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Request Type"}),(0,r.jsx)(s.th,{children:"Response Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsx)(s.tbody,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#getlatestusertaskdefrequest",children:"GetLatestUserTaskDefRequest"})}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#usertaskdef",children:"UserTaskDef"})}),(0,r.jsx)(s.td,{children:"Returns the most recent UserTaskDef with a specific name."})]})})]}),"\n",(0,r.jsxs)(s.h3,{id:"runwf",children:["RPC ",(0,r.jsx)(s.code,{children:"RunWf"})]}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Request Type"}),(0,r.jsx)(s.th,{children:"Response Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsx)(s.tbody,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#runwfrequest",children:"RunWfRequest"})}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#wfrun",children:"WfRun"})}),(0,r.jsx)(s.td,{children:"Runs a WfSpec to create a WfRun."})]})})]}),"\n",(0,r.jsxs)(s.h3,{id:"schedulewf",children:["RPC ",(0,r.jsx)(s.code,{children:"ScheduleWf"})]}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Request Type"}),(0,r.jsx)(s.th,{children:"Response Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsx)(s.tbody,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#schedulewfrequest",children:"ScheduleWfRequest"})}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#scheduledwfrun",children:"ScheduledWfRun"})}),(0,r.jsx)(s.td,{children:"Schedule repeated WfRun based on a cron expression"})]})})]}),"\n",(0,r.jsxs)(s.h3,{id:"searchscheduledwfrun",children:["RPC ",(0,r.jsx)(s.code,{children:"SearchScheduledWfRun"})]}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Request Type"}),(0,r.jsx)(s.th,{children:"Response Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsx)(s.tbody,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#searchscheduledwfrunrequest",children:"SearchScheduledWfRunRequest"})}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#scheduledwfrunidlist",children:"ScheduledWfRunIdList"})}),(0,r.jsx)(s.td,{children:"Search for existing schedules"})]})})]}),"\n",(0,r.jsxs)(s.h3,{id:"getscheduledwfrun",children:["RPC ",(0,r.jsx)(s.code,{children:"GetScheduledWfRun"})]}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Request Type"}),(0,r.jsx)(s.th,{children:"Response Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsx)(s.tbody,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#scheduledwfrunid",children:"ScheduledWfRunId"})}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#scheduledwfrun",children:"ScheduledWfRun"})}),(0,r.jsx)(s.td,{children:"Find a specific ScheduledWfRun"})]})})]}),"\n",(0,r.jsxs)(s.h3,{id:"getwfrun",children:["RPC ",(0,r.jsx)(s.code,{children:"GetWfRun"})]}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Request Type"}),(0,r.jsx)(s.th,{children:"Response Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsx)(s.tbody,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#wfrunid",children:"WfRunId"})}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#wfrun",children:"WfRun"})}),(0,r.jsx)(s.td,{children:"Gets a WfRun. Although useful for development and debugging, this RPC is not often used by applications."})]})})]}),"\n",(0,r.jsxs)(s.h3,{id:"getusertaskrun",children:["RPC ",(0,r.jsx)(s.code,{children:"GetUserTaskRun"})]}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Request Type"}),(0,r.jsx)(s.th,{children:"Response Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsx)(s.tbody,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#usertaskrunid",children:"UserTaskRunId"})}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#usertaskrun",children:"UserTaskRun"})}),(0,r.jsx)(s.td,{children:"Loads a specific UserTaskRun. It includes information about to whom the UserTask is currently assigned, history of assignments and reassignments, and any context for that UserTaskRun which is specific to the WfRun."})]})})]}),"\n",(0,r.jsxs)(s.h3,{id:"assignusertaskrun",children:["RPC ",(0,r.jsx)(s.code,{children:"AssignUserTaskRun"})]}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Request Type"}),(0,r.jsx)(s.th,{children:"Response Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsx)(s.tbody,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#assignusertaskrunrequest",children:"AssignUserTaskRunRequest"})}),(0,r.jsx)(s.td,{children:".google.protobuf.Empty"}),(0,r.jsx)(s.td,{children:"Change the ownership of a UserTaskRun to a new userId, userGroup, or both. The action will be reflected in your next call to SearchUserTaskRun. This RPC is useful for applications that are using User Tasks to build an internal task-list and wish to administer the tasks."})]})})]}),"\n",(0,r.jsxs)(s.h3,{id:"completeusertaskrun",children:["RPC ",(0,r.jsx)(s.code,{children:"CompleteUserTaskRun"})]}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Request Type"}),(0,r.jsx)(s.th,{children:"Response Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsx)(s.tbody,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#completeusertaskrunrequest",children:"CompleteUserTaskRunRequest"})}),(0,r.jsx)(s.td,{children:".google.protobuf.Empty"}),(0,r.jsxs)(s.td,{children:["Completes a UserTaskRun. Includes the results of the UserTaskRun, the UserTaskRun Id, and the userId of the user who completes the UserTaskRun. Results in the UserTask NodeRun being completed, and unblocks the associated ThreadRun in the WfRun.",(0,r.jsx)("br",{}),(0,r.jsx)("br",{}),"This RPC is highly useful for applications built around a WfSpec that uses USER_TASK nodes."]})]})})]}),"\n",(0,r.jsxs)(s.h3,{id:"cancelusertaskrun",children:["RPC ",(0,r.jsx)(s.code,{children:"CancelUserTaskRun"})]}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Request Type"}),(0,r.jsx)(s.th,{children:"Response Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsx)(s.tbody,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#cancelusertaskrunrequest",children:"CancelUserTaskRunRequest"})}),(0,r.jsx)(s.td,{children:".google.protobuf.Empty"}),(0,r.jsx)(s.td,{children:"Cancels a UserTaskRun. This will result in an EXCEPTION being propagated to the WfRun."})]})})]}),"\n",(0,r.jsxs)(s.h3,{id:"saveusertaskrunprogress",children:["RPC ",(0,r.jsx)(s.code,{children:"SaveUserTaskRunProgress"})]}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Request Type"}),(0,r.jsx)(s.th,{children:"Response Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsx)(s.tbody,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#saveusertaskrunprogressrequest",children:"SaveUserTaskRunProgressRequest"})}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#usertaskrun",children:"UserTaskRun"})}),(0,r.jsxs)(s.td,{children:["Saves the results of a UserTaskRun and logs who saved the content.",(0,r.jsx)("br",{}),(0,r.jsx)("br",{}),(0,r.jsx)("br",{}),(0,r.jsxs)("li",{children:[" Throws FAILED_PRECONDITION if the UserTaskRun is in the ",(0,r.jsx)(s.code,{children:"DONE"})," or ",(0,r.jsx)(s.code,{children:"CANCELLED"})," state."]})," ",(0,r.jsxs)("li",{children:[" If ",(0,r.jsx)(s.code,{children:"policy"})," is set to ",(0,r.jsx)(s.code,{children:"FAIL_IF_CLAIMED_BY_OTHER"}),", returns ",(0,r.jsx)(s.code,{children:"FAILED_PRECONDITION"})," if the ",(0,r.jsx)(s.code,{children:"user_id"})," field of the ",(0,r.jsx)(s.code,{children:"UserTaskRun"})," does not match the ",(0,r.jsx)(s.code,{children:"user_id"})," of the request."]})]})]})})]}),"\n",(0,r.jsxs)(s.h3,{id:"listusertaskruns",children:["RPC ",(0,r.jsx)(s.code,{children:"ListUserTaskRuns"})]}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Request Type"}),(0,r.jsx)(s.th,{children:"Response Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsx)(s.tbody,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#listusertaskrunrequest",children:"ListUserTaskRunRequest"})}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#usertaskrunlist",children:"UserTaskRunList"})}),(0,r.jsx)(s.td,{children:"Lists all UserTaskRun's for a specific WfRun. Can be useful when using a WfRun to model an entity."})]})})]}),"\n",(0,r.jsxs)(s.h3,{id:"getnoderun",children:["RPC ",(0,r.jsx)(s.code,{children:"GetNodeRun"})]}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Request Type"}),(0,r.jsx)(s.th,{children:"Response Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsx)(s.tbody,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#noderunid",children:"NodeRunId"})}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#noderun",children:"NodeRun"})}),(0,r.jsx)(s.td,{children:"Gets a specific NodeRun."})]})})]}),"\n",(0,r.jsxs)(s.h3,{id:"listnoderuns",children:["RPC ",(0,r.jsx)(s.code,{children:"ListNodeRuns"})]}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Request Type"}),(0,r.jsx)(s.th,{children:"Response Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsx)(s.tbody,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#listnoderunsrequest",children:"ListNodeRunsRequest"})}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#noderunlist",children:"NodeRunList"})}),(0,r.jsx)(s.td,{children:"Lists all NodeRun's for a specific WfRun."})]})})]}),"\n",(0,r.jsxs)(s.h3,{id:"gettaskrun",children:["RPC ",(0,r.jsx)(s.code,{children:"GetTaskRun"})]}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Request Type"}),(0,r.jsx)(s.th,{children:"Response Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsx)(s.tbody,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#taskrunid",children:"TaskRunId"})}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#taskrun",children:"TaskRun"})}),(0,r.jsx)(s.td,{children:"Gets a specific TaskRun."})]})})]}),"\n",(0,r.jsxs)(s.h3,{id:"listtaskruns",children:["RPC ",(0,r.jsx)(s.code,{children:"ListTaskRuns"})]}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Request Type"}),(0,r.jsx)(s.th,{children:"Response Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsx)(s.tbody,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#listtaskrunsrequest",children:"ListTaskRunsRequest"})}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#taskrunlist",children:"TaskRunList"})}),(0,r.jsx)(s.td,{children:"Lists all TaskRun's for a specific WfRun."})]})})]}),"\n",(0,r.jsxs)(s.h3,{id:"getvariable",children:["RPC ",(0,r.jsx)(s.code,{children:"GetVariable"})]}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Request Type"}),(0,r.jsx)(s.th,{children:"Response Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsx)(s.tbody,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#variableid",children:"VariableId"})}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#variable",children:"Variable"})}),(0,r.jsx)(s.td,{children:"Get the value of a specific Variable. When using a WfRun to model an entity, this RPC is useful for retrieving information. It is equivalent to looking up the value of a column for a specific row in a SQL table."})]})})]}),"\n",(0,r.jsxs)(s.h3,{id:"listvariables",children:["RPC ",(0,r.jsx)(s.code,{children:"ListVariables"})]}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Request Type"}),(0,r.jsx)(s.th,{children:"Response Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsx)(s.tbody,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#listvariablesrequest",children:"ListVariablesRequest"})}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#variablelist",children:"VariableList"})}),(0,r.jsx)(s.td,{children:"List all Variables from a WfRun."})]})})]}),"\n",(0,r.jsxs)(s.h3,{id:"putexternalevent",children:["RPC ",(0,r.jsx)(s.code,{children:"PutExternalEvent"})]}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Request Type"}),(0,r.jsx)(s.th,{children:"Response Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsx)(s.tbody,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#putexternaleventrequest",children:"PutExternalEventRequest"})}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#externalevent",children:"ExternalEvent"})}),(0,r.jsx)(s.td,{children:"Post an ExternalEvent. This RPC is highly useful for"})]})})]}),"\n",(0,r.jsxs)(s.h3,{id:"getexternalevent",children:["RPC ",(0,r.jsx)(s.code,{children:"GetExternalEvent"})]}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Request Type"}),(0,r.jsx)(s.th,{children:"Response Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsx)(s.tbody,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#externaleventid",children:"ExternalEventId"})}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#externalevent",children:"ExternalEvent"})}),(0,r.jsx)(s.td,{children:"Get a specific ExternalEvent."})]})})]}),"\n",(0,r.jsxs)(s.h3,{id:"awaitworkflowevent",children:["RPC ",(0,r.jsx)(s.code,{children:"AwaitWorkflowEvent"})]}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Request Type"}),(0,r.jsx)(s.th,{children:"Response Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsx)(s.tbody,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#awaitworkfloweventrequest",children:"AwaitWorkflowEventRequest"})}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#workflowevent",children:"WorkflowEvent"})}),(0,r.jsxs)(s.td,{children:["Waits for a WorkflowEvent to be thrown by a given WfRun. Returns immediately if a matching WorkflowEvent has already been thrown; throws a DEADLINE_EXCEEDED error if the WorkflowEvent is not thrown before the deadline specified by the client.",(0,r.jsx)("br",{}),(0,r.jsx)("br",{}),"To specify the deadline, the client should use GRPC deadlines."]})]})})]}),"\n",(0,r.jsxs)(s.h3,{id:"listexternalevents",children:["RPC ",(0,r.jsx)(s.code,{children:"ListExternalEvents"})]}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Request Type"}),(0,r.jsx)(s.th,{children:"Response Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsx)(s.tbody,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#listexternaleventsrequest",children:"ListExternalEventsRequest"})}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#externaleventlist",children:"ExternalEventList"})}),(0,r.jsx)(s.td,{children:"List ExternalEvent's for a specific WfRun."})]})})]}),"\n",(0,r.jsxs)(s.h3,{id:"searchwfrun",children:["RPC ",(0,r.jsx)(s.code,{children:"SearchWfRun"})]}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Request Type"}),(0,r.jsx)(s.th,{children:"Response Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsx)(s.tbody,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#searchwfrunrequest",children:"SearchWfRunRequest"})}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#wfrunidlist",children:"WfRunIdList"})}),(0,r.jsx)(s.td,{children:"Search for WfRun's. This RPC is highly useful for applications that store data in LittleHorse and need to find a specific WfRun based on certain indexed fields."})]})})]}),"\n",(0,r.jsxs)(s.h3,{id:"searchnoderun",children:["RPC ",(0,r.jsx)(s.code,{children:"SearchNodeRun"})]}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Request Type"}),(0,r.jsx)(s.th,{children:"Response Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsx)(s.tbody,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#searchnoderunrequest",children:"SearchNodeRunRequest"})}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#noderunidlist",children:"NodeRunIdList"})}),(0,r.jsx)(s.td,{children:"Search for NodeRun's. This RPC is useful for monitoring and finding bugs in your workflows or Task Workers."})]})})]}),"\n",(0,r.jsxs)(s.h3,{id:"searchtaskrun",children:["RPC ",(0,r.jsx)(s.code,{children:"SearchTaskRun"})]}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Request Type"}),(0,r.jsx)(s.th,{children:"Response Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsx)(s.tbody,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#searchtaskrunrequest",children:"SearchTaskRunRequest"})}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#taskrunidlist",children:"TaskRunIdList"})}),(0,r.jsx)(s.td,{children:"Search for TaskRun's. This RPC is useful for finding bugs in your Task Workers."})]})})]}),"\n",(0,r.jsxs)(s.h3,{id:"searchusertaskrun",children:["RPC ",(0,r.jsx)(s.code,{children:"SearchUserTaskRun"})]}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Request Type"}),(0,r.jsx)(s.th,{children:"Response Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsx)(s.tbody,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#searchusertaskrunrequest",children:"SearchUserTaskRunRequest"})}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#usertaskrunidlist",children:"UserTaskRunIdList"})}),(0,r.jsx)(s.td,{children:"Search for UserTaskRun's. This RPC is highly useful for applications that connect human end-users to LittleHorse: it enables you to find all tasks assigned to a specific person or group of people."})]})})]}),"\n",(0,r.jsxs)(s.h3,{id:"searchvariable",children:["RPC ",(0,r.jsx)(s.code,{children:"SearchVariable"})]}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Request Type"}),(0,r.jsx)(s.th,{children:"Response Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsx)(s.tbody,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#searchvariablerequest",children:"SearchVariableRequest"})}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#variableidlist",children:"VariableIdList"})}),(0,r.jsx)(s.td,{children:"Search for Variable's. This RPC is highly useful for applications that store data in LittleHorse and need to find a specific WfRun based on certain indexed fields."})]})})]}),"\n",(0,r.jsxs)(s.h3,{id:"searchexternalevent",children:["RPC ",(0,r.jsx)(s.code,{children:"SearchExternalEvent"})]}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Request Type"}),(0,r.jsx)(s.th,{children:"Response Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsx)(s.tbody,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#searchexternaleventrequest",children:"SearchExternalEventRequest"})}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#externaleventidlist",children:"ExternalEventIdList"})}),(0,r.jsx)(s.td,{children:"Search for ExternalEvent's."})]})})]}),"\n",(0,r.jsxs)(s.h3,{id:"searchtaskdef",children:["RPC ",(0,r.jsx)(s.code,{children:"SearchTaskDef"})]}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Request Type"}),(0,r.jsx)(s.th,{children:"Response Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsx)(s.tbody,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#searchtaskdefrequest",children:"SearchTaskDefRequest"})}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#taskdefidlist",children:"TaskDefIdList"})}),(0,r.jsx)(s.td,{children:"Search for TaskDef's."})]})})]}),"\n",(0,r.jsxs)(s.h3,{id:"searchusertaskdef",children:["RPC ",(0,r.jsx)(s.code,{children:"SearchUserTaskDef"})]}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Request Type"}),(0,r.jsx)(s.th,{children:"Response Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsx)(s.tbody,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#searchusertaskdefrequest",children:"SearchUserTaskDefRequest"})}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#usertaskdefidlist",children:"UserTaskDefIdList"})}),(0,r.jsx)(s.td,{children:"Search for UserTaskDef's."})]})})]}),"\n",(0,r.jsxs)(s.h3,{id:"searchwfspec",children:["RPC ",(0,r.jsx)(s.code,{children:"SearchWfSpec"})]}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Request Type"}),(0,r.jsx)(s.th,{children:"Response Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsx)(s.tbody,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#searchwfspecrequest",children:"SearchWfSpecRequest"})}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#wfspecidlist",children:"WfSpecIdList"})}),(0,r.jsx)(s.td,{children:"Search for WfSpec's."})]})})]}),"\n",(0,r.jsxs)(s.h3,{id:"searchexternaleventdef",children:["RPC ",(0,r.jsx)(s.code,{children:"SearchExternalEventDef"})]}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Request Type"}),(0,r.jsx)(s.th,{children:"Response Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsx)(s.tbody,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#searchexternaleventdefrequest",children:"SearchExternalEventDefRequest"})}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#externaleventdefidlist",children:"ExternalEventDefIdList"})}),(0,r.jsx)(s.td,{children:"Search for ExternalEventDef's."})]})})]}),"\n",(0,r.jsxs)(s.h3,{id:"searchtenant",children:["RPC ",(0,r.jsx)(s.code,{children:"SearchTenant"})]}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Request Type"}),(0,r.jsx)(s.th,{children:"Response Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsx)(s.tbody,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#searchtenantrequest",children:"SearchTenantRequest"})}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#tenantidlist",children:"TenantIdList"})}),(0,r.jsx)(s.td,{children:"Search for all available TenantIds for current Principal"})]})})]}),"\n",(0,r.jsxs)(s.h3,{id:"searchprincipal",children:["RPC ",(0,r.jsx)(s.code,{children:"SearchPrincipal"})]}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Request Type"}),(0,r.jsx)(s.th,{children:"Response Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsx)(s.tbody,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#searchprincipalrequest",children:"SearchPrincipalRequest"})}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#principalidlist",children:"PrincipalIdList"})}),(0,r.jsx)(s.td,{})]})})]}),"\n",(0,r.jsxs)(s.h3,{id:"registertaskworker",children:["RPC ",(0,r.jsx)(s.code,{children:"RegisterTaskWorker"})]}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Request Type"}),(0,r.jsx)(s.th,{children:"Response Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsx)(s.tbody,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#registertaskworkerrequest",children:"RegisterTaskWorkerRequest"})}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#registertaskworkerresponse",children:"RegisterTaskWorkerResponse"})}),(0,r.jsx)(s.td,{children:"Used by the Task Worker to: 1. Tell the LH Server that the Task Worker has joined the Task Worker Group. 2. Receive the assignemnt of LH Server's to poll from. Generally, you won't use this request manually."})]})})]}),"\n",(0,r.jsxs)(s.h3,{id:"polltask",children:["RPC ",(0,r.jsx)(s.code,{children:"PollTask"})]}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Request Type"}),(0,r.jsx)(s.th,{children:"Response Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsx)(s.tbody,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#polltaskrequest",children:"PollTaskRequest"})}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#polltaskresponse",children:"PollTaskResponse"})}),(0,r.jsx)(s.td,{children:"Used by Task Workers to listen for TaskRuns on the Task Queue. Generally, you won't use this RPC manually."})]})})]}),"\n",(0,r.jsxs)(s.h3,{id:"reporttask",children:["RPC ",(0,r.jsx)(s.code,{children:"ReportTask"})]}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Request Type"}),(0,r.jsx)(s.th,{children:"Response Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsx)(s.tbody,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#reporttaskrun",children:"ReportTaskRun"})}),(0,r.jsx)(s.td,{children:".google.protobuf.Empty"}),(0,r.jsx)(s.td,{children:"Used by Task Workers to report the result of a TaskRun. Generally, you won't use this rpc manually."})]})})]}),"\n",(0,r.jsxs)(s.h3,{id:"stopwfrun",children:["RPC ",(0,r.jsx)(s.code,{children:"StopWfRun"})]}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Request Type"}),(0,r.jsx)(s.th,{children:"Response Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsx)(s.tbody,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#stopwfrunrequest",children:"StopWfRunRequest"})}),(0,r.jsx)(s.td,{children:".google.protobuf.Empty"}),(0,r.jsx)(s.td,{children:"Move a WfRun or a specific ThreadRun in that WfRun to the HALTED state."})]})})]}),"\n",(0,r.jsxs)(s.h3,{id:"resumewfrun",children:["RPC ",(0,r.jsx)(s.code,{children:"ResumeWfRun"})]}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Request Type"}),(0,r.jsx)(s.th,{children:"Response Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsx)(s.tbody,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#resumewfrunrequest",children:"ResumeWfRunRequest"})}),(0,r.jsx)(s.td,{children:".google.protobuf.Empty"}),(0,r.jsx)(s.td,{children:"Resumes a WfRun or a specific ThreadRun of a WfRun."})]})})]}),"\n",(0,r.jsxs)(s.h3,{id:"rescuethreadrun",children:["RPC ",(0,r.jsx)(s.code,{children:"RescueThreadRun"})]}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Request Type"}),(0,r.jsx)(s.th,{children:"Response Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsx)(s.tbody,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#rescuethreadrunrequest",children:"RescueThreadRunRequest"})}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#wfrun",children:"WfRun"})}),(0,r.jsxs)(s.td,{children:["Rescues a failed ThreadRun (in the ERROR state only) by restarting it from the point of failure. Useful if a bug in Task Worker implementation caused a WfRun to fail and you did not have a FailureHandler for that NodeRun.",(0,r.jsx)("br",{}),(0,r.jsx)("br",{}),"The specified ",(0,r.jsx)(s.code,{children:"ThreadRun"})," must be in a state where it's latest ",(0,r.jsx)(s.code,{children:"NodeRun"})," is: ",(0,r.jsx)("br",{})," - In the ",(0,r.jsx)(s.code,{children:"ERROR"})," state.",(0,r.jsx)("br",{})," - Has no ",(0,r.jsx)(s.code,{children:"FailureHandler"})," ",(0,r.jsx)(s.code,{children:"ThreadRun"}),"s ",(0,r.jsx)("br",{})," - The parent ",(0,r.jsx)(s.code,{children:"ThreadRun"}),", or any parent of the parent, has not handled the ",(0,r.jsx)(s.code,{children:"Failure"})," yet.",(0,r.jsx)("br",{}),(0,r.jsx)("br",{}),"If that is not true, then the ",(0,r.jsx)(s.code,{children:"ThreadRun"})," cannot be rescued and the request will return ",(0,r.jsx)(s.code,{children:"FAILED_PRECONDITION"}),"."]})]})})]}),"\n",(0,r.jsxs)(s.h3,{id:"deletewfrun",children:["RPC ",(0,r.jsx)(s.code,{children:"DeleteWfRun"})]}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Request Type"}),(0,r.jsx)(s.th,{children:"Response Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsx)(s.tbody,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#deletewfrunrequest",children:"DeleteWfRunRequest"})}),(0,r.jsx)(s.td,{children:".google.protobuf.Empty"}),(0,r.jsx)(s.td,{children:"Deletes a WfRun. The WfRun cannot be in the RUNNING state."})]})})]}),"\n",(0,r.jsxs)(s.h3,{id:"deletetaskdef",children:["RPC ",(0,r.jsx)(s.code,{children:"DeleteTaskDef"})]}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Request Type"}),(0,r.jsx)(s.th,{children:"Response Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsx)(s.tbody,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#deletetaskdefrequest",children:"DeleteTaskDefRequest"})}),(0,r.jsx)(s.td,{children:".google.protobuf.Empty"}),(0,r.jsx)(s.td,{children:"Deletes a TaskDef."})]})})]}),"\n",(0,r.jsxs)(s.h3,{id:"deletewfspec",children:["RPC ",(0,r.jsx)(s.code,{children:"DeleteWfSpec"})]}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Request Type"}),(0,r.jsx)(s.th,{children:"Response Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsx)(s.tbody,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#deletewfspecrequest",children:"DeleteWfSpecRequest"})}),(0,r.jsx)(s.td,{children:".google.protobuf.Empty"}),(0,r.jsx)(s.td,{children:"Deletes a WfSpec."})]})})]}),"\n",(0,r.jsxs)(s.h3,{id:"deleteusertaskdef",children:["RPC ",(0,r.jsx)(s.code,{children:"DeleteUserTaskDef"})]}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Request Type"}),(0,r.jsx)(s.th,{children:"Response Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsx)(s.tbody,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#deleteusertaskdefrequest",children:"DeleteUserTaskDefRequest"})}),(0,r.jsx)(s.td,{children:".google.protobuf.Empty"}),(0,r.jsx)(s.td,{children:"Deletes a UserTaskDef."})]})})]}),"\n",(0,r.jsxs)(s.h3,{id:"deleteexternaleventdef",children:["RPC ",(0,r.jsx)(s.code,{children:"DeleteExternalEventDef"})]}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Request Type"}),(0,r.jsx)(s.th,{children:"Response Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsx)(s.tbody,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#deleteexternaleventdefrequest",children:"DeleteExternalEventDefRequest"})}),(0,r.jsx)(s.td,{children:".google.protobuf.Empty"}),(0,r.jsx)(s.td,{children:"Deletes an ExternalEventDef."})]})})]}),"\n",(0,r.jsxs)(s.h3,{id:"deleteprincipal",children:["RPC ",(0,r.jsx)(s.code,{children:"DeletePrincipal"})]}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Request Type"}),(0,r.jsx)(s.th,{children:"Response Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsx)(s.tbody,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#deleteprincipalrequest",children:"DeletePrincipalRequest"})}),(0,r.jsx)(s.td,{children:".google.protobuf.Empty"}),(0,r.jsxs)(s.td,{children:["Deletes a ",(0,r.jsx)(s.code,{children:"Principal"}),". Fails with ",(0,r.jsx)(s.code,{children:"FAILED_PRECONDITION"})," if the specified ",(0,r.jsx)(s.code,{children:"Principal"})," is the last remaining ",(0,r.jsx)(s.code,{children:"Principal"})," with admin permissions. Admin permissions are defined as having the ",(0,r.jsx)(s.code,{children:"global_acls"})," of ",(0,r.jsx)(s.code,{children:"ALL_ACTIONS"})," over the ",(0,r.jsx)(s.code,{children:"ACL_ALL_RESOURCES"})," scope."]})]})})]}),"\n",(0,r.jsxs)(s.h3,{id:"deletescheduledwfrun",children:["RPC ",(0,r.jsx)(s.code,{children:"DeleteScheduledWfRun"})]}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Request Type"}),(0,r.jsx)(s.th,{children:"Response Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsx)(s.tbody,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#deletescheduledwfrunrequest",children:"DeleteScheduledWfRunRequest"})}),(0,r.jsx)(s.td,{children:".google.protobuf.Empty"}),(0,r.jsx)(s.td,{children:"Deletes a scheduled run and prevents any further associated WfRun from being executed."})]})})]}),"\n",(0,r.jsxs)(s.h3,{id:"gettaskdefmetricswindow",children:["RPC ",(0,r.jsx)(s.code,{children:"GetTaskDefMetricsWindow"})]}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Request Type"}),(0,r.jsx)(s.th,{children:"Response Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsx)(s.tbody,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#taskdefmetricsqueryrequest",children:"TaskDefMetricsQueryRequest"})}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#taskdefmetrics",children:"TaskDefMetrics"})}),(0,r.jsx)(s.td,{children:"Returns TaskDef Metrics for a specific TaskDef and a specific time window."})]})})]}),"\n",(0,r.jsxs)(s.h3,{id:"getwfspecmetricswindow",children:["RPC ",(0,r.jsx)(s.code,{children:"GetWfSpecMetricsWindow"})]}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Request Type"}),(0,r.jsx)(s.th,{children:"Response Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsx)(s.tbody,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#wfspecmetricsqueryrequest",children:"WfSpecMetricsQueryRequest"})}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#wfspecmetrics",children:"WfSpecMetrics"})}),(0,r.jsx)(s.td,{children:"Returns WfSpec Metrics for a specific WfSpec and a specific time window."})]})})]}),"\n",(0,r.jsxs)(s.h3,{id:"listtaskdefmetrics",children:["RPC ",(0,r.jsx)(s.code,{children:"ListTaskDefMetrics"})]}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Request Type"}),(0,r.jsx)(s.th,{children:"Response Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsx)(s.tbody,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#listtaskmetricsrequest",children:"ListTaskMetricsRequest"})}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#listtaskmetricsresponse",children:"ListTaskMetricsResponse"})}),(0,r.jsx)(s.td,{children:"Returns a list of TaskDef Metrics Windows."})]})})]}),"\n",(0,r.jsxs)(s.h3,{id:"listwfspecmetrics",children:["RPC ",(0,r.jsx)(s.code,{children:"ListWfSpecMetrics"})]}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Request Type"}),(0,r.jsx)(s.th,{children:"Response Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsx)(s.tbody,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#listwfmetricsrequest",children:"ListWfMetricsRequest"})}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#listwfmetricsresponse",children:"ListWfMetricsResponse"})}),(0,r.jsx)(s.td,{children:"Returns a list of WfSpec Metrics Windows."})]})})]}),"\n",(0,r.jsxs)(s.h3,{id:"puttenant",children:["RPC ",(0,r.jsx)(s.code,{children:"PutTenant"})]}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Request Type"}),(0,r.jsx)(s.th,{children:"Response Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsx)(s.tbody,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#puttenantrequest",children:"PutTenantRequest"})}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#tenant",children:"Tenant"})}),(0,r.jsx)(s.td,{children:"EXPERIMENTAL: Creates another Tenant in the LH Server."})]})})]}),"\n",(0,r.jsxs)(s.h3,{id:"gettenant",children:["RPC ",(0,r.jsx)(s.code,{children:"GetTenant"})]}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Request Type"}),(0,r.jsx)(s.th,{children:"Response Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsx)(s.tbody,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#tenantid",children:"TenantId"})}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#tenant",children:"Tenant"})}),(0,r.jsx)(s.td,{children:"EXPERIMENTAL: Gets a Tenant from the LH Server."})]})})]}),"\n",(0,r.jsxs)(s.h3,{id:"putprincipal",children:["RPC ",(0,r.jsx)(s.code,{children:"PutPrincipal"})]}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Request Type"}),(0,r.jsx)(s.th,{children:"Response Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsx)(s.tbody,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#putprincipalrequest",children:"PutPrincipalRequest"})}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#principal",children:"Principal"})}),(0,r.jsx)(s.td,{children:"EXPERIMENTAL: Creates an Principal."})]})})]}),"\n",(0,r.jsxs)(s.h3,{id:"whoami",children:["RPC ",(0,r.jsx)(s.code,{children:"Whoami"})]}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Request Type"}),(0,r.jsx)(s.th,{children:"Response Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsx)(s.tbody,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:".google.protobuf.Empty"}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#principal",children:"Principal"})}),(0,r.jsx)(s.td,{children:"Returns the Principal of the caller."})]})})]}),"\n",(0,r.jsxs)(s.h3,{id:"getserverversion",children:["RPC ",(0,r.jsx)(s.code,{children:"GetServerVersion"})]}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Request Type"}),(0,r.jsx)(s.th,{children:"Response Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsx)(s.tbody,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:".google.protobuf.Empty"}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#serverversionresponse",children:"ServerVersionResponse"})}),(0,r.jsx)(s.td,{children:"Gets the version of the LH Server."})]})})]}),"\n",(0,r.jsx)(s.h2,{id:"littlehorse-protobuf-schemas",children:"LittleHorse Protobuf Schemas"}),"\n",(0,r.jsx)(s.p,{children:"This section contains the exact schemas for every object in our public API."}),"\n",(0,r.jsxs)(s.h3,{id:"deleteprincipalrequest",children:["Message ",(0,r.jsx)(s.code,{children:"DeletePrincipalRequest"})]}),"\n",(0,r.jsxs)(s.p,{children:["Deletes a ",(0,r.jsx)(s.code,{children:"Principal"}),". Fails with ",(0,r.jsx)(s.code,{children:"FAILED_PRECONDITION"})," if the specified ",(0,r.jsx)(s.code,{children:"Principal"})," is the last\nadmin ",(0,r.jsx)(s.code,{children:"Principal"}),"."]}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Field"}),(0,r.jsx)(s.th,{children:"Label"}),(0,r.jsx)(s.th,{children:"Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsx)(s.tbody,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"id"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#principalid",children:"PrincipalId"})}),(0,r.jsxs)(s.td,{children:["The ID of the ",(0,r.jsx)(s.code,{children:"Principal"})," to delete."]})]})})]}),"\n",(0,r.jsxs)(s.h3,{id:"principal",children:["Message ",(0,r.jsx)(s.code,{children:"Principal"})]}),"\n",(0,r.jsx)(s.p,{children:"A Principal represents the identity of a client of LittleHorse, whether human or\nmachine. The ACL's on the Principal control what actions the client is allowed\nto take."}),"\n",(0,r.jsx)(s.p,{children:"A Principal is not scoped to a Tenant; rather, a Principal is scoped to the Cluster\nand may have access to one or more Tenants."}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Field"}),(0,r.jsx)(s.th,{children:"Label"}),(0,r.jsx)(s.th,{children:"Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsxs)(s.tbody,{children:[(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"id"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#principalid",children:"PrincipalId"})}),(0,r.jsxs)(s.td,{children:["The ID of the Principal. In OAuth for human users, this is the user_id. In OAuth for machine clients, this is the Client ID.",(0,r.jsx)("br",{}),(0,r.jsx)("br",{}),"mTLS for Principal identification is not yet implemented."]})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"created_at"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:"google.protobuf.Timestamp"}),(0,r.jsx)(s.td,{children:"The time at which the Principal was created."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"per_tenant_acls"})}),(0,r.jsx)(s.td,{children:"map"}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#principalpertenantaclsentry",children:"Principal.PerTenantAclsEntry"})}),(0,r.jsxs)(s.td,{children:["Maps a Tenant ID to a list of ACL's that the Principal has permission to execute ",(0,r.jsx)(s.em,{children:"within that Tenant"}),"."]})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"global_acls"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#serveracls",children:"ServerACLs"})}),(0,r.jsxs)(s.td,{children:["Sets permissions that this Principal has ",(0,r.jsx)(s.em,{children:"for any Tenant"})," in the LH Cluster."]})]})]})]}),"\n",(0,r.jsxs)(s.h3,{id:"principalpertenantaclsentry",children:["Message ",(0,r.jsx)(s.code,{children:"Principal.PerTenantAclsEntry"})]}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Field"}),(0,r.jsx)(s.th,{children:"Label"}),(0,r.jsx)(s.th,{children:"Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsxs)(s.tbody,{children:[(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"key"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:"string"}),(0,r.jsx)(s.td,{})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"value"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#serveracls",children:"ServerACLs"})}),(0,r.jsx)(s.td,{})]})]})]}),"\n",(0,r.jsxs)(s.h3,{id:"putprincipalrequest",children:["Message ",(0,r.jsx)(s.code,{children:"PutPrincipalRequest"})]}),"\n",(0,r.jsxs)(s.p,{children:["Creates or updates a Principal. If this request would remove admin privileges from the\nlast admin principal (i.e. ",(0,r.jsx)(s.code,{children:"ALL_ACTIONS"})," over ",(0,r.jsx)(s.code,{children:"ACL_ALL_RESOURCES"})," in the ",(0,r.jsx)(s.code,{children:"global_acls"}),"),\nthen the RPC throws ",(0,r.jsx)(s.code,{children:"FAILED_PRECONDITION"}),"."]}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Field"}),(0,r.jsx)(s.th,{children:"Label"}),(0,r.jsx)(s.th,{children:"Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsxs)(s.tbody,{children:[(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"id"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:"string"}),(0,r.jsx)(s.td,{children:"The ID of the Principal that we are creating."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"per_tenant_acls"})}),(0,r.jsx)(s.td,{children:"map"}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#putprincipalrequestpertenantaclsentry",children:"PutPrincipalRequest.PerTenantAclsEntry"})}),(0,r.jsx)(s.td,{children:"The per-tenant ACL's for the Principal"})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"global_acls"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#serveracls",children:"ServerACLs"})}),(0,r.jsx)(s.td,{children:"The ACL's for the principal in all tenants"})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"overwrite"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:"bool"}),(0,r.jsxs)(s.td,{children:["If this is set to false and a ",(0,r.jsx)(s.code,{children:"Principal"})," with the same ",(0,r.jsx)(s.code,{children:"id"})," already exists ",(0,r.jsx)(s.em,{children:"and"})," has different ACL's configured, then the RPC throws ",(0,r.jsx)(s.code,{children:"ALREADY_EXISTS"}),".",(0,r.jsx)("br",{}),(0,r.jsx)("br",{}),"If this is set to ",(0,r.jsx)(s.code,{children:"true"}),", then the RPC will override hte"]})]})]})]}),"\n",(0,r.jsxs)(s.h3,{id:"putprincipalrequestpertenantaclsentry",children:["Message ",(0,r.jsx)(s.code,{children:"PutPrincipalRequest.PerTenantAclsEntry"})]}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Field"}),(0,r.jsx)(s.th,{children:"Label"}),(0,r.jsx)(s.th,{children:"Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsxs)(s.tbody,{children:[(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"key"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:"string"}),(0,r.jsx)(s.td,{})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"value"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#serveracls",children:"ServerACLs"})}),(0,r.jsx)(s.td,{})]})]})]}),"\n",(0,r.jsxs)(s.h3,{id:"puttenantrequest",children:["Message ",(0,r.jsx)(s.code,{children:"PutTenantRequest"})]}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Field"}),(0,r.jsx)(s.th,{children:"Label"}),(0,r.jsx)(s.th,{children:"Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsx)(s.tbody,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"id"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:"string"}),(0,r.jsx)(s.td,{})]})})]}),"\n",(0,r.jsxs)(s.h3,{id:"serveracl",children:["Message ",(0,r.jsx)(s.code,{children:"ServerACL"})]}),"\n",(0,r.jsxs)(s.p,{children:["Represents a specific set of permissions over a specific set of objects\nin a Tenant. This is a ",(0,r.jsx)(s.em,{children:"positive"})," permission."]}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Field"}),(0,r.jsx)(s.th,{children:"Label"}),(0,r.jsx)(s.th,{children:"Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsxs)(s.tbody,{children:[(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"resources"})}),(0,r.jsx)(s.td,{children:"repeated"}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#aclresource",children:"ACLResource"})}),(0,r.jsx)(s.td,{children:"The resource types over which permission is granted."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"allowed_actions"})}),(0,r.jsx)(s.td,{children:"repeated"}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#aclaction",children:"ACLAction"})}),(0,r.jsx)(s.td,{children:"The actions that are permitted."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"name"})}),(0,r.jsxs)(s.td,{children:["oneof ",(0,r.jsx)(s.code,{children:"resource_filter"})]}),(0,r.jsx)(s.td,{children:"string"}),(0,r.jsxs)(s.td,{children:["If set, then only the resources with this exact name are allowed. For example, the ",(0,r.jsx)(s.code,{children:"READ"})," and ",(0,r.jsx)(s.code,{children:"RUN"})," ",(0,r.jsx)(s.code,{children:"allowed_actions"})," over ",(0,r.jsx)(s.code,{children:"ACL_TASK"})," with ",(0,r.jsx)(s.code,{children:"name"})," == ",(0,r.jsx)(s.code,{children:"my-task"})," allows a Task Worker to only execute the ",(0,r.jsx)(s.code,{children:"my-task"})," TaskDef.",(0,r.jsx)("br",{}),(0,r.jsx)("br",{}),"If ",(0,r.jsx)(s.code,{children:"name"})," and ",(0,r.jsx)(s.code,{children:"prefix"})," are unset, then the ACL applies to all resources of the specified types."]})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"prefix"})}),(0,r.jsxs)(s.td,{children:["oneof ",(0,r.jsx)(s.code,{children:"resource_filter"})]}),(0,r.jsx)(s.td,{children:"string"}),(0,r.jsxs)(s.td,{children:["If set, then only the resources whose names match this prefix are allowed.",(0,r.jsx)("br",{}),(0,r.jsx)("br",{}),"If ",(0,r.jsx)(s.code,{children:"name"})," and ",(0,r.jsx)(s.code,{children:"prefix"})," are unset, then the ACL applies to all resources of the specified types."]})]})]})]}),"\n",(0,r.jsxs)(s.h3,{id:"serveracls",children:["Message ",(0,r.jsx)(s.code,{children:"ServerACLs"})]}),"\n",(0,r.jsx)(s.p,{children:"List of ACL's for LittleHorse"}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Field"}),(0,r.jsx)(s.th,{children:"Label"}),(0,r.jsx)(s.th,{children:"Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsx)(s.tbody,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"acls"})}),(0,r.jsx)(s.td,{children:"repeated"}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#serveracl",children:"ServerACL"})}),(0,r.jsx)(s.td,{children:"The associated ACL's"})]})})]}),"\n",(0,r.jsxs)(s.h3,{id:"tenant",children:["Message ",(0,r.jsx)(s.code,{children:"Tenant"})]}),"\n",(0,r.jsx)(s.p,{children:"A Tenant is a logically isolated environment within LittleHorse. All workflows and\nassociated data (WfSpec, WfRun, TaskDef, TaskRun, NodeRun, etc) are scoped to within\na Tenant."}),"\n",(0,r.jsx)(s.p,{children:"Future versions will include quotas on a per-Tenant basis."}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Field"}),(0,r.jsx)(s.th,{children:"Label"}),(0,r.jsx)(s.th,{children:"Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsxs)(s.tbody,{children:[(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"id"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#tenantid",children:"TenantId"})}),(0,r.jsx)(s.td,{children:"The ID of the Tenant."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"created_at"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:"google.protobuf.Timestamp"}),(0,r.jsx)(s.td,{children:"The time at which the Tenant was created."})]})]})]}),"\n",(0,r.jsxs)(s.h3,{id:"exponentialbackoffretrypolicy",children:["Message ",(0,r.jsx)(s.code,{children:"ExponentialBackoffRetryPolicy"})]}),"\n",(0,r.jsxs)(s.p,{children:["Defines an Exponential backoff policy for TaskRun retries. The delay for a retry\nattempt ",(0,r.jsx)(s.code,{children:"N"})," is defined as:"]}),"\n",(0,r.jsx)(s.p,{children:"min(base_interval_ms * (multiplier ^(N-1)), max_delay_ms)"}),"\n",(0,r.jsx)(s.p,{children:"Note that timers in LittleHorse have a resolution of about 500-1000 milliseconds,\nso timing is not exact."}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Field"}),(0,r.jsx)(s.th,{children:"Label"}),(0,r.jsx)(s.th,{children:"Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsxs)(s.tbody,{children:[(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"base_interval_ms"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:"int32"}),(0,r.jsx)(s.td,{children:"Base delay in ms for the first retry. Note that in LittleHorse, timers have a resolution of 500-1000 milliseconds. Must be greater than zero."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"max_delay_ms"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:"int64"}),(0,r.jsx)(s.td,{children:"Maximum delay in milliseconds between retries."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"multiplier"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:"float"}),(0,r.jsx)(s.td,{children:"The multiplier to use in calculating the retry backoff policy. We recommend starting with 2.0. Must be at least 1.0."})]})]})]}),"\n",(0,r.jsxs)(s.h3,{id:"tasknode",children:["Message ",(0,r.jsx)(s.code,{children:"TaskNode"})]}),"\n",(0,r.jsx)(s.p,{children:"Defines a TaskRun execution. Used in a Node and also in the UserTask Trigger Actions."}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Field"}),(0,r.jsx)(s.th,{children:"Label"}),(0,r.jsx)(s.th,{children:"Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsxs)(s.tbody,{children:[(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"task_def_id"})}),(0,r.jsxs)(s.td,{children:["oneof ",(0,r.jsx)(s.code,{children:"task_to_execute"})]}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#taskdefid",children:"TaskDefId"})}),(0,r.jsx)(s.td,{})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"dynamic_task"})}),(0,r.jsxs)(s.td,{children:["oneof ",(0,r.jsx)(s.code,{children:"task_to_execute"})]}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#variableassignment",children:"VariableAssignment"})}),(0,r.jsx)(s.td,{})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"timeout_seconds"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:"int32"}),(0,r.jsx)(s.td,{children:"How long until LittleHorse determines that the Task Worker had a technical ERROR if the worker does not yet reply to the Server. This is determined on a per-Attempt basis."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"retries"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:"int32"}),(0,r.jsxs)(s.td,{children:["Configures the amount of retries allowed on this TaskNode.",(0,r.jsx)("br",{}),(0,r.jsx)("br",{}),"Retryable errors include: - TASK_TIMEOUT: the TaskRun was started but the scheduler didn't hear back from the Task Worker in time. - TASK_FAILED: the Task Worker reported an unexpected ",(0,r.jsx)(s.em,{children:"technical"})," ERROR when executing the Task Function.",(0,r.jsx)("br",{}),(0,r.jsx)("br",{}),"Other result codes are not retryable (including TASK_OUTPUT_SERIALIZING_ERROR, TASK_INPUT_VAR_SUB_ERROR, and TASK_EXCEPTION)."]})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"exponential_backoff"})}),(0,r.jsx)(s.td,{children:"optional"}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#exponentialbackoffretrypolicy",children:"ExponentialBackoffRetryPolicy"})}),(0,r.jsx)(s.td,{children:"If this field is set, then retries will use Exponential Backoff."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"variables"})}),(0,r.jsx)(s.td,{children:"repeated"}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#variableassignment",children:"VariableAssignment"})}),(0,r.jsx)(s.td,{children:"Input variables into the TaskDef."})]})]})]}),"\n",(0,r.jsxs)(s.h3,{id:"utactiontrigger",children:["Message ",(0,r.jsx)(s.code,{children:"UTActionTrigger"})]}),"\n",(0,r.jsx)(s.p,{children:"A UTActionTrigger triggers an action upon certain lifecycle hooks\nin a User Task. Actions include:"}),"\n",(0,r.jsxs)(s.ul,{children:["\n",(0,r.jsx)(s.li,{children:"re-assign the User Task Run"}),"\n",(0,r.jsx)(s.li,{children:"cancel the User Task Run"}),"\n",(0,r.jsx)(s.li,{children:"execute a Reminder Task"}),"\n"]}),"\n",(0,r.jsx)(s.p,{children:"Hooks include:"}),"\n",(0,r.jsxs)(s.ul,{children:["\n",(0,r.jsx)(s.li,{children:"Upon creation of the UserTaskRun"}),"\n",(0,r.jsx)(s.li,{children:"Upon rescheduling the UserTaskRun"}),"\n"]}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Field"}),(0,r.jsx)(s.th,{children:"Label"}),(0,r.jsx)(s.th,{children:"Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsxs)(s.tbody,{children:[(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"task"})}),(0,r.jsxs)(s.td,{children:["oneof ",(0,r.jsx)(s.code,{children:"action"})]}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#utactiontriggerutatask",children:"UTActionTrigger.UTATask"})}),(0,r.jsx)(s.td,{})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"cancel"})}),(0,r.jsxs)(s.td,{children:["oneof ",(0,r.jsx)(s.code,{children:"action"})]}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#utactiontriggerutacancel",children:"UTActionTrigger.UTACancel"})}),(0,r.jsx)(s.td,{})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"reassign"})}),(0,r.jsxs)(s.td,{children:["oneof ",(0,r.jsx)(s.code,{children:"action"})]}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#utactiontriggerutareassign",children:"UTActionTrigger.UTAReassign"})}),(0,r.jsx)(s.td,{children:"later on, might enable scheduling entire ThreadRuns"})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"delay_seconds"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#variableassignment",children:"VariableAssignment"})}),(0,r.jsx)(s.td,{children:"The Action is triggered some time after the Hook matures. The delay is controlled by this field."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"hook"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#utactiontriggeruthook",children:"UTActionTrigger.UTHook"})}),(0,r.jsx)(s.td,{children:"The hook on which this UserTaskAction is scheduled."})]})]})]}),"\n",(0,r.jsxs)(s.h3,{id:"utactiontriggerutacancel",children:["Message ",(0,r.jsx)(s.code,{children:"UTActionTrigger.UTACancel"})]}),"\n",(0,r.jsx)(s.p,{children:"A UserTaskAction that causes a UserTaskRun to be CANCELLED when it fires."}),"\n",(0,r.jsxs)(s.h3,{id:"utactiontriggerutareassign",children:["Message ",(0,r.jsx)(s.code,{children:"UTActionTrigger.UTAReassign"})]}),"\n",(0,r.jsx)(s.p,{children:"A UserTaskAction that causes a UserTaskRun to be reassigned when it fires."}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Field"}),(0,r.jsx)(s.th,{children:"Label"}),(0,r.jsx)(s.th,{children:"Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsxs)(s.tbody,{children:[(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"user_id"})}),(0,r.jsx)(s.td,{children:"optional"}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#variableassignment",children:"VariableAssignment"})}),(0,r.jsx)(s.td,{children:"A variable assignment that resolves to a STR representing the new user_id. If not set, the user_id of the UserTaskRun will be un-set."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"user_group"})}),(0,r.jsx)(s.td,{children:"optional"}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#variableassignment",children:"VariableAssignment"})}),(0,r.jsx)(s.td,{children:"A variable assignment that resolves to a STR representing the new user_group. If not set, the user_group of the UserTaskRun will be un-set."})]})]})]}),"\n",(0,r.jsxs)(s.h3,{id:"utactiontriggerutatask",children:["Message ",(0,r.jsx)(s.code,{children:"UTActionTrigger.UTATask"})]}),"\n",(0,r.jsx)(s.p,{children:"A UserTaskAction that causes a TaskRun to be scheduled when it fires."}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Field"}),(0,r.jsx)(s.th,{children:"Label"}),(0,r.jsx)(s.th,{children:"Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsxs)(s.tbody,{children:[(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"task"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#tasknode",children:"TaskNode"})}),(0,r.jsx)(s.td,{children:"The specification of the Task to schedule."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"mutations"})}),(0,r.jsx)(s.td,{children:"repeated"}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#variablemutation",children:"VariableMutation"})}),(0,r.jsx)(s.td,{children:"EXPERIMENTAL: Any variables in the ThreadRun which we should mutate."})]})]})]}),"\n",(0,r.jsxs)(s.h3,{id:"variableassignment",children:["Message ",(0,r.jsx)(s.code,{children:"VariableAssignment"})]}),"\n",(0,r.jsx)(s.p,{children:"A VariableAssignment is used within a WfSpec to determine how a value should be\nassigned in the context of a specific WfRun. For example, in a TASK node, you\nuse a VariableAssignment for each input parameter to determine how the value\nis set."}),"\n",(0,r.jsx)(s.p,{children:"Note that the VariableAssignment is normally handled by the SDK; you shouldn't\nhave to worry about this in daily LittleHorse usage."}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Field"}),(0,r.jsx)(s.th,{children:"Label"}),(0,r.jsx)(s.th,{children:"Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsxs)(s.tbody,{children:[(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"json_path"})}),(0,r.jsx)(s.td,{children:"optional"}),(0,r.jsx)(s.td,{children:"string"}),(0,r.jsxs)(s.td,{children:["If you provide a ",(0,r.jsx)(s.code,{children:"variable_name"})," and the specified variable is JSON_OBJ or JSON_ARR type, then you may also provide a json_path which makes the VariableAssignment resolve to the specified field."]})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"variable_name"})}),(0,r.jsxs)(s.td,{children:["oneof ",(0,r.jsx)(s.code,{children:"source"})]}),(0,r.jsx)(s.td,{children:"string"}),(0,r.jsx)(s.td,{children:"Assign the value from a variable."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"literal_value"})}),(0,r.jsxs)(s.td,{children:["oneof ",(0,r.jsx)(s.code,{children:"source"})]}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#variablevalue",children:"VariableValue"})}),(0,r.jsx)(s.td,{children:"Assign a literal value"})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"format_string"})}),(0,r.jsxs)(s.td,{children:["oneof ",(0,r.jsx)(s.code,{children:"source"})]}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#variableassignmentformatstring",children:"VariableAssignment.FormatString"})}),(0,r.jsx)(s.td,{children:"Assign a format string"})]})]})]}),"\n",(0,r.jsxs)(s.h3,{id:"variableassignmentformatstring",children:["Message ",(0,r.jsx)(s.code,{children:"VariableAssignment.FormatString"})]}),"\n",(0,r.jsx)(s.p,{children:"A FormatString formats a template String with values from the WfRun."}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Field"}),(0,r.jsx)(s.th,{children:"Label"}),(0,r.jsx)(s.th,{children:"Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsxs)(s.tbody,{children:[(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"format"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#variableassignment",children:"VariableAssignment"})}),(0,r.jsxs)(s.td,{children:['A VariableAssignment which must resolve to a String that has format args. A valid string is "This is a format string with three args: ',0,", ",1,", ",2,'"']})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"args"})}),(0,r.jsx)(s.td,{children:"repeated"}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#variableassignment",children:"VariableAssignment"})}),(0,r.jsx)(s.td,{children:"VariableAssignments which fill out the args."})]})]})]}),"\n",(0,r.jsxs)(s.h3,{id:"variabledef",children:["Message ",(0,r.jsx)(s.code,{children:"VariableDef"})]}),"\n",(0,r.jsx)(s.p,{children:"Declares a Variable."}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Field"}),(0,r.jsx)(s.th,{children:"Label"}),(0,r.jsx)(s.th,{children:"Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsxs)(s.tbody,{children:[(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"type"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#variabletype",children:"VariableType"})}),(0,r.jsx)(s.td,{children:"The Type of the variable."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"name"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:"string"}),(0,r.jsx)(s.td,{children:"The name of the variable."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"default_value"})}),(0,r.jsx)(s.td,{children:"optional"}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#variablevalue",children:"VariableValue"})}),(0,r.jsx)(s.td,{children:"Optional default value if the variable isn't set; for example, in a ThreadRun if you start a ThreadRun or WfRun without passing a variable in, then this is used."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"masked_value"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:"bool"}),(0,r.jsx)(s.td,{children:"If true, the variable value will show as a masked string."})]})]})]}),"\n",(0,r.jsxs)(s.h3,{id:"variablemutation",children:["Message ",(0,r.jsx)(s.code,{children:"VariableMutation"})]}),"\n",(0,r.jsx)(s.p,{children:"A VariableMutation defines a modification made to one of a ThreadRun's variables.\nThe LHS determines the variable that is modified; the operation determines how\nit is modified, and the RHS is the input to the operation."}),"\n",(0,r.jsx)(s.p,{children:"Day-to-day users of LittleHorse generally don't interact with this structure unless\nthey are writing their own WfSpec SDK."}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Field"}),(0,r.jsx)(s.th,{children:"Label"}),(0,r.jsx)(s.th,{children:"Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsxs)(s.tbody,{children:[(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"lhs_name"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:"string"}),(0,r.jsx)(s.td,{children:"The name of the variable to mutate"})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"lhs_json_path"})}),(0,r.jsx)(s.td,{children:"optional"}),(0,r.jsx)(s.td,{children:"string"}),(0,r.jsx)(s.td,{children:"For JSON_ARR and JSON_OBJ variables, this allows you to optionally mutate a specific sub-field of the variable."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"operation"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#variablemutationtype",children:"VariableMutationType"})}),(0,r.jsx)(s.td,{children:"Defines the operation that we are executing."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"source_variable"})}),(0,r.jsxs)(s.td,{children:["oneof ",(0,r.jsx)(s.code,{children:"rhs_value"})]}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#variableassignment",children:"VariableAssignment"})}),(0,r.jsx)(s.td,{children:"Set the source_variable as the RHS to use another variable from the workflow to as the RHS/"})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"literal_value"})}),(0,r.jsxs)(s.td,{children:["oneof ",(0,r.jsx)(s.code,{children:"rhs_value"})]}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#variablevalue",children:"VariableValue"})}),(0,r.jsx)(s.td,{children:"Use a literal value as the RHS."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"node_output"})}),(0,r.jsxs)(s.td,{children:["oneof ",(0,r.jsx)(s.code,{children:"rhs_value"})]}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#variablemutationnodeoutputsource",children:"VariableMutation.NodeOutputSource"})}),(0,r.jsx)(s.td,{children:"Use the output of the current node as the RHS."})]})]})]}),"\n",(0,r.jsxs)(s.h3,{id:"variablemutationnodeoutputsource",children:["Message ",(0,r.jsx)(s.code,{children:"VariableMutation.NodeOutputSource"})]}),"\n",(0,r.jsx)(s.p,{children:"Specifies to use the output of a NodeRun as the RHS."}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Field"}),(0,r.jsx)(s.th,{children:"Label"}),(0,r.jsx)(s.th,{children:"Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsx)(s.tbody,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"jsonpath"})}),(0,r.jsx)(s.td,{children:"optional"}),(0,r.jsx)(s.td,{children:"string"}),(0,r.jsx)(s.td,{children:"Use this specific field from a JSON output"})]})})]}),"\n",(0,r.jsxs)(s.h3,{id:"externalevent",children:["Message ",(0,r.jsx)(s.code,{children:"ExternalEvent"})]}),"\n",(0,r.jsx)(s.p,{children:"An ExternalEvent represents A Thing That Happened outside the context of a WfRun.\nGenerally, an ExternalEvent is used to represent a document getting signed, an incident\nbeing resolved, an order being fulfilled, etc."}),"\n",(0,r.jsx)(s.p,{children:"ExternalEvent's are created via the 'rpc PutExternalEvent'"}),"\n",(0,r.jsxs)(s.p,{children:["For more context on ExternalEvents, check our documentation here:\n",(0,r.jsx)(s.a,{href:"https://littlehorse.dev/docs/concepts/external-events",children:"https://littlehorse.dev/docs/concepts/external-events"})]}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Field"}),(0,r.jsx)(s.th,{children:"Label"}),(0,r.jsx)(s.th,{children:"Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsxs)(s.tbody,{children:[(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"id"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#externaleventid",children:"ExternalEventId"})}),(0,r.jsxs)(s.td,{children:["The ID of the ExternalEvent. This contains WfRunId, ExternalEventDefId, and a unique guid which can be used for idempotency of the ",(0,r.jsx)(s.code,{children:"PutExternalEvent"})," rpc call."]})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"created_at"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:"google.protobuf.Timestamp"}),(0,r.jsx)(s.td,{children:"The time the ExternalEvent was registered with LittleHorse."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"content"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#variablevalue",children:"VariableValue"})}),(0,r.jsx)(s.td,{children:"The payload of this ExternalEvent."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"thread_run_number"})}),(0,r.jsx)(s.td,{children:"optional"}),(0,r.jsx)(s.td,{children:"int32"}),(0,r.jsx)(s.td,{children:"If the ExternalEvent was claimed by a specific ThreadRun (via Interrupt or EXTERNAL_EVENT Node), this is set to the number of the relevant ThreadRun."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"node_run_position"})}),(0,r.jsx)(s.td,{children:"optional"}),(0,r.jsx)(s.td,{children:"int32"}),(0,r.jsx)(s.td,{children:"If the ExternalEvent was claimed by a specific ThreadRun (via EXTERNAL_EVENT Node; note that in the case of an Interrupt the node_run_position will never be set), this is set to the number of the relevant NodeRun."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"claimed"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:"bool"}),(0,r.jsx)(s.td,{children:"Whether the ExternalEvent has been claimed by a WfRun."})]})]})]}),"\n",(0,r.jsxs)(s.h3,{id:"externaleventdef",children:["Message ",(0,r.jsx)(s.code,{children:"ExternalEventDef"})]}),"\n",(0,r.jsx)(s.p,{children:"The ExternalEventDef defines the blueprint for an ExternalEvent."}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Field"}),(0,r.jsx)(s.th,{children:"Label"}),(0,r.jsx)(s.th,{children:"Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsxs)(s.tbody,{children:[(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"id"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#externaleventdefid",children:"ExternalEventDefId"})}),(0,r.jsx)(s.td,{children:"The id of the ExternalEventDef."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"created_at"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:"google.protobuf.Timestamp"}),(0,r.jsx)(s.td,{children:"When the ExternalEventDef was created."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"retention_policy"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#externaleventretentionpolicy",children:"ExternalEventRetentionPolicy"})}),(0,r.jsxs)(s.td,{children:["The retention policy for ExternalEvent's of this ExternalEventDef. This applies to the ExternalEvent ",(0,r.jsx)(s.strong,{children:"only before"})," it is matched with a WfRun."]})]})]})]}),"\n",(0,r.jsxs)(s.h3,{id:"externaleventretentionpolicy",children:["Message ",(0,r.jsx)(s.code,{children:"ExternalEventRetentionPolicy"})]}),"\n",(0,r.jsx)(s.p,{children:"Policy to determine how long an ExternalEvent is retained after creation if it\nis not yet claimed by a WfRun. Note that once a WfRun has been matched with the\nExternalEvent, the ExternalEvent is deleted if/when that WfRun is deleted.\nIf not set, then ExternalEvent's are not deleted if they are not matched with\na WfRun."}),"\n",(0,r.jsxs)(s.p,{children:["A future version of LittleHorse will allow changing the retention_policy, which\nwill trigger a cleanup of old ",(0,r.jsx)(s.code,{children:"ExternalEvent"}),"s."]}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Field"}),(0,r.jsx)(s.th,{children:"Label"}),(0,r.jsx)(s.th,{children:"Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsx)(s.tbody,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"seconds_after_put"})}),(0,r.jsxs)(s.td,{children:["oneof ",(0,r.jsx)(s.code,{children:"ext_evt_gc_policy"})]}),(0,r.jsx)(s.td,{children:"int64"}),(0,r.jsx)(s.td,{children:"Delete such an ExternalEvent X seconds after it has been registered if it has not yet been claimed by a WfRun."})]})})]}),"\n",(0,r.jsxs)(s.h3,{id:"entrypointrun",children:["Message ",(0,r.jsx)(s.code,{children:"EntrypointRun"})]}),"\n",(0,r.jsx)(s.p,{children:"The sub-node structure for an ENTRYPOINT NodeRun. Currently Empty."}),"\n",(0,r.jsxs)(s.h3,{id:"exitrun",children:["Message ",(0,r.jsx)(s.code,{children:"ExitRun"})]}),"\n",(0,r.jsx)(s.p,{children:"The sub-node structure for an EXIT NodeRun. Currently Empty, will contain info\nabout ThreadRun Outputs once those are added in the future."}),"\n",(0,r.jsxs)(s.h3,{id:"externaleventnoderun",children:["Message ",(0,r.jsx)(s.code,{children:"ExternalEventNodeRun"})]}),"\n",(0,r.jsx)(s.p,{children:"The sub-node structure for an EXTERNAL_EVENT NodeRun."}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Field"}),(0,r.jsx)(s.th,{children:"Label"}),(0,r.jsx)(s.th,{children:"Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsxs)(s.tbody,{children:[(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"external_event_def_id"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#externaleventdefid",children:"ExternalEventDefId"})}),(0,r.jsx)(s.td,{children:"The ExternalEventDefId that we are waiting for."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"event_time"})}),(0,r.jsx)(s.td,{children:"optional"}),(0,r.jsx)(s.td,{children:"google.protobuf.Timestamp"}),(0,r.jsx)(s.td,{children:"The time that the ExternalEvent arrived. Unset if still waiting."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"external_event_id"})}),(0,r.jsx)(s.td,{children:"optional"}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#externaleventid",children:"ExternalEventId"})}),(0,r.jsx)(s.td,{children:"The ExternalEventId of the ExternalEvent. Unset if still waiting."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"timed_out"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:"bool"}),(0,r.jsx)(s.td,{children:"Whether we had a timeout while waiting for the ExternalEvent to come."})]})]})]}),"\n",(0,r.jsxs)(s.h3,{id:"failure",children:["Message ",(0,r.jsx)(s.code,{children:"Failure"})]}),"\n",(0,r.jsx)(s.p,{children:"Denotes a failure that happened during execution of a NodeRun or the outgoing\nedges."}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Field"}),(0,r.jsx)(s.th,{children:"Label"}),(0,r.jsx)(s.th,{children:"Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsxs)(s.tbody,{children:[(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"failure_name"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:"string"}),(0,r.jsxs)(s.td,{children:["The name of the failure. LittleHorse has certain built-in failures, all named in UPPER_UNDERSCORE_CASE. Such failures correspond with the ",(0,r.jsx)(s.code,{children:"LHStatus.ERROR"}),".",(0,r.jsx)("br",{}),(0,r.jsx)("br",{}),"Any Failure named in ",(0,r.jsx)(s.code,{children:"kebab-case"})," is a user-defined business ",(0,r.jsx)(s.code,{children:"EXCEPTION"}),", treated as an ",(0,r.jsx)(s.code,{children:"LHStatus.EXCEPTION"}),"."]})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"message"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:"string"}),(0,r.jsx)(s.td,{children:"The human-readable message associated with this Failure."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"content"})}),(0,r.jsx)(s.td,{children:"optional"}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#variablevalue",children:"VariableValue"})}),(0,r.jsxs)(s.td,{children:["A user-defined Failure can have a value; for example, in Java an Exception is an Object with arbitrary properties and behaviors.",(0,r.jsx)("br",{}),(0,r.jsx)("br",{}),"Future versions of LH will allow FailureHandler threads to accept that value as an input variable."]})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"was_properly_handled"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:"bool"}),(0,r.jsx)(s.td,{children:"A boolean denoting whether a Failure Handler ThreadRun properly handled the Failure."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"failure_handler_threadrun_id"})}),(0,r.jsx)(s.td,{children:"optional"}),(0,r.jsx)(s.td,{children:"int32"}),(0,r.jsx)(s.td,{children:"If there is a defined failure handler for the NodeRun, then this field is set to the id of the failure handler thread run."})]})]})]}),"\n",(0,r.jsxs)(s.h3,{id:"noderun",children:["Message ",(0,r.jsx)(s.code,{children:"NodeRun"})]}),"\n",(0,r.jsx)(s.p,{children:"A NodeRun is a running instance of a Node in a ThreadRun. Note that a NodeRun\nis a Getable object, meaning it can be retried from the LittleHorse grpc API."}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Field"}),(0,r.jsx)(s.th,{children:"Label"}),(0,r.jsx)(s.th,{children:"Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsxs)(s.tbody,{children:[(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"id"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#noderunid",children:"NodeRunId"})}),(0,r.jsx)(s.td,{children:"The ID of the NodeRun. Note that the NodeRunId contains the WfRunId, the ThreadRun's number, and the position of the NodeRun within that ThreadRun."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"wf_spec_id"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#wfspecid",children:"WfSpecId"})}),(0,r.jsxs)(s.td,{children:["The ID of the WfSpec that this NodeRun is from. This is not ",(0,r.jsx)(s.em,{children:"always"})," the same as the ThreadRun it belongs to because of the upcoming WfSpec Version Migration feature."]})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"failure_handler_ids"})}),(0,r.jsx)(s.td,{children:"repeated"}),(0,r.jsx)(s.td,{children:"int32"}),(0,r.jsx)(s.td,{children:"A list of all ThreadRun's that ran to handle a failure thrown by this NodeRun."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"status"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#lhstatus",children:"LHStatus"})}),(0,r.jsx)(s.td,{children:"The status of this NodeRun."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"arrival_time"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:"google.protobuf.Timestamp"}),(0,r.jsx)(s.td,{children:"The time the ThreadRun arrived at this NodeRun."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"end_time"})}),(0,r.jsx)(s.td,{children:"optional"}),(0,r.jsx)(s.td,{children:"google.protobuf.Timestamp"}),(0,r.jsx)(s.td,{children:"The time the NodeRun was terminated (failed or completed)."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"thread_spec_name"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:"string"}),(0,r.jsx)(s.td,{children:"The name of the ThreadSpec to which this NodeRun belongs."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"node_name"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:"string"}),(0,r.jsx)(s.td,{children:"The name of the Node in the ThreadSpec that this NodeRun belongs to."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"error_message"})}),(0,r.jsx)(s.td,{children:"optional"}),(0,r.jsx)(s.td,{children:"string"}),(0,r.jsx)(s.td,{children:"A human-readable error message intended to help developers diagnose WfSpec problems."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"failures"})}),(0,r.jsx)(s.td,{children:"repeated"}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#failure",children:"Failure"})}),(0,r.jsx)(s.td,{children:"A list of Failures thrown by this NodeRun."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"task"})}),(0,r.jsxs)(s.td,{children:["oneof ",(0,r.jsx)(s.code,{children:"node_type"})]}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#tasknoderun",children:"TaskNodeRun"})}),(0,r.jsx)(s.td,{children:"Denotes a TASK node, which runs a TaskRun."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"external_event"})}),(0,r.jsxs)(s.td,{children:["oneof ",(0,r.jsx)(s.code,{children:"node_type"})]}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#externaleventnoderun",children:"ExternalEventNodeRun"})}),(0,r.jsx)(s.td,{children:"An EXTERNAL_EVENT node blocks until an ExternalEvent arrives."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"entrypoint"})}),(0,r.jsxs)(s.td,{children:["oneof ",(0,r.jsx)(s.code,{children:"node_type"})]}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#entrypointrun",children:"EntrypointRun"})}),(0,r.jsx)(s.td,{children:"An ENTRYPOINT node is the first thing that runs in a ThreadRun."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"exit"})}),(0,r.jsxs)(s.td,{children:["oneof ",(0,r.jsx)(s.code,{children:"node_type"})]}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#exitrun",children:"ExitRun"})}),(0,r.jsx)(s.td,{children:"An EXIT node completes a ThreadRun."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"start_thread"})}),(0,r.jsxs)(s.td,{children:["oneof ",(0,r.jsx)(s.code,{children:"node_type"})]}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#startthreadrun",children:"StartThreadRun"})}),(0,r.jsx)(s.td,{children:"A START_THREAD node starts a child ThreadRun."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"wait_threads"})}),(0,r.jsxs)(s.td,{children:["oneof ",(0,r.jsx)(s.code,{children:"node_type"})]}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#waitforthreadsrun",children:"WaitForThreadsRun"})}),(0,r.jsx)(s.td,{children:"A WAIT_THREADS node waits for one or more child ThreadRun's to complete."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"sleep"})}),(0,r.jsxs)(s.td,{children:["oneof ",(0,r.jsx)(s.code,{children:"node_type"})]}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#sleepnoderun",children:"SleepNodeRun"})}),(0,r.jsx)(s.td,{children:"A SLEEP node makes the ThreadRun block for a certain amount of time."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"user_task"})}),(0,r.jsxs)(s.td,{children:["oneof ",(0,r.jsx)(s.code,{children:"node_type"})]}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#usertasknoderun",children:"UserTaskNodeRun"})}),(0,r.jsx)(s.td,{children:"A USER_TASK node waits until a human executes some work and reports the result."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"start_multiple_threads"})}),(0,r.jsxs)(s.td,{children:["oneof ",(0,r.jsx)(s.code,{children:"node_type"})]}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#startmultiplethreadsrun",children:"StartMultipleThreadsRun"})}),(0,r.jsx)(s.td,{children:"A START_MULTIPLE_THREADS node iterates over a JSON_ARR variable and spawns a child ThreadRun for each element in the list."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"throw_event"})}),(0,r.jsxs)(s.td,{children:["oneof ",(0,r.jsx)(s.code,{children:"node_type"})]}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#throweventnoderun",children:"ThrowEventNodeRun"})}),(0,r.jsx)(s.td,{})]})]})]}),"\n",(0,r.jsxs)(s.h3,{id:"sleepnoderun",children:["Message ",(0,r.jsx)(s.code,{children:"SleepNodeRun"})]}),"\n",(0,r.jsx)(s.p,{children:"The sub-node structure for a SLEEP NodeRun."}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Field"}),(0,r.jsx)(s.th,{children:"Label"}),(0,r.jsx)(s.th,{children:"Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsxs)(s.tbody,{children:[(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"maturation_time"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:"google.protobuf.Timestamp"}),(0,r.jsxs)(s.td,{children:["The time at which the NodeRun is ",(0,r.jsx)(s.em,{children:"SCHEDULED TO"}),' wake up. In rare cases, if the LH Server is back-pressuring clients due to extreme load, the timer event which marks the sleep node as "matured" may come in slightly late.']})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"matured"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:"bool"}),(0,r.jsx)(s.td,{children:"Whether the SleepNodeRun has been matured."})]})]})]}),"\n",(0,r.jsxs)(s.h3,{id:"startmultiplethreadsrun",children:["Message ",(0,r.jsx)(s.code,{children:"StartMultipleThreadsRun"})]}),"\n",(0,r.jsx)(s.p,{children:"The sub-node structure for a START_MULTIPLE_THREADS NodeRun."}),"\n",(0,r.jsx)(s.p,{children:"Note: the output of this NodeRun, which can be used to mutate Variables,\nis a JSON_ARR variable containing the ID's of all the child threadRuns."}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Field"}),(0,r.jsx)(s.th,{children:"Label"}),(0,r.jsx)(s.th,{children:"Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsxs)(s.tbody,{children:[(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"thread_spec_name"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:"string"}),(0,r.jsx)(s.td,{children:"The thread_spec_name of the child thread_runs."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"child_thread_ids"})}),(0,r.jsx)(s.td,{children:"repeated"}),(0,r.jsx)(s.td,{children:"int32"}),(0,r.jsx)(s.td,{children:"The list of all created child ThreadRun's"})]})]})]}),"\n",(0,r.jsxs)(s.h3,{id:"startthreadrun",children:["Message ",(0,r.jsx)(s.code,{children:"StartThreadRun"})]}),"\n",(0,r.jsx)(s.p,{children:"The sub-node structure for a START_THREAD NodeRun."}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Field"}),(0,r.jsx)(s.th,{children:"Label"}),(0,r.jsx)(s.th,{children:"Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsxs)(s.tbody,{children:[(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"child_thread_id"})}),(0,r.jsx)(s.td,{children:"optional"}),(0,r.jsx)(s.td,{children:"int32"}),(0,r.jsx)(s.td,{children:"Contains the thread_run_number of the created Child ThreadRun, if it has been created already."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"thread_spec_name"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:"string"}),(0,r.jsx)(s.td,{children:"The thread_spec_name of the child thread_run."})]})]})]}),"\n",(0,r.jsxs)(s.h3,{id:"tasknoderun",children:["Message ",(0,r.jsx)(s.code,{children:"TaskNodeRun"})]}),"\n",(0,r.jsx)(s.p,{children:"The sub-node structure for a TASK NodeRun."}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Field"}),(0,r.jsx)(s.th,{children:"Label"}),(0,r.jsx)(s.th,{children:"Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsx)(s.tbody,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"task_run_id"})}),(0,r.jsx)(s.td,{children:"optional"}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#taskrunid",children:"TaskRunId"})}),(0,r.jsx)(s.td,{children:"The ID of the TaskRun. Note that if the ThreadRun was halted when it arrived at this TASK Node, then the task_run_id will be unset."})]})})]}),"\n",(0,r.jsxs)(s.h3,{id:"throweventnoderun",children:["Message ",(0,r.jsx)(s.code,{children:"ThrowEventNodeRun"})]}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Field"}),(0,r.jsx)(s.th,{children:"Label"}),(0,r.jsx)(s.th,{children:"Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsx)(s.tbody,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"workflow_event_id"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#workfloweventid",children:"WorkflowEventId"})}),(0,r.jsx)(s.td,{})]})})]}),"\n",(0,r.jsxs)(s.h3,{id:"usertasknoderun",children:["Message ",(0,r.jsx)(s.code,{children:"UserTaskNodeRun"})]}),"\n",(0,r.jsx)(s.p,{children:"The sub-node structure for a USER_TASK NodeRun."}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Field"}),(0,r.jsx)(s.th,{children:"Label"}),(0,r.jsx)(s.th,{children:"Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsx)(s.tbody,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"user_task_run_id"})}),(0,r.jsx)(s.td,{children:"optional"}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#usertaskrunid",children:"UserTaskRunId"})}),(0,r.jsx)(s.td,{children:"The ID of the UserTaskRun. Note that if the ThreadRun was halted when it arrived at this USER_TASK node, then the user_task_run_id will be unset."})]})})]}),"\n",(0,r.jsxs)(s.h3,{id:"waitforthreadsrun",children:["Message ",(0,r.jsx)(s.code,{children:"WaitForThreadsRun"})]}),"\n",(0,r.jsx)(s.p,{children:"The sub-node structure for a WAIT_FOR_THREADS NodeRun."}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Field"}),(0,r.jsx)(s.th,{children:"Label"}),(0,r.jsx)(s.th,{children:"Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsx)(s.tbody,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"threads"})}),(0,r.jsx)(s.td,{children:"repeated"}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#waitforthreadsrunwaitforthread",children:"WaitForThreadsRun.WaitForThread"})}),(0,r.jsx)(s.td,{children:"The threads that are being waited for."})]})})]}),"\n",(0,r.jsxs)(s.h3,{id:"waitforthreadsrunwaitforthread",children:["Message ",(0,r.jsx)(s.code,{children:"WaitForThreadsRun.WaitForThread"})]}),"\n",(0,r.jsx)(s.p,{children:"A 'WaitForThread' structure defines a thread that is being waited for."}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Field"}),(0,r.jsx)(s.th,{children:"Label"}),(0,r.jsx)(s.th,{children:"Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsxs)(s.tbody,{children:[(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"thread_end_time"})}),(0,r.jsx)(s.td,{children:"optional"}),(0,r.jsx)(s.td,{children:"google.protobuf.Timestamp"}),(0,r.jsx)(s.td,{children:"The time at which the ThreadRun ended (successfully or not). Not set if the ThreadRun is still RUNNING, HALTED, or HALTING."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"thread_status"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#lhstatus",children:"LHStatus"})}),(0,r.jsx)(s.td,{children:"The current status of the ThreadRun being waited for."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"thread_run_number"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:"int32"}),(0,r.jsx)(s.td,{children:"The number of the ThreadRun being waited for."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"waiting_status"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#waitforthreadsrunwaitingthreadstatus",children:"WaitForThreadsRun.WaitingThreadStatus"})}),(0,r.jsx)(s.td,{children:'The "waiting status" of this specific thread: whether it\'s still running, already done, handling a failure, or completely failed.'})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"failure_handler_thread_run_id"})}),(0,r.jsx)(s.td,{children:"optional"}),(0,r.jsx)(s.td,{children:"int32"}),(0,r.jsx)(s.td,{children:"If there is a failure on the ThreadRun, and we have a failure handler defined for it, then we will start a failure handler for this threadrun. This field is the id of that threadRun."})]})]})]}),"\n",(0,r.jsxs)(s.h3,{id:"externaleventdefid",children:["Message ",(0,r.jsx)(s.code,{children:"ExternalEventDefId"})]}),"\n",(0,r.jsx)(s.p,{children:"ID for ExternalEventDef"}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Field"}),(0,r.jsx)(s.th,{children:"Label"}),(0,r.jsx)(s.th,{children:"Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsx)(s.tbody,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"name"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:"string"}),(0,r.jsx)(s.td,{children:"ExternalEventDef's are uniquedly identified by their name."})]})})]}),"\n",(0,r.jsxs)(s.h3,{id:"externaleventid",children:["Message ",(0,r.jsx)(s.code,{children:"ExternalEventId"})]}),"\n",(0,r.jsx)(s.p,{children:"ID for an ExternalEvent."}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Field"}),(0,r.jsx)(s.th,{children:"Label"}),(0,r.jsx)(s.th,{children:"Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsxs)(s.tbody,{children:[(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"wf_run_id"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#wfrunid",children:"WfRunId"})}),(0,r.jsx)(s.td,{children:"WfRunId for the ExternalEvent. Note that every ExternalEvent is associated with a WfRun."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"external_event_def_id"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#externaleventdefid",children:"ExternalEventDefId"})}),(0,r.jsx)(s.td,{children:"The ExternalEventDef for this ExternalEvent."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"guid"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:"string"}),(0,r.jsx)(s.td,{children:"A unique guid allowing for distinguishing this ExternalEvent from other events of the same ExternalEventDef and WfRun."})]})]})]}),"\n",(0,r.jsxs)(s.h3,{id:"noderunid",children:["Message ",(0,r.jsx)(s.code,{children:"NodeRunId"})]}),"\n",(0,r.jsx)(s.p,{children:"ID for a NodeRun."}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Field"}),(0,r.jsx)(s.th,{children:"Label"}),(0,r.jsx)(s.th,{children:"Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsxs)(s.tbody,{children:[(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"wf_run_id"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#wfrunid",children:"WfRunId"})}),(0,r.jsx)(s.td,{children:"ID of the WfRun for this NodeRun. Note that every NodeRun is associated with a WfRun."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"thread_run_number"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:"int32"}),(0,r.jsx)(s.td,{children:"ThreadRun of this NodeRun. Note that each NodeRun belongs to a ThreadRun."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"position"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:"int32"}),(0,r.jsx)(s.td,{children:"Position of this NodeRun within its ThreadRun."})]})]})]}),"\n",(0,r.jsxs)(s.h3,{id:"principalid",children:["Message ",(0,r.jsx)(s.code,{children:"PrincipalId"})]}),"\n",(0,r.jsx)(s.p,{children:"ID for a Principal."}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Field"}),(0,r.jsx)(s.th,{children:"Label"}),(0,r.jsx)(s.th,{children:"Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsx)(s.tbody,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"id"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:"string"}),(0,r.jsx)(s.td,{children:"The id of this principal. In OAuth, this is the OAuth Client ID (for machine principals) or the OAuth User Id (for human principals)."})]})})]}),"\n",(0,r.jsxs)(s.h3,{id:"scheduledwfrunid",children:["Message ",(0,r.jsx)(s.code,{children:"ScheduledWfRunId"})]}),"\n",(0,r.jsx)(s.p,{children:"ID for a ScheduledWfRun"}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Field"}),(0,r.jsx)(s.th,{children:"Label"}),(0,r.jsx)(s.th,{children:"Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsx)(s.tbody,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"id"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:"string"}),(0,r.jsx)(s.td,{})]})})]}),"\n",(0,r.jsxs)(s.h3,{id:"taskdefid",children:["Message ",(0,r.jsx)(s.code,{children:"TaskDefId"})]}),"\n",(0,r.jsx)(s.p,{children:"ID for a TaskDef."}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Field"}),(0,r.jsx)(s.th,{children:"Label"}),(0,r.jsx)(s.th,{children:"Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsx)(s.tbody,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"name"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:"string"}),(0,r.jsx)(s.td,{children:"TaskDef's are uniquely identified by their name."})]})})]}),"\n",(0,r.jsxs)(s.h3,{id:"taskdefmetricsid",children:["Message ",(0,r.jsx)(s.code,{children:"TaskDefMetricsId"})]}),"\n",(0,r.jsx)(s.p,{children:"ID for a specific window of TaskDef metrics."}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Field"}),(0,r.jsx)(s.th,{children:"Label"}),(0,r.jsx)(s.th,{children:"Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsxs)(s.tbody,{children:[(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"window_start"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:"google.protobuf.Timestamp"}),(0,r.jsx)(s.td,{children:"The timestamp at which this metrics window starts."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"window_type"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#metricswindowlength",children:"MetricsWindowLength"})}),(0,r.jsx)(s.td,{children:"The length of this window."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"task_def_id"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#taskdefid",children:"TaskDefId"})}),(0,r.jsx)(s.td,{children:"The TaskDefId that this metrics window reports on."})]})]})]}),"\n",(0,r.jsxs)(s.h3,{id:"taskrunid",children:["Message ",(0,r.jsx)(s.code,{children:"TaskRunId"})]}),"\n",(0,r.jsx)(s.p,{children:"ID for a TaskRun."}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Field"}),(0,r.jsx)(s.th,{children:"Label"}),(0,r.jsx)(s.th,{children:"Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsxs)(s.tbody,{children:[(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"wf_run_id"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#wfrunid",children:"WfRunId"})}),(0,r.jsx)(s.td,{children:"WfRunId for this TaskRun. Note that every TaskRun is associated with a WfRun."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"task_guid"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:"string"}),(0,r.jsx)(s.td,{children:"Unique identifier for this TaskRun. Unique among the WfRun."})]})]})]}),"\n",(0,r.jsxs)(s.h3,{id:"taskworkergroupid",children:["Message ",(0,r.jsx)(s.code,{children:"TaskWorkerGroupId"})]}),"\n",(0,r.jsx)(s.p,{children:"ID for a TaskWorkerGroup."}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Field"}),(0,r.jsx)(s.th,{children:"Label"}),(0,r.jsx)(s.th,{children:"Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsx)(s.tbody,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"task_def_id"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#taskdefid",children:"TaskDefId"})}),(0,r.jsx)(s.td,{children:"TaskWorkerGroups are uniquely identified by their TaskDefId."})]})})]}),"\n",(0,r.jsxs)(s.h3,{id:"tenantid",children:["Message ",(0,r.jsx)(s.code,{children:"TenantId"})]}),"\n",(0,r.jsx)(s.p,{children:"ID for a Tenant."}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Field"}),(0,r.jsx)(s.th,{children:"Label"}),(0,r.jsx)(s.th,{children:"Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsx)(s.tbody,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"id"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:"string"}),(0,r.jsx)(s.td,{children:"The Tenant ID."})]})})]}),"\n",(0,r.jsxs)(s.h3,{id:"usertaskdefid",children:["Message ",(0,r.jsx)(s.code,{children:"UserTaskDefId"})]}),"\n",(0,r.jsx)(s.p,{children:"ID for a UserTaskDef"}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Field"}),(0,r.jsx)(s.th,{children:"Label"}),(0,r.jsx)(s.th,{children:"Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsxs)(s.tbody,{children:[(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"name"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:"string"}),(0,r.jsx)(s.td,{children:"The name of a UserTaskDef"})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"version"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:"int32"}),(0,r.jsx)(s.td,{children:"Note that UserTaskDef's use simple versioning."})]})]})]}),"\n",(0,r.jsxs)(s.h3,{id:"usertaskrunid",children:["Message ",(0,r.jsx)(s.code,{children:"UserTaskRunId"})]}),"\n",(0,r.jsx)(s.p,{children:"ID for a UserTaskRun"}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Field"}),(0,r.jsx)(s.th,{children:"Label"}),(0,r.jsx)(s.th,{children:"Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsxs)(s.tbody,{children:[(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"wf_run_id"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#wfrunid",children:"WfRunId"})}),(0,r.jsx)(s.td,{children:"WfRunId for this UserTaskRun. Note that every UserTaskRun is associated with a WfRun."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"user_task_guid"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:"string"}),(0,r.jsx)(s.td,{children:"Unique identifier for this UserTaskRun."})]})]})]}),"\n",(0,r.jsxs)(s.h3,{id:"variableid",children:["Message ",(0,r.jsx)(s.code,{children:"VariableId"})]}),"\n",(0,r.jsx)(s.p,{children:"Id for a Variable."}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Field"}),(0,r.jsx)(s.th,{children:"Label"}),(0,r.jsx)(s.th,{children:"Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsxs)(s.tbody,{children:[(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"wf_run_id"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#wfrunid",children:"WfRunId"})}),(0,r.jsx)(s.td,{children:"WfRunId for the variable. Note that every Variable is associated with a WfRun."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"thread_run_number"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:"int32"}),(0,r.jsx)(s.td,{children:"Each Variable is owned by a specific ThreadRun inside the WfRun it belongs to. This is that ThreadRun's number."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"name"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:"string"}),(0,r.jsx)(s.td,{children:"The name of the variable."})]})]})]}),"\n",(0,r.jsxs)(s.h3,{id:"wfrunid",children:["Message ",(0,r.jsx)(s.code,{children:"WfRunId"})]}),"\n",(0,r.jsx)(s.p,{children:"ID for a WfRun"}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Field"}),(0,r.jsx)(s.th,{children:"Label"}),(0,r.jsx)(s.th,{children:"Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsxs)(s.tbody,{children:[(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"id"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:"string"}),(0,r.jsx)(s.td,{children:"The ID for this WfRun instance."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"parent_wf_run_id"})}),(0,r.jsx)(s.td,{children:"optional"}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#wfrunid",children:"WfRunId"})}),(0,r.jsx)(s.td,{children:"A WfRun may have a parent WfRun. If so, this field is set to the parent's ID."})]})]})]}),"\n",(0,r.jsxs)(s.h3,{id:"wfspecid",children:["Message ",(0,r.jsx)(s.code,{children:"WfSpecId"})]}),"\n",(0,r.jsx)(s.p,{children:"The ID of a WfSpec."}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Field"}),(0,r.jsx)(s.th,{children:"Label"}),(0,r.jsx)(s.th,{children:"Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsxs)(s.tbody,{children:[(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"name"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:"string"}),(0,r.jsx)(s.td,{children:"Name of the WfSpec."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"major_version"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:"int32"}),(0,r.jsxs)(s.td,{children:["Major Version of a WfSpec.",(0,r.jsx)("br",{}),(0,r.jsx)("br",{}),"Note that WfSpec's are versioned. Creating a new WfSpec with the same name and no breaking changes to the public Variables API results in a new WfSpec being created with the same MajorVersion and a new revision. Creating a WfSpec with a breaking change to the public Variables API results in a new WfSpec being created with the same name, an incremented major_version, and revision = 0."]})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"revision"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:"int32"}),(0,r.jsxs)(s.td,{children:["Revision of a WfSpec.",(0,r.jsx)("br",{}),(0,r.jsx)("br",{}),"Note that WfSpec's are versioned. Creating a new WfSpec with the same name and no breaking changes to the public Variables API results in a new WfSpec being created with the same MajorVersion and a new revision. Creating a WfSpec with a breaking change to the public Variables API results in a new WfSpec being created with the same name, an incremented major_version, and revision = 0."]})]})]})]}),"\n",(0,r.jsxs)(s.h3,{id:"wfspecmetricsid",children:["Message ",(0,r.jsx)(s.code,{children:"WfSpecMetricsId"})]}),"\n",(0,r.jsx)(s.p,{children:"ID for a specific window of WfSpec metrics."}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Field"}),(0,r.jsx)(s.th,{children:"Label"}),(0,r.jsx)(s.th,{children:"Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsxs)(s.tbody,{children:[(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"window_start"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:"google.protobuf.Timestamp"}),(0,r.jsx)(s.td,{children:"The timestamp at which this metrics window starts."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"window_type"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#metricswindowlength",children:"MetricsWindowLength"})}),(0,r.jsx)(s.td,{children:"The length of this window."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"wf_spec_id"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#wfspecid",children:"WfSpecId"})}),(0,r.jsx)(s.td,{children:"The WfSpecId that this metrics window reports on."})]})]})]}),"\n",(0,r.jsxs)(s.h3,{id:"workfloweventdefid",children:["Message ",(0,r.jsx)(s.code,{children:"WorkflowEventDefId"})]}),"\n",(0,r.jsx)(s.p,{children:"ID for a WorkflowEventDef."}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Field"}),(0,r.jsx)(s.th,{children:"Label"}),(0,r.jsx)(s.th,{children:"Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsx)(s.tbody,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"name"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:"string"}),(0,r.jsx)(s.td,{children:"The name of the WorkflowEventDef"})]})})]}),"\n",(0,r.jsxs)(s.h3,{id:"workfloweventid",children:["Message ",(0,r.jsx)(s.code,{children:"WorkflowEventId"})]}),"\n",(0,r.jsx)(s.p,{children:"An ID for a WorkflowEvent."}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Field"}),(0,r.jsx)(s.th,{children:"Label"}),(0,r.jsx)(s.th,{children:"Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsxs)(s.tbody,{children:[(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"wf_run_id"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#wfrunid",children:"WfRunId"})}),(0,r.jsx)(s.td,{children:"The Id of the WfRun that threw the event."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"workflow_event_def_id"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#workfloweventdefid",children:"WorkflowEventDefId"})}),(0,r.jsx)(s.td,{children:"The ID of the WorkflowEventDef that this WorkflowEvent is a member of."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"number"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:"int32"}),(0,r.jsx)(s.td,{children:"A sequence number that makes the WorkflowEventId unique among all WorkflowEvent's of the same type thrown by the WfRun. This field starts at zero and is incremented every time a WorkflowEvent of the same type is thrown by the same WfRun."})]})]})]}),"\n",(0,r.jsxs)(s.h3,{id:"scheduledwfrun",children:["Message ",(0,r.jsx)(s.code,{children:"ScheduledWfRun"})]}),"\n",(0,r.jsxs)(s.p,{children:["A ",(0,r.jsx)(s.code,{children:"ScheduledWfRun"})," is an object in the LittleHorse API that triggers a ",(0,r.jsx)(s.code,{children:"WfRun"})," to be started\non a cron schedule."]}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Field"}),(0,r.jsx)(s.th,{children:"Label"}),(0,r.jsx)(s.th,{children:"Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsxs)(s.tbody,{children:[(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"id"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#scheduledwfrunid",children:"ScheduledWfRunId"})}),(0,r.jsx)(s.td,{children:"Unique id for this ScheduledWfRun."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"wf_spec_id"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#wfspecid",children:"WfSpecId"})}),(0,r.jsx)(s.td,{children:"WfSpec used to run a workflow on a schedule."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"variables"})}),(0,r.jsx)(s.td,{children:"map"}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#scheduledwfrunvariablesentry",children:"ScheduledWfRun.VariablesEntry"})}),(0,r.jsx)(s.td,{children:"A map from Variable Name to Values for those variables. The provided variables are passed as input to the Entrypoint ThreadRun."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"parent_wf_run_id"})}),(0,r.jsx)(s.td,{children:"optional"}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#wfrunid",children:"WfRunId"})}),(0,r.jsx)(s.td,{children:"Parent WfRunId associated with all the generated WfRuns"})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"cron_expression"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:"string"}),(0,r.jsx)(s.td,{children:"UNIX expression used to specify the schedule for executing WfRuns"})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"created_at"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:"google.protobuf.Timestamp"}),(0,r.jsx)(s.td,{children:"Creation time for this ScheduledWfRun"})]})]})]}),"\n",(0,r.jsxs)(s.h3,{id:"scheduledwfrunvariablesentry",children:["Message ",(0,r.jsx)(s.code,{children:"ScheduledWfRun.VariablesEntry"})]}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Field"}),(0,r.jsx)(s.th,{children:"Label"}),(0,r.jsx)(s.th,{children:"Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsxs)(s.tbody,{children:[(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"key"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:"string"}),(0,r.jsx)(s.td,{})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"value"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#variablevalue",children:"VariableValue"})}),(0,r.jsx)(s.td,{})]})]})]}),"\n",(0,r.jsxs)(s.h3,{id:"awaitworkfloweventrequest",children:["Message ",(0,r.jsx)(s.code,{children:"AwaitWorkflowEventRequest"})]}),"\n",(0,r.jsx)(s.p,{children:"Request to await until a WorkflowEvent of a certain WorkflowEventDef on a certain WfRun\nis thrown. Relies upon native GRPC deadlines to configure timeouts."}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Field"}),(0,r.jsx)(s.th,{children:"Label"}),(0,r.jsx)(s.th,{children:"Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsxs)(s.tbody,{children:[(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"wf_run_id"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#wfrunid",children:"WfRunId"})}),(0,r.jsx)(s.td,{children:"The ID of the WfRun which must throw the WorkflowEvent."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"event_def_ids"})}),(0,r.jsx)(s.td,{children:"repeated"}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#workfloweventdefid",children:"WorkflowEventDefId"})}),(0,r.jsx)(s.td,{children:"The IDs of the WorkflowEventDef that must be thrown. The request will return the first matching WorkflowEvent is thrown. If event_def_ids is empty, then the request will return the first WorkflowEvent thrown by the WfRun."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"workflow_events_to_ignore"})}),(0,r.jsx)(s.td,{children:"repeated"}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#workfloweventid",children:"WorkflowEventId"})}),(0,r.jsx)(s.td,{children:"Since a single WfRun may throw multiple WorkflowEvent's with the same WorkflowEventDefId, it is necessary to provide a client the ability to \"ignore\" WorkflowEvent's that have already been 'awaited'. Any WorkflowEvent specified by this field is ignored by the rpc."})]})]})]}),"\n",(0,r.jsxs)(s.h3,{id:"deleteexternaleventdefrequest",children:["Message ",(0,r.jsx)(s.code,{children:"DeleteExternalEventDefRequest"})]}),"\n",(0,r.jsx)(s.p,{children:"Deletes an ExternalEventDef"}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Field"}),(0,r.jsx)(s.th,{children:"Label"}),(0,r.jsx)(s.th,{children:"Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsx)(s.tbody,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"id"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#externaleventdefid",children:"ExternalEventDefId"})}),(0,r.jsx)(s.td,{children:"The ID of the ExternalEventDef to delete."})]})})]}),"\n",(0,r.jsxs)(s.h3,{id:"deleteexternaleventrequest",children:["Message ",(0,r.jsx)(s.code,{children:"DeleteExternalEventRequest"})]}),"\n",(0,r.jsx)(s.p,{children:"Deletes an ExternalEvent."}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Field"}),(0,r.jsx)(s.th,{children:"Label"}),(0,r.jsx)(s.th,{children:"Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsx)(s.tbody,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"id"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#externaleventid",children:"ExternalEventId"})}),(0,r.jsx)(s.td,{children:"The ID of the ExternalEvent to delete."})]})})]}),"\n",(0,r.jsxs)(s.h3,{id:"deletescheduledwfrunrequest",children:["Message ",(0,r.jsx)(s.code,{children:"DeleteScheduledWfRunRequest"})]}),"\n",(0,r.jsx)(s.p,{children:"Delete an existing ScheduledWfRun, returns INVALID_ARGUMENT if object does not exist"}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Field"}),(0,r.jsx)(s.th,{children:"Label"}),(0,r.jsx)(s.th,{children:"Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsx)(s.tbody,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"id"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#scheduledwfrunid",children:"ScheduledWfRunId"})}),(0,r.jsxs)(s.td,{children:["Id of the ",(0,r.jsx)(s.code,{children:"ScheduledWfRun"})," to be deleted"]})]})})]}),"\n",(0,r.jsxs)(s.h3,{id:"deletetaskdefrequest",children:["Message ",(0,r.jsx)(s.code,{children:"DeleteTaskDefRequest"})]}),"\n",(0,r.jsx)(s.p,{children:"Deletes a TaskDef."}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Field"}),(0,r.jsx)(s.th,{children:"Label"}),(0,r.jsx)(s.th,{children:"Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsx)(s.tbody,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"id"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#taskdefid",children:"TaskDefId"})}),(0,r.jsx)(s.td,{children:"The ID of the TaskDef to delete."})]})})]}),"\n",(0,r.jsxs)(s.h3,{id:"deleteusertaskdefrequest",children:["Message ",(0,r.jsx)(s.code,{children:"DeleteUserTaskDefRequest"})]}),"\n",(0,r.jsx)(s.p,{children:"Deletes a UserTaskDef."}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Field"}),(0,r.jsx)(s.th,{children:"Label"}),(0,r.jsx)(s.th,{children:"Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsx)(s.tbody,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"id"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#usertaskdefid",children:"UserTaskDefId"})}),(0,r.jsx)(s.td,{children:"The ID of the UserTaskDef to delete."})]})})]}),"\n",(0,r.jsxs)(s.h3,{id:"deletewfrunrequest",children:["Message ",(0,r.jsx)(s.code,{children:"DeleteWfRunRequest"})]}),"\n",(0,r.jsx)(s.p,{children:"Deletes a WfRun."}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Field"}),(0,r.jsx)(s.th,{children:"Label"}),(0,r.jsx)(s.th,{children:"Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsx)(s.tbody,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"id"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#wfrunid",children:"WfRunId"})}),(0,r.jsx)(s.td,{children:"The ID of the WfRun to delete."})]})})]}),"\n",(0,r.jsxs)(s.h3,{id:"deletewfspecrequest",children:["Message ",(0,r.jsx)(s.code,{children:"DeleteWfSpecRequest"})]}),"\n",(0,r.jsx)(s.p,{children:"Deletes a WfSpec"}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Field"}),(0,r.jsx)(s.th,{children:"Label"}),(0,r.jsx)(s.th,{children:"Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsx)(s.tbody,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"id"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#wfspecid",children:"WfSpecId"})}),(0,r.jsx)(s.td,{children:"The ID of the WfSpec to delete"})]})})]}),"\n",(0,r.jsxs)(s.h3,{id:"externaleventdefidlist",children:["Message ",(0,r.jsx)(s.code,{children:"ExternalEventDefIdList"})]}),"\n",(0,r.jsx)(s.p,{children:"List of ExternalEventDef Id's."}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Field"}),(0,r.jsx)(s.th,{children:"Label"}),(0,r.jsx)(s.th,{children:"Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsxs)(s.tbody,{children:[(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"results"})}),(0,r.jsx)(s.td,{children:"repeated"}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#externaleventdefid",children:"ExternalEventDefId"})}),(0,r.jsx)(s.td,{children:"The resulting object id's."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"bookmark"})}),(0,r.jsx)(s.td,{children:"optional"}),(0,r.jsx)(s.td,{children:"bytes"}),(0,r.jsx)(s.td,{children:"The bookmark can be used for cursor-based pagination. If it is null, the server has returned all results. If it is set, you can pass it into your next request to resume searching where your previous request left off."})]})]})]}),"\n",(0,r.jsxs)(s.h3,{id:"externaleventidlist",children:["Message ",(0,r.jsx)(s.code,{children:"ExternalEventIdList"})]}),"\n",(0,r.jsx)(s.p,{children:"List of ExternalEvent Id's"}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Field"}),(0,r.jsx)(s.th,{children:"Label"}),(0,r.jsx)(s.th,{children:"Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsxs)(s.tbody,{children:[(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"results"})}),(0,r.jsx)(s.td,{children:"repeated"}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#externaleventid",children:"ExternalEventId"})}),(0,r.jsx)(s.td,{children:"The resulting object id's."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"bookmark"})}),(0,r.jsx)(s.td,{children:"optional"}),(0,r.jsx)(s.td,{children:"bytes"}),(0,r.jsx)(s.td,{children:"The bookmark can be used for cursor-based pagination. If it is null, the server has returned all results. If it is set, you can pass it into your next request to resume searching where your previous request left off."})]})]})]}),"\n",(0,r.jsxs)(s.h3,{id:"externaleventlist",children:["Message ",(0,r.jsx)(s.code,{children:"ExternalEventList"})]}),"\n",(0,r.jsx)(s.p,{children:"A list of ExternalEvents."}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Field"}),(0,r.jsx)(s.th,{children:"Label"}),(0,r.jsx)(s.th,{children:"Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsx)(s.tbody,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"results"})}),(0,r.jsx)(s.td,{children:"repeated"}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#externalevent",children:"ExternalEvent"})}),(0,r.jsx)(s.td,{children:"A list of ExternalEvent objects."})]})})]}),"\n",(0,r.jsxs)(s.h3,{id:"getlatestusertaskdefrequest",children:["Message ",(0,r.jsx)(s.code,{children:"GetLatestUserTaskDefRequest"})]}),"\n",(0,r.jsx)(s.p,{children:"Returns the UserTaskDef with a given name and the highest version number."}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Field"}),(0,r.jsx)(s.th,{children:"Label"}),(0,r.jsx)(s.th,{children:"Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsx)(s.tbody,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"name"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:"string"}),(0,r.jsx)(s.td,{children:"The name of the UserTaskDef to search for."})]})})]}),"\n",(0,r.jsxs)(s.h3,{id:"getlatestwfspecrequest",children:["Message ",(0,r.jsx)(s.code,{children:"GetLatestWfSpecRequest"})]}),"\n",(0,r.jsx)(s.p,{children:"Get the latest WfSpec with a given name and optionally majorVersion"}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Field"}),(0,r.jsx)(s.th,{children:"Label"}),(0,r.jsx)(s.th,{children:"Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsxs)(s.tbody,{children:[(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"name"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:"string"}),(0,r.jsx)(s.td,{children:"The name of the WfSpec to get. This is required."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"major_version"})}),(0,r.jsx)(s.td,{children:"optional"}),(0,r.jsx)(s.td,{children:"int32"}),(0,r.jsx)(s.td,{children:"Optionally get only WfSpec's that have the same major version. This can be useful if you want to guarantee that there have been no breaking changes to the API of the WfSpec, for example, to ensure that there have been no changes to searchable variables or required input variables."})]})]})]}),"\n",(0,r.jsxs)(s.h3,{id:"lhhostinfo",children:["Message ",(0,r.jsx)(s.code,{children:"LHHostInfo"})]}),"\n",(0,r.jsx)(s.p,{children:"Information about a specific LH Server to contact."}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Field"}),(0,r.jsx)(s.th,{children:"Label"}),(0,r.jsx)(s.th,{children:"Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsxs)(s.tbody,{children:[(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"host"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:"string"}),(0,r.jsx)(s.td,{children:"The host on the server"})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"port"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:"int32"}),(0,r.jsx)(s.td,{children:"The port for the specified listener."})]})]})]}),"\n",(0,r.jsxs)(s.h3,{id:"listexternaleventsrequest",children:["Message ",(0,r.jsx)(s.code,{children:"ListExternalEventsRequest"})]}),"\n",(0,r.jsx)(s.p,{children:"List all ExternalEvents for a specific WfRunId. Note that List Requests return actual\nExternalEvent objects, not ExternalEventId's."}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Field"}),(0,r.jsx)(s.th,{children:"Label"}),(0,r.jsx)(s.th,{children:"Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsx)(s.tbody,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"wf_run_id"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#wfrunid",children:"WfRunId"})}),(0,r.jsx)(s.td,{children:"The WfRunId for whom we list ExternalEvent's."})]})})]}),"\n",(0,r.jsxs)(s.h3,{id:"listnoderunsrequest",children:["Message ",(0,r.jsx)(s.code,{children:"ListNodeRunsRequest"})]}),"\n",(0,r.jsx)(s.p,{children:"List all NodeRun's for a given WfRun. Note that List requests return actual NodeRun Objects,\nnot NodeRunId's."}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Field"}),(0,r.jsx)(s.th,{children:"Label"}),(0,r.jsx)(s.th,{children:"Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsxs)(s.tbody,{children:[(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"wf_run_id"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#wfrunid",children:"WfRunId"})}),(0,r.jsx)(s.td,{children:"The WfRun for whom we list NodeRun's."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"thread_run_number"})}),(0,r.jsx)(s.td,{children:"optional"}),(0,r.jsx)(s.td,{children:"int32"}),(0,r.jsx)(s.td,{children:"Optionally specify the thread run number to filter NodeRun's by."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"bookmark"})}),(0,r.jsx)(s.td,{children:"optional"}),(0,r.jsx)(s.td,{children:"bytes"}),(0,r.jsx)(s.td,{children:"Bookmark for cursor-based pagination; pass if applicable."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"limit"})}),(0,r.jsx)(s.td,{children:"optional"}),(0,r.jsx)(s.td,{children:"int32"}),(0,r.jsx)(s.td,{children:"Maximum results to return in one request."})]})]})]}),"\n",(0,r.jsxs)(s.h3,{id:"listtaskmetricsrequest",children:["Message ",(0,r.jsx)(s.code,{children:"ListTaskMetricsRequest"})]}),"\n",(0,r.jsx)(s.p,{children:"Query to retrieve TaskDef Metrics over a period of time."}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Field"}),(0,r.jsx)(s.th,{children:"Label"}),(0,r.jsx)(s.th,{children:"Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsxs)(s.tbody,{children:[(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"task_def_id"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#taskdefid",children:"TaskDefId"})}),(0,r.jsx)(s.td,{children:"TaskDef id for whichwe retrieve metrics."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"last_window_start"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:"google.protobuf.Timestamp"}),(0,r.jsxs)(s.td,{children:["This parameter is a timestamp that is used to determine the ",(0,r.jsx)(s.em,{children:"last"})," window returned. The server will then return ",(0,r.jsx)(s.code,{children:"num_windows"})," worth of data from before this timestamp."]})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"window_length"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#metricswindowlength",children:"MetricsWindowLength"})}),(0,r.jsx)(s.td,{children:"Window size"})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"num_windows"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:"int32"}),(0,r.jsx)(s.td,{children:"Number of windows to retrieve."})]})]})]}),"\n",(0,r.jsxs)(s.h3,{id:"listtaskmetricsresponse",children:["Message ",(0,r.jsx)(s.code,{children:"ListTaskMetricsResponse"})]}),"\n",(0,r.jsx)(s.p,{children:"A list of TaskDef Metrics WIndows"}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Field"}),(0,r.jsx)(s.th,{children:"Label"}),(0,r.jsx)(s.th,{children:"Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsx)(s.tbody,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"results"})}),(0,r.jsx)(s.td,{children:"repeated"}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#taskdefmetrics",children:"TaskDefMetrics"})}),(0,r.jsx)(s.td,{children:"List of TaskDef Metrics Windows"})]})})]}),"\n",(0,r.jsxs)(s.h3,{id:"listtaskrunsrequest",children:["Message ",(0,r.jsx)(s.code,{children:"ListTaskRunsRequest"})]}),"\n",(0,r.jsx)(s.p,{children:"List TaskRun's for a specific WfRun"}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Field"}),(0,r.jsx)(s.th,{children:"Label"}),(0,r.jsx)(s.th,{children:"Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsx)(s.tbody,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"wf_run_id"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#wfrunid",children:"WfRunId"})}),(0,r.jsx)(s.td,{children:"The WfRun for which to list TaskRun's"})]})})]}),"\n",(0,r.jsxs)(s.h3,{id:"listusertaskrunrequest",children:["Message ",(0,r.jsx)(s.code,{children:"ListUserTaskRunRequest"})]}),"\n",(0,r.jsx)(s.p,{children:"List UserTaskRun's for a specific WfRun"}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Field"}),(0,r.jsx)(s.th,{children:"Label"}),(0,r.jsx)(s.th,{children:"Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsx)(s.tbody,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"wf_run_id"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#wfrunid",children:"WfRunId"})}),(0,r.jsx)(s.td,{children:"The WfRun for which to list UserTaskRuns"})]})})]}),"\n",(0,r.jsxs)(s.h3,{id:"listvariablesrequest",children:["Message ",(0,r.jsx)(s.code,{children:"ListVariablesRequest"})]}),"\n",(0,r.jsx)(s.p,{children:"List all Variables for a specific WfRun. Note that List requests return actual Variable Objects,\nnot VariableId's."}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Field"}),(0,r.jsx)(s.th,{children:"Label"}),(0,r.jsx)(s.th,{children:"Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsx)(s.tbody,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"wf_run_id"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#wfrunid",children:"WfRunId"})}),(0,r.jsx)(s.td,{children:"The WfRun for whom we will list Variables."})]})})]}),"\n",(0,r.jsxs)(s.h3,{id:"listwfmetricsrequest",children:["Message ",(0,r.jsx)(s.code,{children:"ListWfMetricsRequest"})]}),"\n",(0,r.jsx)(s.p,{children:"Query to retrieve WfSpec Metrics over a period of time."}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Field"}),(0,r.jsx)(s.th,{children:"Label"}),(0,r.jsx)(s.th,{children:"Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsxs)(s.tbody,{children:[(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"wf_spec_id"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#wfspecid",children:"WfSpecId"})}),(0,r.jsx)(s.td,{children:"WfSpecId of metrics to get."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"last_window_start"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:"google.protobuf.Timestamp"}),(0,r.jsxs)(s.td,{children:["This parameter is a timestamp that is used to determine the ",(0,r.jsx)(s.em,{children:"last"})," window returned. The server will then return ",(0,r.jsx)(s.code,{children:"num_windows"})," worth of data from before this timestamp."]})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"window_length"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#metricswindowlength",children:"MetricsWindowLength"})}),(0,r.jsx)(s.td,{children:"The window size"})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"num_windows"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:"int32"}),(0,r.jsx)(s.td,{children:"Number of windows to retrieve"})]})]})]}),"\n",(0,r.jsxs)(s.h3,{id:"listwfmetricsresponse",children:["Message ",(0,r.jsx)(s.code,{children:"ListWfMetricsResponse"})]}),"\n",(0,r.jsx)(s.p,{children:"A list of WfSpec Metrics Windows"}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Field"}),(0,r.jsx)(s.th,{children:"Label"}),(0,r.jsx)(s.th,{children:"Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsx)(s.tbody,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"results"})}),(0,r.jsx)(s.td,{children:"repeated"}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#wfspecmetrics",children:"WfSpecMetrics"})}),(0,r.jsx)(s.td,{children:"List of WfSpec Metrics Windows"})]})})]}),"\n",(0,r.jsxs)(s.h3,{id:"migratewfspecrequest",children:["Message ",(0,r.jsx)(s.code,{children:"MigrateWfSpecRequest"})]}),"\n",(0,r.jsx)(s.p,{children:"EXPERIMENTAL: migrate live WfRun's from one version of a WfSpec to another."}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Field"}),(0,r.jsx)(s.th,{children:"Label"}),(0,r.jsx)(s.th,{children:"Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsxs)(s.tbody,{children:[(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"old_wf_spec"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#wfspecid",children:"WfSpecId"})}),(0,r.jsx)(s.td,{})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"migration"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#wfspecversionmigration",children:"WfSpecVersionMigration"})}),(0,r.jsx)(s.td,{})]})]})]}),"\n",(0,r.jsxs)(s.h3,{id:"noderunidlist",children:["Message ",(0,r.jsx)(s.code,{children:"NodeRunIdList"})]}),"\n",(0,r.jsx)(s.p,{children:"List of NodeRun Id's."}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Field"}),(0,r.jsx)(s.th,{children:"Label"}),(0,r.jsx)(s.th,{children:"Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsxs)(s.tbody,{children:[(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"results"})}),(0,r.jsx)(s.td,{children:"repeated"}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#noderunid",children:"NodeRunId"})}),(0,r.jsx)(s.td,{children:"The resulting object id's."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"bookmark"})}),(0,r.jsx)(s.td,{children:"optional"}),(0,r.jsx)(s.td,{children:"bytes"}),(0,r.jsx)(s.td,{children:"The bookmark can be used for cursor-based pagination. If it is null, the server has returned all results. If it is set, you can pass it into your next request to resume searching where your previous request left off."})]})]})]}),"\n",(0,r.jsxs)(s.h3,{id:"noderunlist",children:["Message ",(0,r.jsx)(s.code,{children:"NodeRunList"})]}),"\n",(0,r.jsx)(s.p,{children:"A list of NodeRun Objects."}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Field"}),(0,r.jsx)(s.th,{children:"Label"}),(0,r.jsx)(s.th,{children:"Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsxs)(s.tbody,{children:[(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"results"})}),(0,r.jsx)(s.td,{children:"repeated"}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#noderun",children:"NodeRun"})}),(0,r.jsx)(s.td,{children:"A list of NodeRun Objects."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"bookmark"})}),(0,r.jsx)(s.td,{children:"optional"}),(0,r.jsx)(s.td,{children:"bytes"}),(0,r.jsx)(s.td,{children:"The bookmark can be used for cursor-based pagination. If it is null, the server has returned all results. If it is set, you can pass it into your next request to resume searching where your previous request left off."})]})]})]}),"\n",(0,r.jsxs)(s.h3,{id:"polltaskrequest",children:["Message ",(0,r.jsx)(s.code,{children:"PollTaskRequest"})]}),"\n",(0,r.jsx)(s.p,{children:"Request sent by the Task Worker SDK to tell the Server that the Task Worker is ready\nto execute a TaskRun. Generally used only by the Task Worker SDK."}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Field"}),(0,r.jsx)(s.th,{children:"Label"}),(0,r.jsx)(s.th,{children:"Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsxs)(s.tbody,{children:[(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"task_def_id"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#taskdefid",children:"TaskDefId"})}),(0,r.jsx)(s.td,{children:"Is the TaskDefId that the Task Worker wants to execute."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"client_id"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:"string"}),(0,r.jsx)(s.td,{children:"Is the ID of the Task Worker."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"task_worker_version"})}),(0,r.jsx)(s.td,{children:"optional"}),(0,r.jsx)(s.td,{children:"string"}),(0,r.jsx)(s.td,{children:"Optionally specifies the version of the Task Worker, so that it can be recorded for debugging purposes on the TaskRun itself."})]})]})]}),"\n",(0,r.jsxs)(s.h3,{id:"polltaskresponse",children:["Message ",(0,r.jsx)(s.code,{children:"PollTaskResponse"})]}),"\n",(0,r.jsx)(s.p,{children:"Response from the server for PollTaskRequest."}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Field"}),(0,r.jsx)(s.th,{children:"Label"}),(0,r.jsx)(s.th,{children:"Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsx)(s.tbody,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"result"})}),(0,r.jsx)(s.td,{children:"optional"}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#scheduledtask",children:"ScheduledTask"})}),(0,r.jsx)(s.td,{children:"If possible, a ScheduledTask is returned."})]})})]}),"\n",(0,r.jsxs)(s.h3,{id:"principalidlist",children:["Message ",(0,r.jsx)(s.code,{children:"PrincipalIdList"})]}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Field"}),(0,r.jsx)(s.th,{children:"Label"}),(0,r.jsx)(s.th,{children:"Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsxs)(s.tbody,{children:[(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"results"})}),(0,r.jsx)(s.td,{children:"repeated"}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#principalid",children:"PrincipalId"})}),(0,r.jsx)(s.td,{children:"The resulting object id's."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"bookmark"})}),(0,r.jsx)(s.td,{children:"optional"}),(0,r.jsx)(s.td,{children:"bytes"}),(0,r.jsx)(s.td,{children:"Bookmark for cursor-based pagination; pass if applicable."})]})]})]}),"\n",(0,r.jsxs)(s.h3,{id:"putexternaleventdefrequest",children:["Message ",(0,r.jsx)(s.code,{children:"PutExternalEventDefRequest"})]}),"\n",(0,r.jsx)(s.p,{children:"Field to create an ExternalEventDef."}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Field"}),(0,r.jsx)(s.th,{children:"Label"}),(0,r.jsx)(s.th,{children:"Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsxs)(s.tbody,{children:[(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"name"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:"string"}),(0,r.jsx)(s.td,{children:"The name of the resulting ExternalEventDef."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"retention_policy"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#externaleventretentionpolicy",children:"ExternalEventRetentionPolicy"})}),(0,r.jsxs)(s.td,{children:["Policy to determine how long an ExternalEvent is retained after creation if it is not yet claimed by a WfRun. Note that once a WfRun has been matched with the ExternalEvent, the ExternalEvent is deleted if/when that WfRun is deleted. If not set, then ExternalEvent's are not deleted if they are not matched with a WfRun.",(0,r.jsx)("br",{}),(0,r.jsx)("br",{}),"A future version of LittleHorse will allow changing the retention_policy, which will trigger a cleanup of old ",(0,r.jsx)(s.code,{children:"ExternalEvent"}),"s."]})]})]})]}),"\n",(0,r.jsxs)(s.h3,{id:"putexternaleventrequest",children:["Message ",(0,r.jsx)(s.code,{children:"PutExternalEventRequest"})]}),"\n",(0,r.jsx)(s.p,{children:"Request used to create an ExternalEvent."}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Field"}),(0,r.jsx)(s.th,{children:"Label"}),(0,r.jsx)(s.th,{children:"Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsxs)(s.tbody,{children:[(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"wf_run_id"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#wfrunid",children:"WfRunId"})}),(0,r.jsx)(s.td,{children:"The ID of the WfRun that this Event is sent to."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"external_event_def_id"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#externaleventdefid",children:"ExternalEventDefId"})}),(0,r.jsx)(s.td,{children:"The ID of the ExternalEventDef that this event implements."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"guid"})}),(0,r.jsx)(s.td,{children:"optional"}),(0,r.jsx)(s.td,{children:"string"}),(0,r.jsx)(s.td,{children:"Note that an ExternalEventDefId is a three-part ID: 1. WfRunId 2. ExternalEventDef Name 3. A guid The guid from part 3) can be optionally provided to the PutExternalEventRequest in order to make it idempotent. It is a best practice to do so."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"content"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#variablevalue",children:"VariableValue"})}),(0,r.jsx)(s.td,{children:"The content of this event."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"thread_run_number"})}),(0,r.jsx)(s.td,{children:"optional"}),(0,r.jsx)(s.td,{children:"int32"}),(0,r.jsx)(s.td,{children:"Optionally specify that this ExternalEvent may only be claimed by a specific ThreadRun."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"node_run_position"})}),(0,r.jsx)(s.td,{children:"optional"}),(0,r.jsx)(s.td,{children:"int32"}),(0,r.jsx)(s.td,{children:"Optionally specify that this ExternalEvent may only be claimed by a specific NodeRun. In order for this to be set, you must also set thread_run_number."})]})]})]}),"\n",(0,r.jsxs)(s.h3,{id:"puttaskdefrequest",children:["Message ",(0,r.jsx)(s.code,{children:"PutTaskDefRequest"})]}),"\n",(0,r.jsx)(s.p,{children:"Creates a TaskDef."}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Field"}),(0,r.jsx)(s.th,{children:"Label"}),(0,r.jsx)(s.th,{children:"Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsxs)(s.tbody,{children:[(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"name"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:"string"}),(0,r.jsx)(s.td,{children:"The name of the TaskDef to create."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"input_vars"})}),(0,r.jsx)(s.td,{children:"repeated"}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#variabledef",children:"VariableDef"})}),(0,r.jsx)(s.td,{children:"Variables required to execute the TaskDef. Normally, these are automatically generated by the Task Worker SDK."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"output_schema"})}),(0,r.jsx)(s.td,{children:"optional"}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#taskdefoutputschema",children:"TaskDefOutputSchema"})}),(0,r.jsx)(s.td,{children:"Schema that validates the TaskDef's output"})]})]})]}),"\n",(0,r.jsxs)(s.h3,{id:"putusertaskdefrequest",children:["Message ",(0,r.jsx)(s.code,{children:"PutUserTaskDefRequest"})]}),"\n",(0,r.jsx)(s.p,{children:"Creates a UserTaskDef."}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Field"}),(0,r.jsx)(s.th,{children:"Label"}),(0,r.jsx)(s.th,{children:"Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsxs)(s.tbody,{children:[(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"name"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:"string"}),(0,r.jsx)(s.td,{children:"The name of the UserTaskDef to create."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"fields"})}),(0,r.jsx)(s.td,{children:"repeated"}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#usertaskfield",children:"UserTaskField"})}),(0,r.jsx)(s.td,{children:"The fields that should be presented to the user on the screen in order to fill out the User Task. Note that these fields also define a data contract for the result of the UserTaskDef."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"description"})}),(0,r.jsx)(s.td,{children:"optional"}),(0,r.jsx)(s.td,{children:"string"}),(0,r.jsx)(s.td,{children:"Optional metadata field to store user-defined data. Does not impact workflow execution. Fine to store up to a few KB of text here."})]})]})]}),"\n",(0,r.jsxs)(s.h3,{id:"putwfspecrequest",children:["Message ",(0,r.jsx)(s.code,{children:"PutWfSpecRequest"})]}),"\n",(0,r.jsx)(s.p,{children:"Creates a WfSpec. Generally, this request is generated by the Workflow object in\nour various SDK's."}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Field"}),(0,r.jsx)(s.th,{children:"Label"}),(0,r.jsx)(s.th,{children:"Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsxs)(s.tbody,{children:[(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"name"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:"string"}),(0,r.jsx)(s.td,{children:"The name of the resulting WfSpec."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"thread_specs"})}),(0,r.jsx)(s.td,{children:"map"}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#putwfspecrequestthreadspecsentry",children:"PutWfSpecRequest.ThreadSpecsEntry"})}),(0,r.jsx)(s.td,{children:"Map from name the ThreadSpec."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"entrypoint_thread_name"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:"string"}),(0,r.jsx)(s.td,{children:"The name of the ThreadSpec to be used as the workflow entrypoint."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"retention_policy"})}),(0,r.jsx)(s.td,{children:"optional"}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#workflowretentionpolicy",children:"WorkflowRetentionPolicy"})}),(0,r.jsx)(s.td,{children:"Optional policy to determine how long a WfRun is retained in the data store after it is completed or terminated."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"parent_wf_spec"})}),(0,r.jsx)(s.td,{children:"optional"}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#wfspecparentwfspecreference",children:"WfSpec.ParentWfSpecReference"})}),(0,r.jsxs)(s.td,{children:["Parent WfSpec Reference. If this is set, then all WfRun's for this WfSpec ",(0,r.jsx)(s.em,{children:"MUST"})," be Child WfRun's of the specified WfSpec."]})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"allowed_updates"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#allowedupdatetype",children:"AllowedUpdateType"})}),(0,r.jsx)(s.td,{children:"Configures the behavior of this individual request. Can be used to prevent breaking changes to the WfSpec, prevent any changes to the WfSpec, or allow all changes to the WfSpec."})]})]})]}),"\n",(0,r.jsxs)(s.h3,{id:"putwfspecrequestthreadspecsentry",children:["Message ",(0,r.jsx)(s.code,{children:"PutWfSpecRequest.ThreadSpecsEntry"})]}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Field"}),(0,r.jsx)(s.th,{children:"Label"}),(0,r.jsx)(s.th,{children:"Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsxs)(s.tbody,{children:[(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"key"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:"string"}),(0,r.jsx)(s.td,{})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"value"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#threadspec",children:"ThreadSpec"})}),(0,r.jsx)(s.td,{})]})]})]}),"\n",(0,r.jsxs)(s.h3,{id:"putworkfloweventdefrequest",children:["Message ",(0,r.jsx)(s.code,{children:"PutWorkflowEventDefRequest"})]}),"\n",(0,r.jsx)(s.p,{children:"EXPERIMENTAL: Creates a WorkflowEventDef"}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Field"}),(0,r.jsx)(s.th,{children:"Label"}),(0,r.jsx)(s.th,{children:"Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsxs)(s.tbody,{children:[(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"name"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:"string"}),(0,r.jsx)(s.td,{})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"type"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#variabletype",children:"VariableType"})}),(0,r.jsx)(s.td,{})]})]})]}),"\n",(0,r.jsxs)(s.h3,{id:"registertaskworkerrequest",children:["Message ",(0,r.jsx)(s.code,{children:"RegisterTaskWorkerRequest"})]}),"\n",(0,r.jsx)(s.p,{children:"Message used by Task Worker to register itself to the server and ask for assignments of\nservers to poll."}),"\n",(0,r.jsx)(s.p,{children:"Used by the Task Worker SDK; generally, you shouldn't have to touch this manually."}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Field"}),(0,r.jsx)(s.th,{children:"Label"}),(0,r.jsx)(s.th,{children:"Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsxs)(s.tbody,{children:[(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"task_worker_id"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:"string"}),(0,r.jsx)(s.td,{children:"Is the ID of the Task Worker."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"task_def_id"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#taskdefid",children:"TaskDefId"})}),(0,r.jsx)(s.td,{children:"The TaskDef the worker wants to poll for."})]})]})]}),"\n",(0,r.jsxs)(s.h3,{id:"registertaskworkerresponse",children:["Message ",(0,r.jsx)(s.code,{children:"RegisterTaskWorkerResponse"})]}),"\n",(0,r.jsx)(s.p,{children:"Response containing list of Servers that the Task Worker should connect to and start polling from.\nOnly used internally by the Task Worker SDK."}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Field"}),(0,r.jsx)(s.th,{children:"Label"}),(0,r.jsx)(s.th,{children:"Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsxs)(s.tbody,{children:[(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"your_hosts"})}),(0,r.jsx)(s.td,{children:"repeated"}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#lhhostinfo",children:"LHHostInfo"})}),(0,r.jsx)(s.td,{children:"The list of LH Server hosts that the Task Worker should start polling."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"is_cluster_healthy"})}),(0,r.jsx)(s.td,{children:"optional"}),(0,r.jsx)(s.td,{children:"bool"}),(0,r.jsx)(s.td,{children:"Whether the LH Cluster is healthy."})]})]})]}),"\n",(0,r.jsxs)(s.h3,{id:"reporttaskrun",children:["Message ",(0,r.jsx)(s.code,{children:"ReportTaskRun"})]}),"\n",(0,r.jsx)(s.p,{children:"Request used by the Task Worker SDK to report the result of a TaskRun execution."}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Field"}),(0,r.jsx)(s.th,{children:"Label"}),(0,r.jsx)(s.th,{children:"Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsxs)(s.tbody,{children:[(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"task_run_id"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#taskrunid",children:"TaskRunId"})}),(0,r.jsx)(s.td,{children:"ID of the TaskRun"})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"time"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:"google.protobuf.Timestamp"}),(0,r.jsx)(s.td,{children:"When the TaskRun was executed"})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"status"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#taskstatus",children:"TaskStatus"})}),(0,r.jsx)(s.td,{children:"Status of the TaskRun"})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"log_output"})}),(0,r.jsx)(s.td,{children:"optional"}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#variablevalue",children:"VariableValue"})}),(0,r.jsx)(s.td,{children:"Optional information for logging or exceptions"})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"attempt_number"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:"int32"}),(0,r.jsx)(s.td,{children:"Attempt number of the TaskRun"})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"output"})}),(0,r.jsxs)(s.td,{children:["oneof ",(0,r.jsx)(s.code,{children:"result"})]}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#variablevalue",children:"VariableValue"})}),(0,r.jsx)(s.td,{children:"Successfully completed task"})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"error"})}),(0,r.jsxs)(s.td,{children:["oneof ",(0,r.jsx)(s.code,{children:"result"})]}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#lhtaskerror",children:"LHTaskError"})}),(0,r.jsx)(s.td,{children:"Technical error"})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"exception"})}),(0,r.jsxs)(s.td,{children:["oneof ",(0,r.jsx)(s.code,{children:"result"})]}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#lhtaskexception",children:"LHTaskException"})}),(0,r.jsx)(s.td,{children:"Business exception"})]})]})]}),"\n",(0,r.jsxs)(s.h3,{id:"rescuethreadrunrequest",children:["Message ",(0,r.jsx)(s.code,{children:"RescueThreadRunRequest"})]}),"\n",(0,r.jsx)(s.p,{children:"The request used to rescue a failed ThreadRun at a specific NodeRun."}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Field"}),(0,r.jsx)(s.th,{children:"Label"}),(0,r.jsx)(s.th,{children:"Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsxs)(s.tbody,{children:[(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"wf_run_id"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#wfrunid",children:"WfRunId"})}),(0,r.jsxs)(s.td,{children:["The id of the ",(0,r.jsx)(s.code,{children:"WfRun"})," which we are going to rescue."]})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"thread_run_number"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:"int32"}),(0,r.jsxs)(s.td,{children:["The number of the failed ",(0,r.jsx)(s.code,{children:"ThreadRun"})," that we will rescue. The specified ",(0,r.jsx)(s.code,{children:"ThreadRun"})," must be in a state where it's latest ",(0,r.jsx)(s.code,{children:"NodeRun"})," is: ",(0,r.jsx)("br",{})," - In the ",(0,r.jsx)(s.code,{children:"ERROR"})," state.",(0,r.jsx)("br",{})," - Has no ",(0,r.jsx)(s.code,{children:"FailureHandler"})," ",(0,r.jsx)(s.code,{children:"ThreadRun"}),"s ",(0,r.jsx)("br",{})," - The parent ",(0,r.jsx)(s.code,{children:"ThreadRun"}),", or any parent of the parent, has not handled the ",(0,r.jsx)(s.code,{children:"Failure"})," yet.",(0,r.jsx)("br",{}),(0,r.jsx)("br",{}),"If that is not true, then the ",(0,r.jsx)(s.code,{children:"ThreadRun"})," cannot be rescued and the request will return ",(0,r.jsx)(s.code,{children:"FAILED_PRECONDITION"}),"."]})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"skip_current_node"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:"bool"}),(0,r.jsxs)(s.td,{children:["If set to ",(0,r.jsx)(s.code,{children:"true"}),", then the ThreadRun will skip past the ",(0,r.jsx)(s.code,{children:"Node"})," of the current failed ",(0,r.jsx)(s.code,{children:"NodeRun"})," and advance according to the outgoing edges. If set to ",(0,r.jsx)(s.code,{children:"false"}),", then the ",(0,r.jsx)(s.code,{children:"ThreadRun"})," will schedule another ",(0,r.jsx)(s.code,{children:"NodeRun"})," for the current ",(0,r.jsx)(s.code,{children:"Node"})]})]})]})]}),"\n",(0,r.jsxs)(s.h3,{id:"resumewfrunrequest",children:["Message ",(0,r.jsx)(s.code,{children:"ResumeWfRunRequest"})]}),"\n",(0,r.jsx)(s.p,{children:"Resume a WfRun."}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Field"}),(0,r.jsx)(s.th,{children:"Label"}),(0,r.jsx)(s.th,{children:"Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsxs)(s.tbody,{children:[(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"wf_run_id"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#wfrunid",children:"WfRunId"})}),(0,r.jsx)(s.td,{children:"Is the WfRunId"})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"thread_run_number"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:"int32"}),(0,r.jsxs)(s.td,{children:["The number of the ThreadRun to resume. Note that resuming the entrypoint ThreadRun (which always has number ",(0,r.jsx)(s.code,{children:"0"}),") causes the whole WfRun to resume. If you do not manually set the thread_run_number field, it defaults to zero, so resuming the entire WfRun is the default behavior."]})]})]})]}),"\n",(0,r.jsxs)(s.h3,{id:"runwfrequest",children:["Message ",(0,r.jsx)(s.code,{children:"RunWfRequest"})]}),"\n",(0,r.jsx)(s.p,{children:"Create a Workflow Run."}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Field"}),(0,r.jsx)(s.th,{children:"Label"}),(0,r.jsx)(s.th,{children:"Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsxs)(s.tbody,{children:[(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"wf_spec_name"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:"string"}),(0,r.jsx)(s.td,{children:"The name of the WfSpec to run."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"major_version"})}),(0,r.jsx)(s.td,{children:"optional"}),(0,r.jsx)(s.td,{children:"int32"}),(0,r.jsx)(s.td,{children:'Optionally specify the major version of the WfSpec to run. This guarantees that the "signature" of the WfSpec (i.e. the required input variables, and searchable variables) will not change for this app.'})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"revision"})}),(0,r.jsx)(s.td,{children:"optional"}),(0,r.jsx)(s.td,{children:"int32"}),(0,r.jsx)(s.td,{children:"Optionally specify the specific revision of the WfSpec to run. It is not recommended to use this in practice, as the WfSpec logic should be de-coupled from the applications that run WfRun's."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"variables"})}),(0,r.jsx)(s.td,{children:"map"}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#runwfrequestvariablesentry",children:"RunWfRequest.VariablesEntry"})}),(0,r.jsx)(s.td,{children:"A map from Variable Name to Values for those variables. The provided variables are passed as input to the Entrypoint ThreadRun."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"id"})}),(0,r.jsx)(s.td,{children:"optional"}),(0,r.jsx)(s.td,{children:"string"}),(0,r.jsx)(s.td,{children:"You can optionally specify the ID of this WfRun. This is a recommended best practice as it also makes your request idempotent and allows you to easily find the WfRun at a later time."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"parent_wf_run_id"})}),(0,r.jsx)(s.td,{children:"optional"}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#wfrunid",children:"WfRunId"})}),(0,r.jsx)(s.td,{})]})]})]}),"\n",(0,r.jsxs)(s.h3,{id:"runwfrequestvariablesentry",children:["Message ",(0,r.jsx)(s.code,{children:"RunWfRequest.VariablesEntry"})]}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Field"}),(0,r.jsx)(s.th,{children:"Label"}),(0,r.jsx)(s.th,{children:"Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsxs)(s.tbody,{children:[(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"key"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:"string"}),(0,r.jsx)(s.td,{})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"value"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#variablevalue",children:"VariableValue"})}),(0,r.jsx)(s.td,{})]})]})]}),"\n",(0,r.jsxs)(s.h3,{id:"schedulewfrequest",children:["Message ",(0,r.jsx)(s.code,{children:"ScheduleWfRequest"})]}),"\n",(0,r.jsx)(s.p,{children:"Schedule WfRuns based on a specific cron UNIX expression"}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Field"}),(0,r.jsx)(s.th,{children:"Label"}),(0,r.jsx)(s.th,{children:"Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsxs)(s.tbody,{children:[(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"id"})}),(0,r.jsx)(s.td,{children:"optional"}),(0,r.jsx)(s.td,{children:"string"}),(0,r.jsx)(s.td,{children:"Specific ID"})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"wf_spec_name"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:"string"}),(0,r.jsx)(s.td,{children:"The name of the WfSpec to run."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"major_version"})}),(0,r.jsx)(s.td,{children:"optional"}),(0,r.jsx)(s.td,{children:"int32"}),(0,r.jsx)(s.td,{children:'Optionally specify the major version of the WfSpec to run. This guarantees that the "signature" of the WfSpec (i.e. the required input variables, and searchable variables) will not change for this app.'})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"revision"})}),(0,r.jsx)(s.td,{children:"optional"}),(0,r.jsx)(s.td,{children:"int32"}),(0,r.jsx)(s.td,{children:"Optionally specify the specific revision of the WfSpec to run. It is not recommended to use this in practice, as the WfSpec logic should be de-coupled from the applications that run WfRun's."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"variables"})}),(0,r.jsx)(s.td,{children:"map"}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#schedulewfrequestvariablesentry",children:"ScheduleWfRequest.VariablesEntry"})}),(0,r.jsx)(s.td,{children:"A map from Variable Name to Values for those variables. The provided variables are passed as input to the Entrypoint ThreadRun."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"parent_wf_run_id"})}),(0,r.jsx)(s.td,{children:"optional"}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#wfrunid",children:"WfRunId"})}),(0,r.jsx)(s.td,{children:"Parent WfRunId associated with all the generated WfRuns"})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"cron_expression"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:"string"}),(0,r.jsx)(s.td,{children:"UNIX expression used to specify the schedule for executing WfRuns"})]})]})]}),"\n",(0,r.jsxs)(s.h3,{id:"schedulewfrequestvariablesentry",children:["Message ",(0,r.jsx)(s.code,{children:"ScheduleWfRequest.VariablesEntry"})]}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Field"}),(0,r.jsx)(s.th,{children:"Label"}),(0,r.jsx)(s.th,{children:"Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsxs)(s.tbody,{children:[(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"key"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:"string"}),(0,r.jsx)(s.td,{})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"value"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#variablevalue",children:"VariableValue"})}),(0,r.jsx)(s.td,{})]})]})]}),"\n",(0,r.jsxs)(s.h3,{id:"scheduledtask",children:["Message ",(0,r.jsx)(s.code,{children:"ScheduledTask"})]}),"\n",(0,r.jsx)(s.p,{children:"Message sent by server to Task Worker SDK specifying a specific TaskRun to be executed.\nThis is used and handled internally by the Task Worker SDK."}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Field"}),(0,r.jsx)(s.th,{children:"Label"}),(0,r.jsx)(s.th,{children:"Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsxs)(s.tbody,{children:[(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"task_run_id"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#taskrunid",children:"TaskRunId"})}),(0,r.jsx)(s.td,{children:"Id of the TaskRun to execute."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"task_def_id"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#taskdefid",children:"TaskDefId"})}),(0,r.jsx)(s.td,{children:"ID of the TaskDef to which the TaskRun belongs."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"attempt_number"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:"int32"}),(0,r.jsxs)(s.td,{children:["Attempt number of the TaskRun, zero indexed. attempt_number of ",(0,r.jsx)(s.code,{children:"0"})," means this is the first attempt; ",(0,r.jsx)(s.code,{children:"1"})," means this is the first retry, etc."]})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"variables"})}),(0,r.jsx)(s.td,{children:"repeated"}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#varnameandval",children:"VarNameAndVal"})}),(0,r.jsx)(s.td,{children:"Input variables for this TaskRun."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"created_at"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:"google.protobuf.Timestamp"}),(0,r.jsx)(s.td,{})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"source"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#taskrunsource",children:"TaskRunSource"})}),(0,r.jsx)(s.td,{children:"Source of the TaskRun. Currently, there are two options: 1. A TASK node 2. A reminder task scheduled by a trigger on a User Task."})]})]})]}),"\n",(0,r.jsxs)(s.h3,{id:"scheduledwfrunidlist",children:["Message ",(0,r.jsx)(s.code,{children:"ScheduledWfRunIdList"})]}),"\n",(0,r.jsx)(s.p,{children:"List of ScheduledWfRun"}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Field"}),(0,r.jsx)(s.th,{children:"Label"}),(0,r.jsx)(s.th,{children:"Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsx)(s.tbody,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"results"})}),(0,r.jsx)(s.td,{children:"repeated"}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#scheduledwfrunid",children:"ScheduledWfRunId"})}),(0,r.jsx)(s.td,{children:"A list of ScheduledWfRun Objects"})]})})]}),"\n",(0,r.jsxs)(s.h3,{id:"searchexternaleventdefrequest",children:["Message ",(0,r.jsx)(s.code,{children:"SearchExternalEventDefRequest"})]}),"\n",(0,r.jsx)(s.p,{children:"Search for ExternalEventDefs based on certain criteria."}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Field"}),(0,r.jsx)(s.th,{children:"Label"}),(0,r.jsx)(s.th,{children:"Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsxs)(s.tbody,{children:[(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"bookmark"})}),(0,r.jsx)(s.td,{children:"optional"}),(0,r.jsx)(s.td,{children:"bytes"}),(0,r.jsx)(s.td,{children:"Bookmark for cursor-based pagination; pass if applicable."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"limit"})}),(0,r.jsx)(s.td,{children:"optional"}),(0,r.jsx)(s.td,{children:"int32"}),(0,r.jsx)(s.td,{children:"Maximum results to return in one request."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"prefix"})}),(0,r.jsx)(s.td,{children:"optional"}),(0,r.jsx)(s.td,{children:"string"}),(0,r.jsx)(s.td,{children:"Optionally search only for ExternalEventDef's whose name starts with this prefix."})]})]})]}),"\n",(0,r.jsxs)(s.h3,{id:"searchexternaleventrequest",children:["Message ",(0,r.jsx)(s.code,{children:"SearchExternalEventRequest"})]}),"\n",(0,r.jsx)(s.p,{children:"Search for ExternalEvents based on certain criteria."}),"\n",(0,r.jsx)(s.p,{children:"Required field ExternalEventDefId specifies which ExternalEventDef\nto search for ExternalEvents under."}),"\n",(0,r.jsx)(s.p,{children:"At this time, it is not possible to make a search for all ExternalEvents."}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Field"}),(0,r.jsx)(s.th,{children:"Label"}),(0,r.jsx)(s.th,{children:"Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsxs)(s.tbody,{children:[(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"bookmark"})}),(0,r.jsx)(s.td,{children:"optional"}),(0,r.jsx)(s.td,{children:"bytes"}),(0,r.jsx)(s.td,{children:"Bookmark for cursor-based pagination; pass if applicable."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"limit"})}),(0,r.jsx)(s.td,{children:"optional"}),(0,r.jsx)(s.td,{children:"int32"}),(0,r.jsx)(s.td,{children:"Maximum results to return in one request."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"earliest_start"})}),(0,r.jsx)(s.td,{children:"optional"}),(0,r.jsx)(s.td,{children:"google.protobuf.Timestamp"}),(0,r.jsx)(s.td,{children:"Specifies to return only ExternalEvents created after this time"})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"latest_start"})}),(0,r.jsx)(s.td,{children:"optional"}),(0,r.jsx)(s.td,{children:"google.protobuf.Timestamp"}),(0,r.jsx)(s.td,{children:"Specifies to return only ExternalEvents created before this time"})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"external_event_def_id"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#externaleventdefid",children:"ExternalEventDefId"})}),(0,r.jsxs)(s.td,{children:["Search for ExternalEvents by their ExternalEventDefId",(0,r.jsx)("br",{}),(0,r.jsx)("br",{}),"* Note: If ExternalEventDefId is not provided or does not exist, gRPC status code 'INVALID_ARGUMENT' will be returned."]})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"is_claimed"})}),(0,r.jsx)(s.td,{children:"optional"}),(0,r.jsx)(s.td,{children:"bool"}),(0,r.jsx)(s.td,{children:"Optionally search for only ExternalEvents that are claimed or not."})]})]})]}),"\n",(0,r.jsxs)(s.h3,{id:"searchnoderunrequest",children:["Message ",(0,r.jsx)(s.code,{children:"SearchNodeRunRequest"})]}),"\n",(0,r.jsx)(s.p,{children:"Search for NodeRun's by certain criteria."}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Field"}),(0,r.jsx)(s.th,{children:"Label"}),(0,r.jsx)(s.th,{children:"Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsxs)(s.tbody,{children:[(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"bookmark"})}),(0,r.jsx)(s.td,{children:"optional"}),(0,r.jsx)(s.td,{children:"bytes"}),(0,r.jsx)(s.td,{children:"Bookmark for cursor-based pagination; pass if applicable."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"limit"})}),(0,r.jsx)(s.td,{children:"optional"}),(0,r.jsx)(s.td,{children:"int32"}),(0,r.jsx)(s.td,{children:"Maximum results to return in one request."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"earliest_start"})}),(0,r.jsx)(s.td,{children:"optional"}),(0,r.jsx)(s.td,{children:"google.protobuf.Timestamp"}),(0,r.jsx)(s.td,{children:"Only return NodeRun's created after this time."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"latest_start"})}),(0,r.jsx)(s.td,{children:"optional"}),(0,r.jsx)(s.td,{children:"google.protobuf.Timestamp"}),(0,r.jsx)(s.td,{children:"Only return NodeRun's created before this time."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"node_type"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#searchnoderunrequestnodetype",children:"SearchNodeRunRequest.NodeType"})}),(0,r.jsx)(s.td,{children:"Specifies the type of NodeRun to search for."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"status"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#lhstatus",children:"LHStatus"})}),(0,r.jsx)(s.td,{children:"Specifies the status of NodeRun to search for."})]})]})]}),"\n",(0,r.jsxs)(s.h3,{id:"searchprincipalrequest",children:["Message ",(0,r.jsx)(s.code,{children:"SearchPrincipalRequest"})]}),"\n",(0,r.jsx)(s.p,{children:"Search for Principals based on certain criteria."}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Field"}),(0,r.jsx)(s.th,{children:"Label"}),(0,r.jsx)(s.th,{children:"Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsxs)(s.tbody,{children:[(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"bookmark"})}),(0,r.jsx)(s.td,{children:"optional"}),(0,r.jsx)(s.td,{children:"bytes"}),(0,r.jsx)(s.td,{children:"Bookmark for cursor-based pagination; pass if applicable."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"limit"})}),(0,r.jsx)(s.td,{children:"optional"}),(0,r.jsx)(s.td,{children:"int32"}),(0,r.jsx)(s.td,{children:"Maximum results to return in one request."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"earliest_start"})}),(0,r.jsx)(s.td,{children:"optional"}),(0,r.jsx)(s.td,{children:"google.protobuf.Timestamp"}),(0,r.jsx)(s.td,{children:"Specifies to return only Principals's created after this time"})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"latest_start"})}),(0,r.jsx)(s.td,{children:"optional"}),(0,r.jsx)(s.td,{children:"google.protobuf.Timestamp"}),(0,r.jsx)(s.td,{children:"Specifies to return only Principals's created before this time"})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"isAdmin"})}),(0,r.jsxs)(s.td,{children:["oneof ",(0,r.jsx)(s.code,{children:"principal_criteria"})]}),(0,r.jsx)(s.td,{children:"bool"}),(0,r.jsx)(s.td,{children:"List only Principals that are admins"})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"tenantId"})}),(0,r.jsxs)(s.td,{children:["oneof ",(0,r.jsx)(s.code,{children:"principal_criteria"})]}),(0,r.jsx)(s.td,{children:"string"}),(0,r.jsx)(s.td,{children:"List Principals associated with this Tenant ID"})]})]})]}),"\n",(0,r.jsxs)(s.h3,{id:"searchscheduledwfrunrequest",children:["Message ",(0,r.jsx)(s.code,{children:"SearchScheduledWfRunRequest"})]}),"\n",(0,r.jsx)(s.p,{children:"Search filters for ScheduledWfRun's"}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Field"}),(0,r.jsx)(s.th,{children:"Label"}),(0,r.jsx)(s.th,{children:"Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsxs)(s.tbody,{children:[(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"wf_spec_name"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:"string"}),(0,r.jsx)(s.td,{children:"The name of the WfSpec to filter"})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"major_version"})}),(0,r.jsx)(s.td,{children:"optional"}),(0,r.jsx)(s.td,{children:"int32"}),(0,r.jsx)(s.td,{children:"The major version of the WfSpec to filter"})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"revision"})}),(0,r.jsx)(s.td,{children:"optional"}),(0,r.jsx)(s.td,{children:"int32"}),(0,r.jsx)(s.td,{children:"The revision number of the WfSpec to filter"})]})]})]}),"\n",(0,r.jsxs)(s.h3,{id:"searchtaskdefrequest",children:["Message ",(0,r.jsx)(s.code,{children:"SearchTaskDefRequest"})]}),"\n",(0,r.jsx)(s.p,{children:"Search for TaskDef's based on certain criteria."}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Field"}),(0,r.jsx)(s.th,{children:"Label"}),(0,r.jsx)(s.th,{children:"Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsxs)(s.tbody,{children:[(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"bookmark"})}),(0,r.jsx)(s.td,{children:"optional"}),(0,r.jsx)(s.td,{children:"bytes"}),(0,r.jsx)(s.td,{children:"Bookmark for cursor-based pagination; pass if applicable."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"limit"})}),(0,r.jsx)(s.td,{children:"optional"}),(0,r.jsx)(s.td,{children:"int32"}),(0,r.jsx)(s.td,{children:"Maximum results to return in one request."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"prefix"})}),(0,r.jsx)(s.td,{children:"optional"}),(0,r.jsx)(s.td,{children:"string"}),(0,r.jsx)(s.td,{children:"Optionally specify to only return TaskDef's with a specific prefix."})]})]})]}),"\n",(0,r.jsxs)(s.h3,{id:"searchtaskrunrequest",children:["Message ",(0,r.jsx)(s.code,{children:"SearchTaskRunRequest"})]}),"\n",(0,r.jsx)(s.p,{children:"Searches for TaskRuns by various criteria."}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Field"}),(0,r.jsx)(s.th,{children:"Label"}),(0,r.jsx)(s.th,{children:"Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsxs)(s.tbody,{children:[(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"bookmark"})}),(0,r.jsx)(s.td,{children:"optional"}),(0,r.jsx)(s.td,{children:"bytes"}),(0,r.jsx)(s.td,{children:"Bookmark for cursor-based pagination; pass if applicable."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"limit"})}),(0,r.jsx)(s.td,{children:"optional"}),(0,r.jsx)(s.td,{children:"int32"}),(0,r.jsx)(s.td,{children:"Maximum results to return in one request."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"task_def_name"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:"string"}),(0,r.jsx)(s.td,{children:"Specifies the TaskDef of TaskRun's to return. This is required."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"status"})}),(0,r.jsx)(s.td,{children:"optional"}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#taskstatus",children:"TaskStatus"})}),(0,r.jsx)(s.td,{children:"Specifies to only return TaskRun's matching this status."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"earliest_start"})}),(0,r.jsx)(s.td,{children:"optional"}),(0,r.jsx)(s.td,{children:"google.protobuf.Timestamp"}),(0,r.jsx)(s.td,{children:"Specifies to only return TaskRun's that were scheduled after this time."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"latest_start"})}),(0,r.jsx)(s.td,{children:"optional"}),(0,r.jsx)(s.td,{children:"google.protobuf.Timestamp"}),(0,r.jsx)(s.td,{children:"Specifies to only return TaskRun's that were scheduled before this time."})]})]})]}),"\n",(0,r.jsxs)(s.h3,{id:"searchtenantrequest",children:["Message ",(0,r.jsx)(s.code,{children:"SearchTenantRequest"})]}),"\n",(0,r.jsx)(s.p,{children:"Search for all available TenantIds for current Principal"}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Field"}),(0,r.jsx)(s.th,{children:"Label"}),(0,r.jsx)(s.th,{children:"Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsxs)(s.tbody,{children:[(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"limit"})}),(0,r.jsx)(s.td,{children:"optional"}),(0,r.jsx)(s.td,{children:"int32"}),(0,r.jsx)(s.td,{children:"Maximum results to return in one request."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"bookmark"})}),(0,r.jsx)(s.td,{children:"optional"}),(0,r.jsx)(s.td,{children:"bytes"}),(0,r.jsx)(s.td,{children:"Bookmark for cursor-based pagination; pass if applicable."})]})]})]}),"\n",(0,r.jsxs)(s.h3,{id:"searchusertaskdefrequest",children:["Message ",(0,r.jsx)(s.code,{children:"SearchUserTaskDefRequest"})]}),"\n",(0,r.jsx)(s.p,{children:"Search for UserTaskDef's."}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Field"}),(0,r.jsx)(s.th,{children:"Label"}),(0,r.jsx)(s.th,{children:"Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsxs)(s.tbody,{children:[(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"bookmark"})}),(0,r.jsx)(s.td,{children:"optional"}),(0,r.jsx)(s.td,{children:"bytes"}),(0,r.jsx)(s.td,{children:"Bookmark for cursor-based pagination; pass if applicable."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"limit"})}),(0,r.jsx)(s.td,{children:"optional"}),(0,r.jsx)(s.td,{children:"int32"}),(0,r.jsx)(s.td,{children:"Maximum results to return in one request."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"prefix"})}),(0,r.jsxs)(s.td,{children:["oneof ",(0,r.jsx)(s.code,{children:"user_task_def_criteria"})]}),(0,r.jsx)(s.td,{children:"string"}),(0,r.jsx)(s.td,{children:"Return all UserTaskDef's with a specific prefix."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"name"})}),(0,r.jsxs)(s.td,{children:["oneof ",(0,r.jsx)(s.code,{children:"user_task_def_criteria"})]}),(0,r.jsx)(s.td,{children:"string"}),(0,r.jsx)(s.td,{children:"Return all UserTaskDef's with a specific name."})]})]})]}),"\n",(0,r.jsxs)(s.h3,{id:"searchusertaskrunrequest",children:["Message ",(0,r.jsx)(s.code,{children:"SearchUserTaskRunRequest"})]}),"\n",(0,r.jsx)(s.p,{children:"Search for UserTaskRun's matching certain criteria. The attributes are additive,\nyou may specify any combination of fields in this request. Only UserTaskRun's\nmatching all criteria will be returned."}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Field"}),(0,r.jsx)(s.th,{children:"Label"}),(0,r.jsx)(s.th,{children:"Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsxs)(s.tbody,{children:[(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"bookmark"})}),(0,r.jsx)(s.td,{children:"optional"}),(0,r.jsx)(s.td,{children:"bytes"}),(0,r.jsx)(s.td,{children:"Bookmark for cursor-based pagination; pass if applicable."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"limit"})}),(0,r.jsx)(s.td,{children:"optional"}),(0,r.jsx)(s.td,{children:"int32"}),(0,r.jsx)(s.td,{children:"Maximum results to return in one request."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"status"})}),(0,r.jsx)(s.td,{children:"optional"}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#usertaskrunstatus",children:"UserTaskRunStatus"})}),(0,r.jsx)(s.td,{children:"Status of UserTaskRun's to return."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"user_task_def_name"})}),(0,r.jsx)(s.td,{children:"optional"}),(0,r.jsx)(s.td,{children:"string"}),(0,r.jsx)(s.td,{children:"UserTaskDef name to search for."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"user_id"})}),(0,r.jsx)(s.td,{children:"optional"}),(0,r.jsx)(s.td,{children:"string"}),(0,r.jsx)(s.td,{children:"Search for UserTaskRun's assigned to this user id."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"user_group"})}),(0,r.jsx)(s.td,{children:"optional"}),(0,r.jsx)(s.td,{children:"string"}),(0,r.jsx)(s.td,{children:"Search for UserTaskRun's assigned to this user group."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"earliest_start"})}),(0,r.jsx)(s.td,{children:"optional"}),(0,r.jsx)(s.td,{children:"google.protobuf.Timestamp"}),(0,r.jsx)(s.td,{children:"Search for UserTaskRun's that were created after this time."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"latest_start"})}),(0,r.jsx)(s.td,{children:"optional"}),(0,r.jsx)(s.td,{children:"google.protobuf.Timestamp"}),(0,r.jsx)(s.td,{children:"Search for UserTaskRun's that were created before this time."})]})]})]}),"\n",(0,r.jsxs)(s.h3,{id:"searchvariablerequest",children:["Message ",(0,r.jsx)(s.code,{children:"SearchVariableRequest"})]}),"\n",(0,r.jsx)(s.p,{children:"Search for Variables by their value. This request is also highly useful to search for\nWfRun's based on the value of Variable's that are not in the Entrypoint ThreadRun,\nand also when you are using LittleHorse as a data store and need to perform a search."}),"\n",(0,r.jsxs)(s.p,{children:["You may only search for a Variable that has an index specified on it. This may be done\nvia th ",(0,r.jsx)(s.code,{children:".searchable()"})," method on our SDK's."]}),"\n",(0,r.jsx)(s.p,{children:"Note that we do not yet support searching JSON_OBJ or JSON_ARR fields, but you may\nstill mark those fields as searchable. We will soon add the ability to query those\nfields via the indices."}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Field"}),(0,r.jsx)(s.th,{children:"Label"}),(0,r.jsx)(s.th,{children:"Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsxs)(s.tbody,{children:[(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"bookmark"})}),(0,r.jsx)(s.td,{children:"optional"}),(0,r.jsx)(s.td,{children:"bytes"}),(0,r.jsx)(s.td,{children:"Bookmark for cursor-based pagination; pass if applicable."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"limit"})}),(0,r.jsx)(s.td,{children:"optional"}),(0,r.jsx)(s.td,{children:"int32"}),(0,r.jsx)(s.td,{children:"Maximum results to return in one request."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"value"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#variablevalue",children:"VariableValue"})}),(0,r.jsx)(s.td,{children:"Specifies the value that the variable must be. Exact match is required."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"wf_spec_major_version"})}),(0,r.jsx)(s.td,{children:"optional"}),(0,r.jsx)(s.td,{children:"int32"}),(0,r.jsx)(s.td,{children:"Specifies major version of the WfSpec for the associated WfRun."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"wf_spec_revision"})}),(0,r.jsx)(s.td,{children:"optional"}),(0,r.jsx)(s.td,{children:"int32"}),(0,r.jsx)(s.td,{children:"Specifies the revision of the WfSpec for the associated WfRun."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"var_name"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:"string"}),(0,r.jsx)(s.td,{children:"Specifies the name of the variable to search for. This is required."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"wf_spec_name"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:"string"}),(0,r.jsx)(s.td,{children:"Specifies the name of the WfSpec for the associated WfRun's. This is required."})]})]})]}),"\n",(0,r.jsxs)(s.h3,{id:"searchwfrunrequest",children:["Message ",(0,r.jsx)(s.code,{children:"SearchWfRunRequest"})]}),"\n",(0,r.jsx)(s.p,{children:"A request used to retrieve a list of WfRunId's by certain criteria."}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Field"}),(0,r.jsx)(s.th,{children:"Label"}),(0,r.jsx)(s.th,{children:"Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsxs)(s.tbody,{children:[(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"bookmark"})}),(0,r.jsx)(s.td,{children:"optional"}),(0,r.jsx)(s.td,{children:"bytes"}),(0,r.jsx)(s.td,{children:"Bookmark for cursor-based pagination; pass if applicable."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"limit"})}),(0,r.jsx)(s.td,{children:"optional"}),(0,r.jsx)(s.td,{children:"int32"}),(0,r.jsx)(s.td,{children:"Maximum results to return in one request."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"wf_spec_name"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:"string"}),(0,r.jsx)(s.td,{children:"The WfSpec whose WfRun's we are searching for. This is required."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"wf_spec_major_version"})}),(0,r.jsx)(s.td,{children:"optional"}),(0,r.jsx)(s.td,{children:"int32"}),(0,r.jsx)(s.td,{children:"Specifies to return only WfRun's from this WfSpec Major Version."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"wf_spec_revision"})}),(0,r.jsx)(s.td,{children:"optional"}),(0,r.jsx)(s.td,{children:"int32"}),(0,r.jsx)(s.td,{children:"Specifies to return only WfRun's from this WfSpec Revision. Can only be set if wf_spec_major_version is also set."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"status"})}),(0,r.jsx)(s.td,{children:"optional"}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#lhstatus",children:"LHStatus"})}),(0,r.jsx)(s.td,{children:"Specifies to return only WfRun's matching this status."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"earliest_start"})}),(0,r.jsx)(s.td,{children:"optional"}),(0,r.jsx)(s.td,{children:"google.protobuf.Timestamp"}),(0,r.jsx)(s.td,{children:"Specifies to return only WfRun's that started after this time"})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"latest_start"})}),(0,r.jsx)(s.td,{children:"optional"}),(0,r.jsx)(s.td,{children:"google.protobuf.Timestamp"}),(0,r.jsx)(s.td,{children:"Specifies to return only WfRun's that started before this time"})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"variable_filters"})}),(0,r.jsx)(s.td,{children:"repeated"}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#variablematch",children:"VariableMatch"})}),(0,r.jsx)(s.td,{children:"Allows filtering WfRun's based on the value of the Variables. This ONLY works for the Variables in the entrypiont threadrun (that is, variables where the threadRunNumber == 0)."})]})]})]}),"\n",(0,r.jsxs)(s.h3,{id:"searchwfspecrequest",children:["Message ",(0,r.jsx)(s.code,{children:"SearchWfSpecRequest"})]}),"\n",(0,r.jsx)(s.p,{children:"Search for WfSpec's."}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Field"}),(0,r.jsx)(s.th,{children:"Label"}),(0,r.jsx)(s.th,{children:"Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsxs)(s.tbody,{children:[(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"bookmark"})}),(0,r.jsx)(s.td,{children:"optional"}),(0,r.jsx)(s.td,{children:"bytes"}),(0,r.jsx)(s.td,{children:"Bookmark for cursor-based pagination; pass if applicable."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"limit"})}),(0,r.jsx)(s.td,{children:"optional"}),(0,r.jsx)(s.td,{children:"int32"}),(0,r.jsx)(s.td,{children:"Maximum results to return in one request."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"name"})}),(0,r.jsxs)(s.td,{children:["oneof ",(0,r.jsx)(s.code,{children:"wf_spec_criteria"})]}),(0,r.jsx)(s.td,{children:"string"}),(0,r.jsx)(s.td,{children:"Return WfSpec's with a specific name."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"prefix"})}),(0,r.jsxs)(s.td,{children:["oneof ",(0,r.jsx)(s.code,{children:"wf_spec_criteria"})]}),(0,r.jsx)(s.td,{children:"string"}),(0,r.jsx)(s.td,{children:"Return WfSpec's with a specific prefix."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"task_def_name"})}),(0,r.jsxs)(s.td,{children:["oneof ",(0,r.jsx)(s.code,{children:"wf_spec_criteria"})]}),(0,r.jsx)(s.td,{children:"string"}),(0,r.jsx)(s.td,{children:"Return all WfSpec's that make use of a given TaskDef."})]})]})]}),"\n",(0,r.jsxs)(s.h3,{id:"serverversionresponse",children:["Message ",(0,r.jsx)(s.code,{children:"ServerVersionResponse"})]}),"\n",(0,r.jsx)(s.p,{children:"The version of the LH Server according to Semantic Versioning"}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Field"}),(0,r.jsx)(s.th,{children:"Label"}),(0,r.jsx)(s.th,{children:"Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsxs)(s.tbody,{children:[(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"major_version"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:"int32"}),(0,r.jsx)(s.td,{children:"Server Major Version"})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"minor_version"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:"int32"}),(0,r.jsx)(s.td,{children:"Server Minor Version"})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"patch_version"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:"int32"}),(0,r.jsx)(s.td,{children:"Server Patch Version"})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"pre_release_identifier"})}),(0,r.jsx)(s.td,{children:"optional"}),(0,r.jsx)(s.td,{children:"string"}),(0,r.jsx)(s.td,{children:"Prerelease Identifier. If this is set, then the server is NOT a production release but rather a release candidate or experimental pre-release."})]})]})]}),"\n",(0,r.jsxs)(s.h3,{id:"stopwfrunrequest",children:["Message ",(0,r.jsx)(s.code,{children:"StopWfRunRequest"})]}),"\n",(0,r.jsx)(s.p,{children:"Message to HALT a WfRun."}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Field"}),(0,r.jsx)(s.th,{children:"Label"}),(0,r.jsx)(s.th,{children:"Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsxs)(s.tbody,{children:[(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"wf_run_id"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#wfrunid",children:"WfRunId"})}),(0,r.jsx)(s.td,{children:"Is the WfRunId"})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"thread_run_number"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:"int32"}),(0,r.jsxs)(s.td,{children:["The number of the ThreadRun to halt. Note that halting the entrypoint ThreadRun (which always has number ",(0,r.jsx)(s.code,{children:"0"}),") causes the whole WfRun to halt. If you do not manually set the thread_run_number field, it defaults to zero, so stopping the entire WfRun is the default behavior."]})]})]})]}),"\n",(0,r.jsxs)(s.h3,{id:"taskdefidlist",children:["Message ",(0,r.jsx)(s.code,{children:"TaskDefIdList"})]}),"\n",(0,r.jsx)(s.p,{children:"List of TaskDef Id's."}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Field"}),(0,r.jsx)(s.th,{children:"Label"}),(0,r.jsx)(s.th,{children:"Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsxs)(s.tbody,{children:[(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"results"})}),(0,r.jsx)(s.td,{children:"repeated"}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#taskdefid",children:"TaskDefId"})}),(0,r.jsx)(s.td,{children:"The resulting object id's."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"bookmark"})}),(0,r.jsx)(s.td,{children:"optional"}),(0,r.jsx)(s.td,{children:"bytes"}),(0,r.jsx)(s.td,{children:"The bookmark can be used for cursor-based pagination. If it is null, the server has returned all results. If it is set, you can pass it into your next request to resume searching where your previous request left off."})]})]})]}),"\n",(0,r.jsxs)(s.h3,{id:"taskdefmetrics",children:["Message ",(0,r.jsx)(s.code,{children:"TaskDefMetrics"})]}),"\n",(0,r.jsx)(s.p,{children:"Metrics for a TaskDef in a certain time period."}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Field"}),(0,r.jsx)(s.th,{children:"Label"}),(0,r.jsx)(s.th,{children:"Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsxs)(s.tbody,{children:[(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"task_def_id"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#taskdefid",children:"TaskDefId"})}),(0,r.jsx)(s.td,{children:"TaskDef that the metrics apply to."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"window_start"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:"google.protobuf.Timestamp"}),(0,r.jsx)(s.td,{children:"When the window started."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"type"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#metricswindowlength",children:"MetricsWindowLength"})}),(0,r.jsx)(s.td,{children:"Length of the window."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"schedule_to_start_max"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:"int64"}),(0,r.jsx)(s.td,{children:"Longest time that a TaskRun was in the TASK_SCHEDULED state"})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"schedule_to_start_avg"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:"int64"}),(0,r.jsx)(s.td,{children:"Average time that a TaskRun was in the TASK_SCHEDULED state"})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"start_to_complete_max"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:"int64"}),(0,r.jsx)(s.td,{children:"Longest time between a TaskRun being started and completed"})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"start_to_complete_avg"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:"int64"}),(0,r.jsx)(s.td,{children:"Average time between a TaskRun being started and completed"})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"total_completed"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:"int64"}),(0,r.jsx)(s.td,{children:"Total number of TaskRun's that reached the TASK_SUCCESS state"})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"total_errored"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:"int64"}),(0,r.jsx)(s.td,{children:"Total number of TaskRun's that reached the TASK_ERROR state"})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"total_started"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:"int64"}),(0,r.jsx)(s.td,{children:"Total number of TaskRun's that transitioned to the TASK_RUNNING state"})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"total_scheduled"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:"int64"}),(0,r.jsx)(s.td,{children:"Total number of TaskRun's that were scheduled"})]})]})]}),"\n",(0,r.jsxs)(s.h3,{id:"taskdefmetricsqueryrequest",children:["Message ",(0,r.jsx)(s.code,{children:"TaskDefMetricsQueryRequest"})]}),"\n",(0,r.jsx)(s.p,{children:"Query to retrieve a specific TaskDef Metrics Window."}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Field"}),(0,r.jsx)(s.th,{children:"Label"}),(0,r.jsx)(s.th,{children:"Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsxs)(s.tbody,{children:[(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"window_start"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:"google.protobuf.Timestamp"}),(0,r.jsxs)(s.td,{children:["Return the window ",(0,r.jsx)(s.em,{children:"containing"})," this timestamp. The window start is not guaranteed to align perfectly with the request."]})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"window_type"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#metricswindowlength",children:"MetricsWindowLength"})}),(0,r.jsx)(s.td,{children:"The window size"})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"task_def_name"})}),(0,r.jsx)(s.td,{children:"optional"}),(0,r.jsx)(s.td,{children:"string"}),(0,r.jsx)(s.td,{children:"The name of the specific TaskDef for which we are calculating metrics."})]})]})]}),"\n",(0,r.jsxs)(s.h3,{id:"taskrunidlist",children:["Message ",(0,r.jsx)(s.code,{children:"TaskRunIdList"})]}),"\n",(0,r.jsx)(s.p,{children:"List of TaskRun ID's."}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Field"}),(0,r.jsx)(s.th,{children:"Label"}),(0,r.jsx)(s.th,{children:"Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsxs)(s.tbody,{children:[(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"results"})}),(0,r.jsx)(s.td,{children:"repeated"}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#taskrunid",children:"TaskRunId"})}),(0,r.jsx)(s.td,{children:"The resulting object id's."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"bookmark"})}),(0,r.jsx)(s.td,{children:"optional"}),(0,r.jsx)(s.td,{children:"bytes"}),(0,r.jsx)(s.td,{children:"The bookmark can be used for cursor-based pagination. If it is null, the server has returned all results. If it is set, you can pass it into your next request to resume searching where your previous request left off."})]})]})]}),"\n",(0,r.jsxs)(s.h3,{id:"taskrunlist",children:["Message ",(0,r.jsx)(s.code,{children:"TaskRunList"})]}),"\n",(0,r.jsx)(s.p,{children:"A list of TaskRun's"}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Field"}),(0,r.jsx)(s.th,{children:"Label"}),(0,r.jsx)(s.th,{children:"Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsx)(s.tbody,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"results"})}),(0,r.jsx)(s.td,{children:"repeated"}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#taskrun",children:"TaskRun"})}),(0,r.jsx)(s.td,{children:"A list of TaskRun Objects"})]})})]}),"\n",(0,r.jsxs)(s.h3,{id:"taskworkergroup",children:["Message ",(0,r.jsx)(s.code,{children:"TaskWorkerGroup"})]}),"\n",(0,r.jsx)(s.p,{children:"Describes all workers registered for a specific TaskDef."}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Field"}),(0,r.jsx)(s.th,{children:"Label"}),(0,r.jsx)(s.th,{children:"Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsxs)(s.tbody,{children:[(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"id"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#taskworkergroupid",children:"TaskWorkerGroupId"})}),(0,r.jsx)(s.td,{children:"Identifier for the group."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"created_at"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:"google.protobuf.Timestamp"}),(0,r.jsx)(s.td,{children:"Timestamp indicating when the worker group was initially registered."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"task_workers"})}),(0,r.jsx)(s.td,{children:"map"}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#taskworkergrouptaskworkersentry",children:"TaskWorkerGroup.TaskWorkersEntry"})}),(0,r.jsx)(s.td,{children:"Metadata grouped by ClientId string."})]})]})]}),"\n",(0,r.jsxs)(s.h3,{id:"taskworkergrouptaskworkersentry",children:["Message ",(0,r.jsx)(s.code,{children:"TaskWorkerGroup.TaskWorkersEntry"})]}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Field"}),(0,r.jsx)(s.th,{children:"Label"}),(0,r.jsx)(s.th,{children:"Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsxs)(s.tbody,{children:[(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"key"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:"string"}),(0,r.jsx)(s.td,{})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"value"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#taskworkermetadata",children:"TaskWorkerMetadata"})}),(0,r.jsx)(s.td,{})]})]})]}),"\n",(0,r.jsxs)(s.h3,{id:"taskworkerheartbeatrequest",children:["Message ",(0,r.jsx)(s.code,{children:"TaskWorkerHeartBeatRequest"})]}),"\n",(0,r.jsx)(s.p,{children:"Message used by Task Worker to register itself to the server and ask for assignments of\nservers to poll."}),"\n",(0,r.jsx)(s.p,{children:"Used by the Task Worker SDK; generally, you shouldn't have to touch this manually."}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Field"}),(0,r.jsx)(s.th,{children:"Label"}),(0,r.jsx)(s.th,{children:"Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsxs)(s.tbody,{children:[(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"client_id"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:"string"}),(0,r.jsx)(s.td,{})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"task_def_id"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#taskdefid",children:"TaskDefId"})}),(0,r.jsx)(s.td,{})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"listener_name"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:"string"}),(0,r.jsx)(s.td,{})]})]})]}),"\n",(0,r.jsxs)(s.h3,{id:"taskworkermetadata",children:["Message ",(0,r.jsx)(s.code,{children:"TaskWorkerMetadata"})]}),"\n",(0,r.jsx)(s.p,{children:"Describes a specific task worker"}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Field"}),(0,r.jsx)(s.th,{children:"Label"}),(0,r.jsx)(s.th,{children:"Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsxs)(s.tbody,{children:[(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"task_worker_id"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:"string"}),(0,r.jsx)(s.td,{children:"User-defined identifier for the worker."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"latest_heartbeat"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:"google.protobuf.Timestamp"}),(0,r.jsx)(s.td,{children:"Timestamp indicating the last heartbeat sent by the worker."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"hosts"})}),(0,r.jsx)(s.td,{children:"repeated"}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#lhhostinfo",children:"LHHostInfo"})}),(0,r.jsx)(s.td,{children:"The host(s) where the worker is polling tasks"})]})]})]}),"\n",(0,r.jsxs)(s.h3,{id:"tenantidlist",children:["Message ",(0,r.jsx)(s.code,{children:"TenantIdList"})]}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Field"}),(0,r.jsx)(s.th,{children:"Label"}),(0,r.jsx)(s.th,{children:"Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsxs)(s.tbody,{children:[(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"results"})}),(0,r.jsx)(s.td,{children:"repeated"}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#tenantid",children:"TenantId"})}),(0,r.jsx)(s.td,{children:"The resulting object id's."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"bookmark"})}),(0,r.jsx)(s.td,{children:"optional"}),(0,r.jsx)(s.td,{children:"bytes"}),(0,r.jsx)(s.td,{children:"Bookmark for cursor-based pagination; pass if applicable."})]})]})]}),"\n",(0,r.jsxs)(s.h3,{id:"usertaskdefidlist",children:["Message ",(0,r.jsx)(s.code,{children:"UserTaskDefIdList"})]}),"\n",(0,r.jsx)(s.p,{children:"List of UserTaskDef Id's."}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Field"}),(0,r.jsx)(s.th,{children:"Label"}),(0,r.jsx)(s.th,{children:"Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsxs)(s.tbody,{children:[(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"results"})}),(0,r.jsx)(s.td,{children:"repeated"}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#usertaskdefid",children:"UserTaskDefId"})}),(0,r.jsx)(s.td,{children:"The resulting object id's."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"bookmark"})}),(0,r.jsx)(s.td,{children:"optional"}),(0,r.jsx)(s.td,{children:"bytes"}),(0,r.jsx)(s.td,{children:"The bookmark can be used for cursor-based pagination. If it is null, the server has returned all results. If it is set, you can pass it into your next request to resume searching where your previous request left off."})]})]})]}),"\n",(0,r.jsxs)(s.h3,{id:"usertaskrunidlist",children:["Message ",(0,r.jsx)(s.code,{children:"UserTaskRunIdList"})]}),"\n",(0,r.jsx)(s.p,{children:"A list of UserTaskRun Id's"}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Field"}),(0,r.jsx)(s.th,{children:"Label"}),(0,r.jsx)(s.th,{children:"Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsxs)(s.tbody,{children:[(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"results"})}),(0,r.jsx)(s.td,{children:"repeated"}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#usertaskrunid",children:"UserTaskRunId"})}),(0,r.jsx)(s.td,{children:"The resulting object id's."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"bookmark"})}),(0,r.jsx)(s.td,{children:"optional"}),(0,r.jsx)(s.td,{children:"bytes"}),(0,r.jsx)(s.td,{children:"The bookmark can be used for cursor-based pagination. If it is null, the server has returned all results. If it is set, you can pass it into your next request to resume searching where your previous request left off."})]})]})]}),"\n",(0,r.jsxs)(s.h3,{id:"usertaskrunlist",children:["Message ",(0,r.jsx)(s.code,{children:"UserTaskRunList"})]}),"\n",(0,r.jsx)(s.p,{children:"List of UserTaskRuns"}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Field"}),(0,r.jsx)(s.th,{children:"Label"}),(0,r.jsx)(s.th,{children:"Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsx)(s.tbody,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"results"})}),(0,r.jsx)(s.td,{children:"repeated"}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#usertaskrun",children:"UserTaskRun"})}),(0,r.jsx)(s.td,{children:"A list of UserTaskRun Objects"})]})})]}),"\n",(0,r.jsxs)(s.h3,{id:"variableidlist",children:["Message ",(0,r.jsx)(s.code,{children:"VariableIdList"})]}),"\n",(0,r.jsx)(s.p,{children:"This is a list of Variable ID's."}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Field"}),(0,r.jsx)(s.th,{children:"Label"}),(0,r.jsx)(s.th,{children:"Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsxs)(s.tbody,{children:[(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"results"})}),(0,r.jsx)(s.td,{children:"repeated"}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#variableid",children:"VariableId"})}),(0,r.jsx)(s.td,{children:"The resulting object id's."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"bookmark"})}),(0,r.jsx)(s.td,{children:"optional"}),(0,r.jsx)(s.td,{children:"bytes"}),(0,r.jsx)(s.td,{children:"The bookmark can be used for cursor-based pagination. If it is null, the server has returned all results. If it is set, you can pass it into your next request to resume searching where your previous request left off."})]})]})]}),"\n",(0,r.jsxs)(s.h3,{id:"variablelist",children:["Message ",(0,r.jsx)(s.code,{children:"VariableList"})]}),"\n",(0,r.jsx)(s.p,{children:"A list of Variables."}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Field"}),(0,r.jsx)(s.th,{children:"Label"}),(0,r.jsx)(s.th,{children:"Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsx)(s.tbody,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"results"})}),(0,r.jsx)(s.td,{children:"repeated"}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#variable",children:"Variable"})}),(0,r.jsx)(s.td,{children:"A list of Variable objects."})]})})]}),"\n",(0,r.jsxs)(s.h3,{id:"variablematch",children:["Message ",(0,r.jsx)(s.code,{children:"VariableMatch"})]}),"\n",(0,r.jsx)(s.p,{children:"Used by a SearchWfRunRequest to filter WfRun's and only return those whose Variable's\nmatch a certain filter."}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Field"}),(0,r.jsx)(s.th,{children:"Label"}),(0,r.jsx)(s.th,{children:"Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsxs)(s.tbody,{children:[(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"var_name"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:"string"}),(0,r.jsx)(s.td,{children:"The name of the variable to inspect."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"value"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#variablevalue",children:"VariableValue"})}),(0,r.jsx)(s.td,{children:"The value that the Variable must have in order to satisfy this VariableMatch"})]})]})]}),"\n",(0,r.jsxs)(s.h3,{id:"wfrunidlist",children:["Message ",(0,r.jsx)(s.code,{children:"WfRunIdList"})]}),"\n",(0,r.jsx)(s.p,{children:"List of WfRun Id's"}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Field"}),(0,r.jsx)(s.th,{children:"Label"}),(0,r.jsx)(s.th,{children:"Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsxs)(s.tbody,{children:[(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"results"})}),(0,r.jsx)(s.td,{children:"repeated"}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#wfrunid",children:"WfRunId"})}),(0,r.jsx)(s.td,{children:"The resulting object id's."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"bookmark"})}),(0,r.jsx)(s.td,{children:"optional"}),(0,r.jsx)(s.td,{children:"bytes"}),(0,r.jsx)(s.td,{children:"The bookmark can be used for cursor-based pagination. If it is null, the server has returned all results. If it is set, you can pass it into your next request to resume searching where your previous request left off."})]})]})]}),"\n",(0,r.jsxs)(s.h3,{id:"wfspecidlist",children:["Message ",(0,r.jsx)(s.code,{children:"WfSpecIdList"})]}),"\n",(0,r.jsx)(s.p,{children:"List of WfSpec Id's."}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Field"}),(0,r.jsx)(s.th,{children:"Label"}),(0,r.jsx)(s.th,{children:"Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsxs)(s.tbody,{children:[(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"results"})}),(0,r.jsx)(s.td,{children:"repeated"}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#wfspecid",children:"WfSpecId"})}),(0,r.jsx)(s.td,{children:"The resulting object id's."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"bookmark"})}),(0,r.jsx)(s.td,{children:"optional"}),(0,r.jsx)(s.td,{children:"bytes"}),(0,r.jsx)(s.td,{children:"The bookmark can be used for cursor-based pagination. If it is null, the server has returned all results. If it is set, you can pass it into your next request to resume searching where your previous request left off."})]})]})]}),"\n",(0,r.jsxs)(s.h3,{id:"wfspecmetrics",children:["Message ",(0,r.jsx)(s.code,{children:"WfSpecMetrics"})]}),"\n",(0,r.jsx)(s.p,{children:"Metrics for a WfSpec in a specific time window"}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Field"}),(0,r.jsx)(s.th,{children:"Label"}),(0,r.jsx)(s.th,{children:"Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsxs)(s.tbody,{children:[(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"wf_spec_id"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#wfspecid",children:"WfSpecId"})}),(0,r.jsx)(s.td,{children:"The WfSpecId that these metrics analyze"})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"window_start"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:"google.protobuf.Timestamp"}),(0,r.jsx)(s.td,{children:"The time that the window started"})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"type"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#metricswindowlength",children:"MetricsWindowLength"})}),(0,r.jsx)(s.td,{children:"The length of the window"})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"total_started"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:"int64"}),(0,r.jsx)(s.td,{children:"Total number of WfRun's created for this WfSpec"})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"total_completed"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:"int64"}),(0,r.jsx)(s.td,{children:"Total number of WfRun's that reached the COMPLETED state"})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"total_errored"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:"int64"}),(0,r.jsx)(s.td,{children:"Total number of WfRun's that reached the ERROR state"})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"start_to_complete_max"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:"int64"}),(0,r.jsx)(s.td,{children:"Longest time between a WfRun being started and reaching the COMPLETED state"})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"start_to_complete_avg"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:"int64"}),(0,r.jsx)(s.td,{children:"Average time that a WfRun took to reach the COMPLETED state"})]})]})]}),"\n",(0,r.jsxs)(s.h3,{id:"wfspecmetricsqueryrequest",children:["Message ",(0,r.jsx)(s.code,{children:"WfSpecMetricsQueryRequest"})]}),"\n",(0,r.jsx)(s.p,{children:"Query to retrieve a specific WfSpec Metrics Window."}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Field"}),(0,r.jsx)(s.th,{children:"Label"}),(0,r.jsx)(s.th,{children:"Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsxs)(s.tbody,{children:[(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"wf_spec_id"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#wfspecid",children:"WfSpecId"})}),(0,r.jsx)(s.td,{children:"WfSpecId of metrics to get."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"window_start"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:"google.protobuf.Timestamp"}),(0,r.jsxs)(s.td,{children:["Return the window ",(0,r.jsx)(s.em,{children:"containing"})," this timestamp. The window start is not guaranteed to align perfectly with the request."]})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"window_length"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#metricswindowlength",children:"MetricsWindowLength"})}),(0,r.jsx)(s.td,{children:"The window size"})]})]})]}),"\n",(0,r.jsxs)(s.h3,{id:"taskdef",children:["Message ",(0,r.jsx)(s.code,{children:"TaskDef"})]}),"\n",(0,r.jsx)(s.p,{children:"A TaskDef defines a blueprint for a TaskRun that can be dispatched to Task Workers."}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Field"}),(0,r.jsx)(s.th,{children:"Label"}),(0,r.jsx)(s.th,{children:"Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsxs)(s.tbody,{children:[(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"id"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#taskdefid",children:"TaskDefId"})}),(0,r.jsx)(s.td,{children:"The ID of this TaskDef."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"input_vars"})}),(0,r.jsx)(s.td,{children:"repeated"}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#variabledef",children:"VariableDef"})}),(0,r.jsx)(s.td,{children:"The input variables required to execute this TaskDef."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"created_at"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:"google.protobuf.Timestamp"}),(0,r.jsx)(s.td,{children:"The time at which this TaskDef was created."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"schema_output"})}),(0,r.jsx)(s.td,{children:"optional"}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#taskdefoutputschema",children:"TaskDefOutputSchema"})}),(0,r.jsx)(s.td,{children:"Schema that validates the TaskDef's output"})]})]})]}),"\n",(0,r.jsxs)(s.h3,{id:"taskdefoutputschema",children:["Message ",(0,r.jsx)(s.code,{children:"TaskDefOutputSchema"})]}),"\n",(0,r.jsx)(s.p,{children:"Schema that validates the TaskDef's output"}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Field"}),(0,r.jsx)(s.th,{children:"Label"}),(0,r.jsx)(s.th,{children:"Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsx)(s.tbody,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"value_def"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#variabledef",children:"VariableDef"})}),(0,r.jsx)(s.td,{children:"The definition for the output content"})]})})]}),"\n",(0,r.jsxs)(s.h3,{id:"lhtaskerror",children:["Message ",(0,r.jsx)(s.code,{children:"LHTaskError"})]}),"\n",(0,r.jsx)(s.p,{children:"Message denoting a TaskRun failed for technical reasons."}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Field"}),(0,r.jsx)(s.th,{children:"Label"}),(0,r.jsx)(s.th,{children:"Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsxs)(s.tbody,{children:[(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"type"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#lherrortype",children:"LHErrorType"})}),(0,r.jsx)(s.td,{children:"The technical error code."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"message"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:"string"}),(0,r.jsx)(s.td,{children:"Human readable message for debugging."})]})]})]}),"\n",(0,r.jsxs)(s.h3,{id:"lhtaskexception",children:["Message ",(0,r.jsx)(s.code,{children:"LHTaskException"})]}),"\n",(0,r.jsx)(s.p,{children:"Message denoting a TaskRun's execution signaled that something went wrong in the\nbusiness process, throwing a littlehorse 'EXCEPTION'."}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Field"}),(0,r.jsx)(s.th,{children:"Label"}),(0,r.jsx)(s.th,{children:"Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsxs)(s.tbody,{children:[(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"name"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:"string"}),(0,r.jsx)(s.td,{children:'The user-defined Failure name, for example, "credit-card-declined"'})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"message"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:"string"}),(0,r.jsx)(s.td,{children:"Human readadble description of the failure."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"content"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#variablevalue",children:"VariableValue"})}),(0,r.jsx)(s.td,{})]})]})]}),"\n",(0,r.jsxs)(s.h3,{id:"taskattempt",children:["Message ",(0,r.jsx)(s.code,{children:"TaskAttempt"})]}),"\n",(0,r.jsx)(s.p,{children:"A single time that a TaskRun was scheduled for execution on a Task Queue."}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Field"}),(0,r.jsx)(s.th,{children:"Label"}),(0,r.jsx)(s.th,{children:"Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsxs)(s.tbody,{children:[(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"log_output"})}),(0,r.jsx)(s.td,{children:"optional"}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#variablevalue",children:"VariableValue"})}),(0,r.jsxs)(s.td,{children:["Optional information provided by the Task Worker SDK for debugging. Usually, if set it contains a stacktrace or it contains information logged via ",(0,r.jsx)(s.code,{children:"WorkerContext#log()"}),"."]})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"schedule_time"})}),(0,r.jsx)(s.td,{children:"optional"}),(0,r.jsx)(s.td,{children:"google.protobuf.Timestamp"}),(0,r.jsx)(s.td,{children:"The time the TaskAttempt was scheduled on the Task Queue. Not set for a TaskAttempt that is in the TASK_PENDING status; for example, when waiting between retries with exponential backoff."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"start_time"})}),(0,r.jsx)(s.td,{children:"optional"}),(0,r.jsx)(s.td,{children:"google.protobuf.Timestamp"}),(0,r.jsx)(s.td,{children:"The time the TaskAttempt was pulled off the queue and sent to a TaskWorker."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"end_time"})}),(0,r.jsx)(s.td,{children:"optional"}),(0,r.jsx)(s.td,{children:"google.protobuf.Timestamp"}),(0,r.jsx)(s.td,{children:"The time the TaskAttempt was finished (either completed, reported as failed, or timed out)"})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"task_worker_id"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:"string"}),(0,r.jsx)(s.td,{children:"EXPERIMENTAL: the ID of the Task Worker who executed this TaskRun."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"task_worker_version"})}),(0,r.jsx)(s.td,{children:"optional"}),(0,r.jsx)(s.td,{children:"string"}),(0,r.jsx)(s.td,{children:"The version of the Task Worker that executed the TaskAttempt."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"status"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#taskstatus",children:"TaskStatus"})}),(0,r.jsx)(s.td,{children:"The status of this TaskAttempt."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"output"})}),(0,r.jsxs)(s.td,{children:["oneof ",(0,r.jsx)(s.code,{children:"result"})]}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#variablevalue",children:"VariableValue"})}),(0,r.jsx)(s.td,{children:"Denotes the Task Function executed properly and returned an output."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"error"})}),(0,r.jsxs)(s.td,{children:["oneof ",(0,r.jsx)(s.code,{children:"result"})]}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#lhtaskerror",children:"LHTaskError"})}),(0,r.jsx)(s.td,{children:"An unexpected technical error was encountered. May or may not be retriable."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"exception"})}),(0,r.jsxs)(s.td,{children:["oneof ",(0,r.jsx)(s.code,{children:"result"})]}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#lhtaskexception",children:"LHTaskException"})}),(0,r.jsx)(s.td,{children:"The Task Function encountered a business problem and threw a technical exception."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"masked_value"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:"bool"}),(0,r.jsx)(s.td,{children:"Indicates whether the result of the attempt field has been masked"})]})]})]}),"\n",(0,r.jsxs)(s.h3,{id:"tasknodereference",children:["Message ",(0,r.jsx)(s.code,{children:"TaskNodeReference"})]}),"\n",(0,r.jsx)(s.p,{children:"Reference to a NodeRun of type TASK which caused a TaskRun to be scheduled."}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Field"}),(0,r.jsx)(s.th,{children:"Label"}),(0,r.jsx)(s.th,{children:"Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsx)(s.tbody,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"node_run_id"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#noderunid",children:"NodeRunId"})}),(0,r.jsx)(s.td,{children:"The ID of the NodeRun which caused this TASK to be scheduled."})]})})]}),"\n",(0,r.jsxs)(s.h3,{id:"taskrun",children:["Message ",(0,r.jsx)(s.code,{children:"TaskRun"})]}),"\n",(0,r.jsx)(s.p,{children:"A TaskRun resents a single instance of a TaskDef being executed."}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Field"}),(0,r.jsx)(s.th,{children:"Label"}),(0,r.jsx)(s.th,{children:"Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsxs)(s.tbody,{children:[(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"id"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#taskrunid",children:"TaskRunId"})}),(0,r.jsx)(s.td,{children:"The ID of the TaskRun. Note that the TaskRunId contains the WfRunId."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"task_def_id"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#taskdefid",children:"TaskDefId"})}),(0,r.jsx)(s.td,{children:"The ID of the TaskDef being executed."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"attempts"})}),(0,r.jsx)(s.td,{children:"repeated"}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#taskattempt",children:"TaskAttempt"})}),(0,r.jsx)(s.td,{children:"All attempts scheduled for this TaskRun. A TaskAttempt represents an occurrence of the TaskRun being put on a Task Queue to be executed by the Task Workers."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"input_variables"})}),(0,r.jsx)(s.td,{children:"repeated"}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#varnameandval",children:"VarNameAndVal"})}),(0,r.jsx)(s.td,{children:"The input variables to pass into this TaskRun. Note that this is a list and not a map, because ordering matters. Depending on the language implementation, not every LittleHorse Task Worker SDK has the ability to determine the names of the variables from the method signature, so we provide both names and ordering."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"source"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#taskrunsource",children:"TaskRunSource"})}),(0,r.jsx)(s.td,{children:"The source (in the WfRun) that caused this TaskRun to be created. Currently, this can be either a TASK node, or a User Task Action Task Trigger in a USER_TASK node (such as a task used to send reminders)."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"scheduled_at"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:"google.protobuf.Timestamp"}),(0,r.jsx)(s.td,{children:"When the TaskRun was scheduled."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"status"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#taskstatus",children:"TaskStatus"})}),(0,r.jsx)(s.td,{children:"The status of the TaskRun."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"timeout_seconds"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:"int32"}),(0,r.jsx)(s.td,{children:"The timeout before LH considers a TaskAttempt to be timed out."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"total_attempts"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:"int32"}),(0,r.jsx)(s.td,{children:"The maximum number of attempts that may be scheduled for this TaskRun. NOTE: setting total_attempts to 1 means that there are no retries."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"exponential_backoff"})}),(0,r.jsx)(s.td,{children:"optional"}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#exponentialbackoffretrypolicy",children:"ExponentialBackoffRetryPolicy"})}),(0,r.jsx)(s.td,{children:"Optional backoff policy ."})]})]})]}),"\n",(0,r.jsxs)(s.h3,{id:"taskrunsource",children:["Message ",(0,r.jsx)(s.code,{children:"TaskRunSource"})]}),"\n",(0,r.jsx)(s.p,{children:"The source of a TaskRun; i.e. why it was scheduled."}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Field"}),(0,r.jsx)(s.th,{children:"Label"}),(0,r.jsx)(s.th,{children:"Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsxs)(s.tbody,{children:[(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"task_node"})}),(0,r.jsxs)(s.td,{children:["oneof ",(0,r.jsx)(s.code,{children:"task_run_source"})]}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#tasknodereference",children:"TaskNodeReference"})}),(0,r.jsx)(s.td,{children:"Reference to a NodeRun of type TASK which scheduled this TaskRun."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"user_task_trigger"})}),(0,r.jsxs)(s.td,{children:["oneof ",(0,r.jsx)(s.code,{children:"task_run_source"})]}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#usertasktriggerreference",children:"UserTaskTriggerReference"})}),(0,r.jsx)(s.td,{children:"Reference to the specific UserTaskRun trigger action which scheduled this TaskRun"})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"wf_spec_id"})}),(0,r.jsx)(s.td,{children:"optional"}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#wfspecid",children:"WfSpecId"})}),(0,r.jsx)(s.td,{children:"The ID of the WfSpec that is being executed. Always set in ScheduledTask.source so that the WorkerContext can know this information."})]})]})]}),"\n",(0,r.jsxs)(s.h3,{id:"varnameandval",children:["Message ",(0,r.jsx)(s.code,{children:"VarNameAndVal"})]}),"\n",(0,r.jsx)(s.p,{children:"A key-value pair of variable name and value."}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Field"}),(0,r.jsx)(s.th,{children:"Label"}),(0,r.jsx)(s.th,{children:"Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsxs)(s.tbody,{children:[(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"var_name"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:"string"}),(0,r.jsx)(s.td,{children:"The variable name."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"value"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#variablevalue",children:"VariableValue"})}),(0,r.jsx)(s.td,{children:"The value of the variable for this TaskRun."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"masked"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:"bool"}),(0,r.jsxs)(s.td,{children:["Indicates whether the content of the ",(0,r.jsx)(s.code,{children:"value"})," field has been masked"]})]})]})]}),"\n",(0,r.jsxs)(s.h3,{id:"assignusertaskrunrequest",children:["Message ",(0,r.jsx)(s.code,{children:"AssignUserTaskRunRequest"})]}),"\n",(0,r.jsx)(s.p,{children:"Re-Assigns a UserTaskRun to a specific userId or userGroup."}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Field"}),(0,r.jsx)(s.th,{children:"Label"}),(0,r.jsx)(s.th,{children:"Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsxs)(s.tbody,{children:[(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"user_task_run_id"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#usertaskrunid",children:"UserTaskRunId"})}),(0,r.jsx)(s.td,{children:"The UserTaskRun to assign to a new user_id or user_group."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"override_claim"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:"bool"}),(0,r.jsx)(s.td,{children:"If override_claim is set to false and the UserTaskRun is already assigned to a user_id, then the request throws a FAILED_PRECONDITION error. If set to true, then the old claim is overriden and the UserTaskRun is assigned to the new user."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"user_group"})}),(0,r.jsx)(s.td,{children:"optional"}),(0,r.jsx)(s.td,{children:"string"}),(0,r.jsx)(s.td,{children:"The new user_group to which the UserTaskRun is assigned. If not set, then the user_group of the UserTaskRun is actively unset by this request. At least one of the user_group and user_id must be set."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"user_id"})}),(0,r.jsx)(s.td,{children:"optional"}),(0,r.jsx)(s.td,{children:"string"}),(0,r.jsx)(s.td,{children:"The new user_id to which the UserTaskRun is assigned. If not set, then the user_id of the UserTaskRun is actively unset by this request. At least one of the user_group and user_id must be set."})]})]})]}),"\n",(0,r.jsxs)(s.h3,{id:"cancelusertaskrunrequest",children:["Message ",(0,r.jsx)(s.code,{children:"CancelUserTaskRunRequest"})]}),"\n",(0,r.jsx)(s.p,{children:"Cancels a UserTaskRun."}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Field"}),(0,r.jsx)(s.th,{children:"Label"}),(0,r.jsx)(s.th,{children:"Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsx)(s.tbody,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"user_task_run_id"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#usertaskrunid",children:"UserTaskRunId"})}),(0,r.jsx)(s.td,{children:"The id of the UserTaskRun to cancel."})]})})]}),"\n",(0,r.jsxs)(s.h3,{id:"completeusertaskrunrequest",children:["Message ",(0,r.jsx)(s.code,{children:"CompleteUserTaskRunRequest"})]}),"\n",(0,r.jsx)(s.p,{children:"Completes a UserTaskRun with provided values."}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Field"}),(0,r.jsx)(s.th,{children:"Label"}),(0,r.jsx)(s.th,{children:"Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsxs)(s.tbody,{children:[(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"user_task_run_id"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#usertaskrunid",children:"UserTaskRunId"})}),(0,r.jsx)(s.td,{children:"The id of UserTaskRun to complete."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"results"})}),(0,r.jsx)(s.td,{children:"map"}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#completeusertaskrunrequestresultsentry",children:"CompleteUserTaskRunRequest.ResultsEntry"})}),(0,r.jsx)(s.td,{children:"A map from UserTaskField.name to a VariableValue containing the results of the user filling out the form."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"user_id"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:"string"}),(0,r.jsx)(s.td,{children:"The ID of the user who executed the task."})]})]})]}),"\n",(0,r.jsxs)(s.h3,{id:"completeusertaskrunrequestresultsentry",children:["Message ",(0,r.jsx)(s.code,{children:"CompleteUserTaskRunRequest.ResultsEntry"})]}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Field"}),(0,r.jsx)(s.th,{children:"Label"}),(0,r.jsx)(s.th,{children:"Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsxs)(s.tbody,{children:[(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"key"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:"string"}),(0,r.jsx)(s.td,{})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"value"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#variablevalue",children:"VariableValue"})}),(0,r.jsx)(s.td,{})]})]})]}),"\n",(0,r.jsxs)(s.h3,{id:"saveusertaskrunprogressrequest",children:["Message ",(0,r.jsx)(s.code,{children:"SaveUserTaskRunProgressRequest"})]}),"\n",(0,r.jsxs)(s.p,{children:["Saves the results of a UserTaskRun and logs who saved the content.",(0,r.jsx)("br",{})]}),"\n",(0,r.jsxs)("li",{children:[" Throws FAILED_PRECONDITION if the UserTaskRun is in the ",(0,r.jsx)(s.code,{children:"DONE"})," or ",(0,r.jsx)(s.code,{children:"CANCELLED"})," state."]}),"\n",(0,r.jsxs)("li",{children:[" If ",(0,r.jsx)(s.code,{children:"policy"})," is set to ",(0,r.jsx)(s.code,{children:"FAIL_IF_CLAIMED_BY_OTHER"}),", returns ",(0,r.jsx)(s.code,{children:"FAILED_PRECONDITION"})," if the\n",(0,r.jsx)(s.code,{children:"user_id"})," field of the ",(0,r.jsx)(s.code,{children:"UserTaskRun"})," does not match the ",(0,r.jsx)(s.code,{children:"user_id"})," of the request."]}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Field"}),(0,r.jsx)(s.th,{children:"Label"}),(0,r.jsx)(s.th,{children:"Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsxs)(s.tbody,{children:[(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"user_task_run_id"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#usertaskrunid",children:"UserTaskRunId"})}),(0,r.jsx)(s.td,{children:"The id of UserTaskRun to save."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"results"})}),(0,r.jsx)(s.td,{children:"map"}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#saveusertaskrunprogressrequestresultsentry",children:"SaveUserTaskRunProgressRequest.ResultsEntry"})}),(0,r.jsx)(s.td,{children:"A map from UserTaskField.name to a VariableValue containing the results of the user filling out the form."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"user_id"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:"string"}),(0,r.jsx)(s.td,{children:"The ID of the user who saved the task."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"policy"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#saveusertaskrunprogressrequestsaveusertaskrunassignmentpolicy",children:"SaveUserTaskRunProgressRequest.SaveUserTaskRunAssignmentPolicy"})}),(0,r.jsxs)(s.td,{children:["Configures how to handle ",(0,r.jsx)(s.code,{children:"UserTaskRun"})," ownership when saving it."]})]})]})]}),"\n",(0,r.jsxs)(s.h3,{id:"saveusertaskrunprogressrequestresultsentry",children:["Message ",(0,r.jsx)(s.code,{children:"SaveUserTaskRunProgressRequest.ResultsEntry"})]}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Field"}),(0,r.jsx)(s.th,{children:"Label"}),(0,r.jsx)(s.th,{children:"Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsxs)(s.tbody,{children:[(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"key"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:"string"}),(0,r.jsx)(s.td,{})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"value"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#variablevalue",children:"VariableValue"})}),(0,r.jsx)(s.td,{})]})]})]}),"\n",(0,r.jsxs)(s.h3,{id:"usertaskdef",children:["Message ",(0,r.jsx)(s.code,{children:"UserTaskDef"})]}),"\n",(0,r.jsx)(s.p,{children:"UserTaskDef is the metadata blueprint for UserTaskRuns."}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Field"}),(0,r.jsx)(s.th,{children:"Label"}),(0,r.jsx)(s.th,{children:"Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsxs)(s.tbody,{children:[(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"name"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:"string"}),(0,r.jsxs)(s.td,{children:["The name of the ",(0,r.jsx)(s.code,{children:"UserTaskDef"})]})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"version"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:"int32"}),(0,r.jsxs)(s.td,{children:["The version of the ",(0,r.jsx)(s.code,{children:"UserTaskDef"}),". Only simple versioning is supported."]})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"description"})}),(0,r.jsx)(s.td,{children:"optional"}),(0,r.jsx)(s.td,{children:"string"}),(0,r.jsx)(s.td,{children:"Metadata field that does not impact WfRun execution. Useful for providing context on the UserTaskRun, for example when displaying it on a general-purpose task manager application."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"fields"})}),(0,r.jsx)(s.td,{children:"repeated"}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#usertaskfield",children:"UserTaskField"})}),(0,r.jsx)(s.td,{children:"These are the fields comprise the User Task. A User Task Manager application, or any application used to complete a UserTaskRun, should inspect these fields and display form entries for each one."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"created_at"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:"google.protobuf.Timestamp"}),(0,r.jsx)(s.td,{children:"The time the UserTaskRun was created."})]})]})]}),"\n",(0,r.jsxs)(s.h3,{id:"usertaskevent",children:["Message ",(0,r.jsx)(s.code,{children:"UserTaskEvent"})]}),"\n",(0,r.jsxs)(s.p,{children:["This is an event stored in the audit log of a ",(0,r.jsx)(s.code,{children:"UserTaskRun"})," purely for observability\npurposes."]}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Field"}),(0,r.jsx)(s.th,{children:"Label"}),(0,r.jsx)(s.th,{children:"Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsxs)(s.tbody,{children:[(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"time"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:"google.protobuf.Timestamp"}),(0,r.jsx)(s.td,{children:"the time the event occurred."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"task_executed"})}),(0,r.jsxs)(s.td,{children:["oneof ",(0,r.jsx)(s.code,{children:"event"})]}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#usertaskeventutetaskexecuted",children:"UserTaskEvent.UTETaskExecuted"})}),(0,r.jsx)(s.td,{children:"Denotes that a TaskRun was scheduled via a trigger."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"assigned"})}),(0,r.jsxs)(s.td,{children:["oneof ",(0,r.jsx)(s.code,{children:"event"})]}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#usertaskeventuteassigned",children:"UserTaskEvent.UTEAssigned"})}),(0,r.jsx)(s.td,{children:"Denotes that the UserTaskRun was assigned."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"cancelled"})}),(0,r.jsxs)(s.td,{children:["oneof ",(0,r.jsx)(s.code,{children:"event"})]}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#usertaskeventutecancelled",children:"UserTaskEvent.UTECancelled"})}),(0,r.jsx)(s.td,{children:"Denotes that the UserTaskRun was cancelled."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"saved"})}),(0,r.jsxs)(s.td,{children:["oneof ",(0,r.jsx)(s.code,{children:"event"})]}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#usertaskeventutesaved",children:"UserTaskEvent.UTESaved"})}),(0,r.jsxs)(s.td,{children:["Denotes that the ",(0,r.jsx)(s.code,{children:"UserTaskRun"})," was saved."]})]})]})]}),"\n",(0,r.jsxs)(s.h3,{id:"usertaskeventuteassigned",children:["Message ",(0,r.jsx)(s.code,{children:"UserTaskEvent.UTEAssigned"})]}),"\n",(0,r.jsx)(s.p,{children:"Message denoting that the UserTaskRun was assigned."}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Field"}),(0,r.jsx)(s.th,{children:"Label"}),(0,r.jsx)(s.th,{children:"Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsxs)(s.tbody,{children:[(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"old_user_id"})}),(0,r.jsx)(s.td,{children:"optional"}),(0,r.jsx)(s.td,{children:"string"}),(0,r.jsx)(s.td,{children:"The user_id before the ownership change, if set."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"old_user_group"})}),(0,r.jsx)(s.td,{children:"optional"}),(0,r.jsx)(s.td,{children:"string"}),(0,r.jsx)(s.td,{children:"The user_group before the ownership change, if set."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"new_user_id"})}),(0,r.jsx)(s.td,{children:"optional"}),(0,r.jsx)(s.td,{children:"string"}),(0,r.jsx)(s.td,{children:"The user_id after the ownership change, if set."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"new_user_group"})}),(0,r.jsx)(s.td,{children:"optional"}),(0,r.jsx)(s.td,{children:"string"}),(0,r.jsx)(s.td,{children:"The user_group after the ownership change, if set."})]})]})]}),"\n",(0,r.jsxs)(s.h3,{id:"usertaskeventutecancelled",children:["Message ",(0,r.jsx)(s.code,{children:"UserTaskEvent.UTECancelled"})]}),"\n",(0,r.jsxs)(s.p,{children:["Empty message used to denote that the ",(0,r.jsx)(s.code,{children:"UserTaskRun"})," was cancelled."]}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Field"}),(0,r.jsx)(s.th,{children:"Label"}),(0,r.jsx)(s.th,{children:"Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsx)(s.tbody,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"message"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:"string"}),(0,r.jsx)(s.td,{})]})})]}),"\n",(0,r.jsxs)(s.h3,{id:"usertaskeventutesaved",children:["Message ",(0,r.jsx)(s.code,{children:"UserTaskEvent.UTESaved"})]}),"\n",(0,r.jsxs)(s.p,{children:["Message to denote that the ",(0,r.jsx)(s.code,{children:"UserTaskRun"})," was saved."]}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Field"}),(0,r.jsx)(s.th,{children:"Label"}),(0,r.jsx)(s.th,{children:"Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsxs)(s.tbody,{children:[(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"user_id"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:"string"}),(0,r.jsx)(s.td,{children:"The user_id of the user who saved the UserTaskRun."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"results"})}),(0,r.jsx)(s.td,{children:"map"}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#usertaskeventutesavedresultsentry",children:"UserTaskEvent.UTESaved.ResultsEntry"})}),(0,r.jsx)(s.td,{children:"The results that were saved."})]})]})]}),"\n",(0,r.jsxs)(s.h3,{id:"usertaskeventutesavedresultsentry",children:["Message ",(0,r.jsx)(s.code,{children:"UserTaskEvent.UTESaved.ResultsEntry"})]}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Field"}),(0,r.jsx)(s.th,{children:"Label"}),(0,r.jsx)(s.th,{children:"Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsxs)(s.tbody,{children:[(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"key"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:"string"}),(0,r.jsx)(s.td,{})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"value"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#variablevalue",children:"VariableValue"})}),(0,r.jsx)(s.td,{})]})]})]}),"\n",(0,r.jsxs)(s.h3,{id:"usertaskeventutetaskexecuted",children:["Message ",(0,r.jsx)(s.code,{children:"UserTaskEvent.UTETaskExecuted"})]}),"\n",(0,r.jsxs)(s.p,{children:["Message to denote that a ",(0,r.jsx)(s.code,{children:"TaskRun"})," was scheduled by a trigger for this UserTaskRun."]}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Field"}),(0,r.jsx)(s.th,{children:"Label"}),(0,r.jsx)(s.th,{children:"Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsx)(s.tbody,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"task_run"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#taskrunid",children:"TaskRunId"})}),(0,r.jsxs)(s.td,{children:["The ",(0,r.jsx)(s.code,{children:"TaskRunId"})," of the scheduled ",(0,r.jsx)(s.code,{children:"TaskRun"})]})]})})]}),"\n",(0,r.jsxs)(s.h3,{id:"usertaskfield",children:["Message ",(0,r.jsx)(s.code,{children:"UserTaskField"})]}),"\n",(0,r.jsx)(s.p,{children:"A UserTaskField is a specific field of data to be entered into a UserTaskRun."}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Field"}),(0,r.jsx)(s.th,{children:"Label"}),(0,r.jsx)(s.th,{children:"Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsxs)(s.tbody,{children:[(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"name"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:"string"}),(0,r.jsx)(s.td,{children:"The name of the field. When a UserTaskRun is completed, the NodeOutput is a single-level JSON_OBJ. Each key is the name of the field. Must be unique."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"type"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#variabletype",children:"VariableType"})}),(0,r.jsx)(s.td,{children:"The type of the output. Must be a primitive type (STR, BOOL, INT, DOUBLE)."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"description"})}),(0,r.jsx)(s.td,{children:"optional"}),(0,r.jsx)(s.td,{children:"string"}),(0,r.jsx)(s.td,{children:"Optional description which can be displayed by the User Task UI application. Does not affect WfRun execution."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"display_name"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:"string"}),(0,r.jsx)(s.td,{children:"The name to be displayed by the User Task UI application. Does not affect WfRun execution."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"required"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:"bool"}),(0,r.jsx)(s.td,{children:"Whether this field is required for UserTaskRun completion."})]})]})]}),"\n",(0,r.jsxs)(s.h3,{id:"usertaskrun",children:["Message ",(0,r.jsx)(s.code,{children:"UserTaskRun"})]}),"\n",(0,r.jsxs)(s.p,{children:["A UserTaskRun is a running instance of a UserTaskDef. It is created when a\nThreadRun arrives at a Node of type ",(0,r.jsx)(s.code,{children:"USER_TASK"}),"."]}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Field"}),(0,r.jsx)(s.th,{children:"Label"}),(0,r.jsx)(s.th,{children:"Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsxs)(s.tbody,{children:[(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"id"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#usertaskrunid",children:"UserTaskRunId"})}),(0,r.jsx)(s.td,{children:"The ID of the UserTaskRun."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"user_task_def_id"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#usertaskdefid",children:"UserTaskDefId"})}),(0,r.jsx)(s.td,{children:"The ID of the UserTaskDef that this UserTaskRun comes from."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"user_group"})}),(0,r.jsx)(s.td,{children:"optional"}),(0,r.jsx)(s.td,{children:"string"}),(0,r.jsxs)(s.td,{children:["Denotes the UserTaskRun as belonging to a specific User Group.",(0,r.jsx)("br",{}),(0,r.jsx)("br",{}),"The ",(0,r.jsx)(s.code,{children:"user_group"})," does not refer to a group that is stored in LittleHorse; rather, it is the responsibility of the application to keep track of user/group identity and ensure that the user_group does indeed exist.",(0,r.jsx)("br",{}),(0,r.jsx)("br",{}),"Either ",(0,r.jsx)(s.code,{children:"user_id"})," or ",(0,r.jsx)(s.code,{children:"user_group"})," or both are set at any time."]})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"user_id"})}),(0,r.jsx)(s.td,{children:"optional"}),(0,r.jsx)(s.td,{children:"string"}),(0,r.jsxs)(s.td,{children:["Denotes the UserTaskRun as assigned to a specific User ID. If this is set, then the UserTaskRun is either in the ASSIGNED, DONE, or CANCELLED status.",(0,r.jsx)("br",{}),(0,r.jsx)("br",{}),"The ",(0,r.jsx)(s.code,{children:"user_id"})," does not refer to a User that is stored in LittleHorse; rather, it is the responsibility of the application to keep track of user identity and ensure that the user_id does indeed exist.",(0,r.jsx)("br",{}),(0,r.jsx)("br",{}),"Either ",(0,r.jsx)(s.code,{children:"user_id"})," or ",(0,r.jsx)(s.code,{children:"user_group"})," or both are set at any time."]})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"results"})}),(0,r.jsx)(s.td,{children:"map"}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#usertaskrunresultsentry",children:"UserTaskRun.ResultsEntry"})}),(0,r.jsxs)(s.td,{children:["The results of the UserTaskRun. Empty if the UserTaskRun has not yet been completed. Each key in this map is the ",(0,r.jsx)(s.code,{children:"name"})," of a corresponding ",(0,r.jsx)(s.code,{children:"UserTaskField"})," on the UserTaskDef."]})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"status"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#usertaskrunstatus",children:"UserTaskRunStatus"})}),(0,r.jsx)(s.td,{children:"Status of the UserTaskRun. Can be UNASSIGNED, ASSIGNED, DONE, or CANCELLED."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"events"})}),(0,r.jsx)(s.td,{children:"repeated"}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#usertaskevent",children:"UserTaskEvent"})}),(0,r.jsx)(s.td,{children:"A list of events that have happened. Used for auditing information."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"notes"})}),(0,r.jsx)(s.td,{children:"optional"}),(0,r.jsx)(s.td,{children:"string"}),(0,r.jsxs)(s.td,{children:["Notes about this UserTaskRun that are ",(0,r.jsx)(s.strong,{children:"specific to the WfRun"}),". These notes are set by the WfSpec based on variables inside the specific ",(0,r.jsx)(s.code,{children:"WfRun"})," and are intended to be displayed on the User Task Manager application. They do not affect WfRun execution."]})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"scheduled_time"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:"google.protobuf.Timestamp"}),(0,r.jsx)(s.td,{children:"The time that the UserTaskRun was created/scheduled."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"node_run_id"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#noderunid",children:"NodeRunId"})}),(0,r.jsx)(s.td,{children:"The NodeRun with which the UserTaskRun is associated."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"epoch"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:"int32"}),(0,r.jsx)(s.td,{children:"Current observed epoch of the UserTaskRun, related to the number of times it has been updated or re-assigned. Used internally to implement automated reassignment and reminder tasks."})]})]})]}),"\n",(0,r.jsxs)(s.h3,{id:"usertaskrunresultsentry",children:["Message ",(0,r.jsx)(s.code,{children:"UserTaskRun.ResultsEntry"})]}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Field"}),(0,r.jsx)(s.th,{children:"Label"}),(0,r.jsx)(s.th,{children:"Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsxs)(s.tbody,{children:[(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"key"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:"string"}),(0,r.jsx)(s.td,{})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"value"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#variablevalue",children:"VariableValue"})}),(0,r.jsx)(s.td,{})]})]})]}),"\n",(0,r.jsxs)(s.h3,{id:"usertasktriggerreference",children:["Message ",(0,r.jsx)(s.code,{children:"UserTaskTriggerReference"})]}),"\n",(0,r.jsx)(s.p,{children:'All TaskRun\'s have a "trigger reference" which refers to the WfRun Element that\ncaused the TaskRun to be scheduled. For example, a TaskRun on a regular TASK_NODE\nhas a TaskNodeReference.'}),"\n",(0,r.jsx)(s.p,{children:'The UserTaskTriggerReference serves as the "Trigger Reference" for a TaskRun that\nwas scheduled by a lifecycle hook on a UserTaskRun (eg. a reminder task).'}),"\n",(0,r.jsx)(s.p,{children:"The UserTaskTriggerReference is most useful in the WorkerContext of the Task Worker\nSDK, which allows the Task Method to determine where the TaskRun comes from."}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Field"}),(0,r.jsx)(s.th,{children:"Label"}),(0,r.jsx)(s.th,{children:"Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsxs)(s.tbody,{children:[(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"node_run_id"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#noderunid",children:"NodeRunId"})}),(0,r.jsx)(s.td,{children:"Is the NodeRun that the UserTaskRun belongs to."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"user_task_event_number"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:"int32"}),(0,r.jsxs)(s.td,{children:["Is the index in the ",(0,r.jsx)(s.code,{children:"events"})," field of the UserTaskRun that the TaskRun corresponds to."]})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"user_id"})}),(0,r.jsx)(s.td,{children:"optional"}),(0,r.jsx)(s.td,{children:"string"}),(0,r.jsx)(s.td,{children:"Is the user_id that the UserTaskRun is assigned to. Unset if UserTaskRun is not asigned to a specific user_id."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"user_group"})}),(0,r.jsx)(s.td,{children:"optional"}),(0,r.jsx)(s.td,{children:"string"}),(0,r.jsx)(s.td,{children:"Is the user_id that the UserTaskRun is assigned to. Unset if UserTaskRun is not asigned to a specific user_id."})]})]})]}),"\n",(0,r.jsxs)(s.h3,{id:"variable",children:["Message ",(0,r.jsx)(s.code,{children:"Variable"})]}),"\n",(0,r.jsx)(s.p,{children:"A Variable is an instance of a variable assigned to a WfRun."}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Field"}),(0,r.jsx)(s.th,{children:"Label"}),(0,r.jsx)(s.th,{children:"Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsxs)(s.tbody,{children:[(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"id"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#variableid",children:"VariableId"})}),(0,r.jsx)(s.td,{children:"ID of this Variable. Note that the VariableId contains the relevant WfRunId inside it, the threadRunNumber, and the name of the Variabe."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"value"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#variablevalue",children:"VariableValue"})}),(0,r.jsx)(s.td,{children:"The value of this Variable."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"created_at"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:"google.protobuf.Timestamp"}),(0,r.jsx)(s.td,{children:"When the Variable was created."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"wf_spec_id"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#wfspecid",children:"WfSpecId"})}),(0,r.jsx)(s.td,{children:"The ID of the WfSpec that this Variable belongs to."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"masked"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:"bool"}),(0,r.jsx)(s.td,{children:"Marks a variable to show masked values"})]})]})]}),"\n",(0,r.jsxs)(s.h3,{id:"variablevalue",children:["Message ",(0,r.jsx)(s.code,{children:"VariableValue"})]}),"\n",(0,r.jsx)(s.p,{children:"VariableValue is a structure containing a value in LittleHorse. It can be\nused to pass input variables into a WfRun/ThreadRun/TaskRun/etc, as output\nfrom a TaskRun, as the value of a WfRun's Variable, etc."}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Field"}),(0,r.jsx)(s.th,{children:"Label"}),(0,r.jsx)(s.th,{children:"Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsxs)(s.tbody,{children:[(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"json_obj"})}),(0,r.jsxs)(s.td,{children:["oneof ",(0,r.jsx)(s.code,{children:"value"})]}),(0,r.jsx)(s.td,{children:"string"}),(0,r.jsx)(s.td,{children:"A String representing a serialized json object."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"json_arr"})}),(0,r.jsxs)(s.td,{children:["oneof ",(0,r.jsx)(s.code,{children:"value"})]}),(0,r.jsx)(s.td,{children:"string"}),(0,r.jsx)(s.td,{children:"A String representing a serialized json list."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"double"})}),(0,r.jsxs)(s.td,{children:["oneof ",(0,r.jsx)(s.code,{children:"value"})]}),(0,r.jsx)(s.td,{children:"double"}),(0,r.jsx)(s.td,{children:"A 64-bit floating point number."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"bool"})}),(0,r.jsxs)(s.td,{children:["oneof ",(0,r.jsx)(s.code,{children:"value"})]}),(0,r.jsx)(s.td,{children:"bool"}),(0,r.jsx)(s.td,{children:"A boolean."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"str"})}),(0,r.jsxs)(s.td,{children:["oneof ",(0,r.jsx)(s.code,{children:"value"})]}),(0,r.jsx)(s.td,{children:"string"}),(0,r.jsx)(s.td,{children:"A string."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"int"})}),(0,r.jsxs)(s.td,{children:["oneof ",(0,r.jsx)(s.code,{children:"value"})]}),(0,r.jsx)(s.td,{children:"int64"}),(0,r.jsxs)(s.td,{children:["The ",(0,r.jsx)(s.code,{children:"INT"})," variable type is stored as a 64-bit integer. The ",(0,r.jsx)(s.code,{children:"INT"})," can be cast to a ",(0,r.jsx)(s.code,{children:"DOUBLE"}),"."]})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"bytes"})}),(0,r.jsxs)(s.td,{children:["oneof ",(0,r.jsx)(s.code,{children:"value"})]}),(0,r.jsx)(s.td,{children:"bytes"}),(0,r.jsx)(s.td,{children:"An arbitrary String of bytes."})]})]})]}),"\n",(0,r.jsxs)(s.h3,{id:"failurebeinghandled",children:["Message ",(0,r.jsx)(s.code,{children:"FailureBeingHandled"})]}),"\n",(0,r.jsx)(s.p,{children:"Points to the Failure that is currently being handled in the ThreadRun."}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Field"}),(0,r.jsx)(s.th,{children:"Label"}),(0,r.jsx)(s.th,{children:"Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsxs)(s.tbody,{children:[(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"thread_run_number"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:"int32"}),(0,r.jsx)(s.td,{children:"The thread run number."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"node_run_position"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:"int32"}),(0,r.jsx)(s.td,{children:"The position of the NodeRun causing the failure."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"failure_number"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:"int32"}),(0,r.jsx)(s.td,{children:"The number of the failure."})]})]})]}),"\n",(0,r.jsxs)(s.h3,{id:"handlingfailurehaltreason",children:["Message ",(0,r.jsx)(s.code,{children:"HandlingFailureHaltReason"})]}),"\n",(0,r.jsx)(s.p,{children:"A Halt Reason denoting that a ThreadRun is halted while a Failure Handler is being run."}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Field"}),(0,r.jsx)(s.th,{children:"Label"}),(0,r.jsx)(s.th,{children:"Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsx)(s.tbody,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"handler_thread_id"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:"int32"}),(0,r.jsx)(s.td,{children:"The ID of the Failure Handler ThreadRun."})]})})]}),"\n",(0,r.jsxs)(s.h3,{id:"interrupted",children:["Message ",(0,r.jsx)(s.code,{children:"Interrupted"})]}),"\n",(0,r.jsx)(s.p,{children:"A Halt Reason denoting that a ThreadRun is halted because it is waiting for the\ninterrupt handler threadRun to run."}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Field"}),(0,r.jsx)(s.th,{children:"Label"}),(0,r.jsx)(s.th,{children:"Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsx)(s.tbody,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"interrupt_thread_id"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:"int32"}),(0,r.jsx)(s.td,{children:"The ID of the Interrupt Handler ThreadRun."})]})})]}),"\n",(0,r.jsxs)(s.h3,{id:"manualhalt",children:["Message ",(0,r.jsx)(s.code,{children:"ManualHalt"})]}),"\n",(0,r.jsxs)(s.p,{children:["A Halt Reason denoting that a ThreadRun was halted manually, via the ",(0,r.jsx)(s.code,{children:"rpc StopWfRun"})," request."]}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Field"}),(0,r.jsx)(s.th,{children:"Label"}),(0,r.jsx)(s.th,{children:"Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsx)(s.tbody,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"meaning_of_life"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:"bool"}),(0,r.jsx)(s.td,{children:"Nothing to store."})]})})]}),"\n",(0,r.jsxs)(s.h3,{id:"parenthalted",children:["Message ",(0,r.jsx)(s.code,{children:"ParentHalted"})]}),"\n",(0,r.jsx)(s.p,{children:"A Halt Reason denoting that a ThreadRun is halted because its parent is also HALTED."}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Field"}),(0,r.jsx)(s.th,{children:"Label"}),(0,r.jsx)(s.th,{children:"Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsx)(s.tbody,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"parent_thread_id"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:"int32"}),(0,r.jsx)(s.td,{children:"The ID of the halted parent."})]})})]}),"\n",(0,r.jsxs)(s.h3,{id:"pendingfailurehandler",children:["Message ",(0,r.jsx)(s.code,{children:"PendingFailureHandler"})]}),"\n",(0,r.jsx)(s.p,{children:"Represents a Failure Handler that is pending to be run."}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Field"}),(0,r.jsx)(s.th,{children:"Label"}),(0,r.jsx)(s.th,{children:"Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsxs)(s.tbody,{children:[(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"failed_thread_run"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:"int32"}),(0,r.jsx)(s.td,{children:"The ThreadRun that failed."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"handler_spec_name"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:"string"}),(0,r.jsx)(s.td,{children:"The name of the ThreadSpec to run to handle the failure."})]})]})]}),"\n",(0,r.jsxs)(s.h3,{id:"pendingfailurehandlerhaltreason",children:["Message ",(0,r.jsx)(s.code,{children:"PendingFailureHandlerHaltReason"})]}),"\n",(0,r.jsxs)(s.p,{children:["A Halt Reason denoting that a ThreadRun is halted while a Failure Handler is ",(0,r.jsx)(s.em,{children:"enqueued"})," to be\nrun."]}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Field"}),(0,r.jsx)(s.th,{children:"Label"}),(0,r.jsx)(s.th,{children:"Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsx)(s.tbody,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"node_run_position"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:"int32"}),(0,r.jsx)(s.td,{children:"The position of the NodeRun which threw the failure."})]})})]}),"\n",(0,r.jsxs)(s.h3,{id:"pendinginterrupt",children:["Message ",(0,r.jsx)(s.code,{children:"PendingInterrupt"})]}),"\n",(0,r.jsx)(s.p,{children:"Represents an ExternalEvent that has a registered Interrupt Handler for it\nand which is pending to be sent to the relevant ThreadRun's."}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Field"}),(0,r.jsx)(s.th,{children:"Label"}),(0,r.jsx)(s.th,{children:"Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsxs)(s.tbody,{children:[(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"external_event_id"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#externaleventid",children:"ExternalEventId"})}),(0,r.jsx)(s.td,{children:"The ID of the ExternalEvent triggering the Interrupt."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"handler_spec_name"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:"string"}),(0,r.jsx)(s.td,{children:"The name of the ThreadSpec to run to handle the Interrupt."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"interrupted_thread_id"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:"int32"}),(0,r.jsx)(s.td,{children:"The ID of the ThreadRun to interrupt. Must wait for this ThreadRun to be HALTED before running the Interrupt Handler."})]})]})]}),"\n",(0,r.jsxs)(s.h3,{id:"pendinginterrupthaltreason",children:["Message ",(0,r.jsx)(s.code,{children:"PendingInterruptHaltReason"})]}),"\n",(0,r.jsx)(s.p,{children:"A Halt Reason denoting that a ThreadRun is halted while waiting for an Interrupt handler\nto be run."}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Field"}),(0,r.jsx)(s.th,{children:"Label"}),(0,r.jsx)(s.th,{children:"Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsx)(s.tbody,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"external_event_id"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#externaleventid",children:"ExternalEventId"})}),(0,r.jsx)(s.td,{children:"The ExternalEventId that caused the Interrupt."})]})})]}),"\n",(0,r.jsxs)(s.h3,{id:"threadhaltreason",children:["Message ",(0,r.jsx)(s.code,{children:"ThreadHaltReason"})]}),"\n",(0,r.jsxs)(s.p,{children:["Denotes a reason why a ThreadRun is halted. See ",(0,r.jsx)(s.code,{children:"ThreadRun.halt_reasons"})," for context."]}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Field"}),(0,r.jsx)(s.th,{children:"Label"}),(0,r.jsx)(s.th,{children:"Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsxs)(s.tbody,{children:[(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"parent_halted"})}),(0,r.jsxs)(s.td,{children:["oneof ",(0,r.jsx)(s.code,{children:"reason"})]}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#parenthalted",children:"ParentHalted"})}),(0,r.jsx)(s.td,{children:"Parent threadRun halted."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"interrupted"})}),(0,r.jsxs)(s.td,{children:["oneof ",(0,r.jsx)(s.code,{children:"reason"})]}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#interrupted",children:"Interrupted"})}),(0,r.jsx)(s.td,{children:"Handling an Interrupt."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"pending_interrupt"})}),(0,r.jsxs)(s.td,{children:["oneof ",(0,r.jsx)(s.code,{children:"reason"})]}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#pendinginterrupthaltreason",children:"PendingInterruptHaltReason"})}),(0,r.jsx)(s.td,{children:"Waiting to handle Interrupt."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"pending_failure"})}),(0,r.jsxs)(s.td,{children:["oneof ",(0,r.jsx)(s.code,{children:"reason"})]}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#pendingfailurehandlerhaltreason",children:"PendingFailureHandlerHaltReason"})}),(0,r.jsx)(s.td,{children:"Waiting to handle a failure."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"handling_failure"})}),(0,r.jsxs)(s.td,{children:["oneof ",(0,r.jsx)(s.code,{children:"reason"})]}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#handlingfailurehaltreason",children:"HandlingFailureHaltReason"})}),(0,r.jsx)(s.td,{children:"Handling a failure."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"manual_halt"})}),(0,r.jsxs)(s.td,{children:["oneof ",(0,r.jsx)(s.code,{children:"reason"})]}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#manualhalt",children:"ManualHalt"})}),(0,r.jsx)(s.td,{children:"Manually stopped the WfRun."})]})]})]}),"\n",(0,r.jsxs)(s.h3,{id:"threadrun",children:["Message ",(0,r.jsx)(s.code,{children:"ThreadRun"})]}),"\n",(0,r.jsx)(s.p,{children:"A ThreadRun is a running thread of execution within a WfRun."}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Field"}),(0,r.jsx)(s.th,{children:"Label"}),(0,r.jsx)(s.th,{children:"Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsxs)(s.tbody,{children:[(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"wf_spec_id"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#wfspecid",children:"WfSpecId"})}),(0,r.jsx)(s.td,{children:"The current WfSpecId of this ThreadRun. This must be set explicitly because during a WfSpec Version Migration, it is possible for different ThreadSpec's to have different WfSpec versions."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"number"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:"int32"}),(0,r.jsxs)(s.td,{children:["The number of the ThreadRun. This is an auto-incremented integer corresponding to the chronological ordering of when the ThreadRun's were created. If you have not configured any retention policy for the ThreadRun's (i.e. never clean them up), then this also corresponds to the position of the ThreadRun in the WfRun's ",(0,r.jsx)(s.code,{children:"thread_runs"})," list."]})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"status"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#lhstatus",children:"LHStatus"})}),(0,r.jsx)(s.td,{children:"The status of the ThreadRun."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"thread_spec_name"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:"string"}),(0,r.jsx)(s.td,{children:"The name of the ThreadSpec being run."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"start_time"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:"google.protobuf.Timestamp"}),(0,r.jsx)(s.td,{children:"The time the ThreadRun was started."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"end_time"})}),(0,r.jsx)(s.td,{children:"optional"}),(0,r.jsx)(s.td,{children:"google.protobuf.Timestamp"}),(0,r.jsx)(s.td,{children:"The time the ThreadRun was completed or failed. Unset if still active."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"error_message"})}),(0,r.jsx)(s.td,{children:"optional"}),(0,r.jsx)(s.td,{children:"string"}),(0,r.jsx)(s.td,{children:"Human-readable error message detailing what went wrong in the case of a failure."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"child_thread_ids"})}),(0,r.jsx)(s.td,{children:"repeated"}),(0,r.jsx)(s.td,{children:"int32"}),(0,r.jsx)(s.td,{children:"List of thread_run_number's for all child thread_runs."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"parent_thread_id"})}),(0,r.jsx)(s.td,{children:"optional"}),(0,r.jsx)(s.td,{children:"int32"}),(0,r.jsx)(s.td,{children:"Set for every ThreadRun except the ENTRYPOINT. This is the id of the parent thread."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"halt_reasons"})}),(0,r.jsx)(s.td,{children:"repeated"}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#threadhaltreason",children:"ThreadHaltReason"})}),(0,r.jsx)(s.td,{children:'If the ThreadRun is HALTED, this contains a list of every reason for which the ThreadRun is HALTED. Once every reason is "resolved" (and thus removed from the list), then the ThreadRun will return to the RUNNING state.'})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"interrupt_trigger_id"})}),(0,r.jsx)(s.td,{children:"optional"}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#externaleventid",children:"ExternalEventId"})}),(0,r.jsx)(s.td,{children:"If this ThreadRun is of type INTERRUPT_HANDLER, this field is set to the ID of the ExternalEvent that caused the Interrupt."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"failure_being_handled"})}),(0,r.jsx)(s.td,{children:"optional"}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#failurebeinghandled",children:"FailureBeingHandled"})}),(0,r.jsx)(s.td,{children:"If this ThreadRun is of type FAILURE_HANDLER, this field is set to the exact Failure that is being handled by this ThreadRun."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"current_node_position"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:"int32"}),(0,r.jsxs)(s.td,{children:["This is the current ",(0,r.jsx)(s.code,{children:"position"})," of the current NodeRun being run. This is an auto-incremented field that gets incremented every time we run a new NodeRun."]})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"handled_failed_children"})}),(0,r.jsx)(s.td,{children:"repeated"}),(0,r.jsx)(s.td,{children:"int32"}),(0,r.jsxs)(s.td,{children:["List of every child ThreadRun which both a) failed, and b) was properly handled by a Failure Handler.",(0,r.jsx)("br",{}),(0,r.jsx)("br",{}),'This is important because at the EXIT node, if a Child ThreadRun was discovered to have failed, then this ThreadRun (the parent) also fails with the same failure as the child. If, however, a Failure Handler had previously "handled" the Child Failure, that ThreadRun\'s number is appended to this list, and then the EXIT node ignores that ThreadRun.']})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"type"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#threadtype",children:"ThreadType"})}),(0,r.jsx)(s.td,{children:"The Type of this ThreadRun."})]})]})]}),"\n",(0,r.jsxs)(s.h3,{id:"wfrun",children:["Message ",(0,r.jsx)(s.code,{children:"WfRun"})]}),"\n",(0,r.jsx)(s.p,{children:"A WfRun is a running instance of a WfSpec."}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Field"}),(0,r.jsx)(s.th,{children:"Label"}),(0,r.jsx)(s.th,{children:"Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsxs)(s.tbody,{children:[(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"id"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#wfrunid",children:"WfRunId"})}),(0,r.jsx)(s.td,{children:"The ID of the WfRun."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"wf_spec_id"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#wfspecid",children:"WfSpecId"})}),(0,r.jsx)(s.td,{children:"The ID of the WfSpec that this WfRun belongs to."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"old_wf_spec_versions"})}),(0,r.jsx)(s.td,{children:"repeated"}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#wfspecid",children:"WfSpecId"})}),(0,r.jsx)(s.td,{children:"When a WfRun is migrated from an old verison of a WfSpec to a newer one, we add the old WfSpecId to this list for historical auditing and debugging purposes."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"status"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#lhstatus",children:"LHStatus"})}),(0,r.jsx)(s.td,{children:"The status of this WfRun."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"greatest_threadrun_number"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:"int32"}),(0,r.jsxs)(s.td,{children:["The ID number of the greatest ThreadRUn in this WfRun. The total number of ThreadRuns is given by greatest_thread_run_number + 1.",(0,r.jsx)("br",{}),(0,r.jsx)("br",{}),"Introduced now since with ThreadRun-level retention, we can't rely upon thread_runs.size() to determine the number of ThreadRuns, as a ThreadRun is removed from the thread_runs list once its retention period expires."]})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"start_time"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:"google.protobuf.Timestamp"}),(0,r.jsx)(s.td,{children:"The time the WfRun was started."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"end_time"})}),(0,r.jsx)(s.td,{children:"optional"}),(0,r.jsx)(s.td,{children:"google.protobuf.Timestamp"}),(0,r.jsx)(s.td,{children:"The time the WfRun failed or completed."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"thread_runs"})}),(0,r.jsx)(s.td,{children:"repeated"}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#threadrun",children:"ThreadRun"})}),(0,r.jsx)(s.td,{children:"A list of all active ThreadRun's and terminated ThreadRun's whose retention periods have not yet expired."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"pending_interrupts"})}),(0,r.jsx)(s.td,{children:"repeated"}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#pendinginterrupt",children:"PendingInterrupt"})}),(0,r.jsx)(s.td,{children:"A list of Interrupt events that will fire once their appropriate ThreadRun's finish halting."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"pending_failures"})}),(0,r.jsx)(s.td,{children:"repeated"}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#pendingfailurehandler",children:"PendingFailureHandler"})}),(0,r.jsx)(s.td,{children:"A list of pending failure handlers which will fire once their appropriate ThreadRun's finish halting."})]})]})]}),"\n",(0,r.jsxs)(s.h3,{id:"edge",children:["Message ",(0,r.jsx)(s.code,{children:"Edge"})]}),"\n",(0,r.jsx)(s.p,{children:"The Edge is the line in the workflow that connects one Node to another."}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Field"}),(0,r.jsx)(s.th,{children:"Label"}),(0,r.jsx)(s.th,{children:"Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsxs)(s.tbody,{children:[(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"sink_node_name"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:"string"}),(0,r.jsx)(s.td,{children:"The name of the Node that the Edge points to."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"condition"})}),(0,r.jsx)(s.td,{children:"optional"}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#edgecondition",children:"EdgeCondition"})}),(0,r.jsxs)(s.td,{children:["The Condition on which this Edge will be traversed. When choosing an Edge to travel after the completion of a NodeRun, the Edges are evaluated in order. The first one to either have no condition or have a condition which evaluates to ",(0,r.jsx)(s.code,{children:"true"})," is taken."]})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"variable_mutations"})}),(0,r.jsx)(s.td,{children:"repeated"}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#variablemutation",children:"VariableMutation"})}),(0,r.jsx)(s.td,{children:"Ordered list of Variable Mutations to execute when traversing this Edge."})]})]})]}),"\n",(0,r.jsxs)(s.h3,{id:"edgecondition",children:["Message ",(0,r.jsx)(s.code,{children:"EdgeCondition"})]}),"\n",(0,r.jsx)(s.p,{children:"This is a boolean expression used to evaluate whether an Edge is valid."}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Field"}),(0,r.jsx)(s.th,{children:"Label"}),(0,r.jsx)(s.th,{children:"Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsxs)(s.tbody,{children:[(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"comparator"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#comparator",children:"Comparator"})}),(0,r.jsx)(s.td,{children:"The Operator used to evaluate the left versus the right."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"left"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#variableassignment",children:"VariableAssignment"})}),(0,r.jsx)(s.td,{children:"The left side of the boolean expression."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"right"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#variableassignment",children:"VariableAssignment"})}),(0,r.jsx)(s.td,{children:"The right side of the Boolean Expression."})]})]})]}),"\n",(0,r.jsxs)(s.h3,{id:"entrypointnode",children:["Message ",(0,r.jsx)(s.code,{children:"EntrypointNode"})]}),"\n",(0,r.jsx)(s.p,{children:"Defines the beginning of the ThreadRun execution."}),"\n",(0,r.jsx)(s.p,{children:"Output is NULL"}),"\n",(0,r.jsxs)(s.h3,{id:"exitnode",children:["Message ",(0,r.jsx)(s.code,{children:"ExitNode"})]}),"\n",(0,r.jsx)(s.p,{children:"Defines the end of the ThreadRun execution."}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Field"}),(0,r.jsx)(s.th,{children:"Label"}),(0,r.jsx)(s.th,{children:"Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsx)(s.tbody,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"failure_def"})}),(0,r.jsx)(s.td,{children:"optional"}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#failuredef",children:"FailureDef"})}),(0,r.jsxs)(s.td,{children:["If set, this ExitNode throws the specified Failure upon arrival. Note that Failures are propagated up to the parent ThreadRun (or cause the entire WfRun to fail if sent by the entrypoint ThreadRun).",(0,r.jsx)("br",{}),(0,r.jsx)("br",{}),"If this is not set, then a ThreadRun arriving at this Exit Node will be COMPLETED."]})]})})]}),"\n",(0,r.jsxs)(s.h3,{id:"externaleventnode",children:["Message ",(0,r.jsx)(s.code,{children:"ExternalEventNode"})]}),"\n",(0,r.jsx)(s.p,{children:"An ExternalEventNode causes the WfRun to stop and wait for an ExternalEvent\nto arrive before continuing onwards."}),"\n",(0,r.jsx)(s.p,{children:"The output is just the content of the ExternalEvent."}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Field"}),(0,r.jsx)(s.th,{children:"Label"}),(0,r.jsx)(s.th,{children:"Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsxs)(s.tbody,{children:[(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"external_event_def_id"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#externaleventdefid",children:"ExternalEventDefId"})}),(0,r.jsx)(s.td,{children:"The ID of the ExternalEventDef that we are waiting for."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"timeout_seconds"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#variableassignment",children:"VariableAssignment"})}),(0,r.jsx)(s.td,{children:"Determines the maximum amount of time that the NodeRun will wait for the ExternalEvent to arrive."})]})]})]}),"\n",(0,r.jsxs)(s.h3,{id:"failuredef",children:["Message ",(0,r.jsx)(s.code,{children:"FailureDef"})]}),"\n",(0,r.jsx)(s.p,{children:"Defines a Failure that can be thrown."}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Field"}),(0,r.jsx)(s.th,{children:"Label"}),(0,r.jsx)(s.th,{children:"Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsxs)(s.tbody,{children:[(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"failure_name"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:"string"}),(0,r.jsx)(s.td,{children:"The code for the failure. If in UPPER_CASE, it must be one of the LHErrorType enums, and represents an ERROR. If it is in kebab-case, then it is a user-defined EXCEPTION."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"message"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:"string"}),(0,r.jsx)(s.td,{children:"Human-readable message denoting why the Failure occurred."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"content"})}),(0,r.jsx)(s.td,{children:"optional"}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#variableassignment",children:"VariableAssignment"})}),(0,r.jsx)(s.td,{children:"If specified, the thrown Failure will have this content."})]})]})]}),"\n",(0,r.jsxs)(s.h3,{id:"failurehandlerdef",children:["Message ",(0,r.jsx)(s.code,{children:"FailureHandlerDef"})]}),"\n",(0,r.jsx)(s.p,{children:"Specifies a Failure Handler which can run in case of a certain Failure to allow\nthe ThreadRun to run compensatory logic and gracefully continue rather than\nfailing immediately."}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Field"}),(0,r.jsx)(s.th,{children:"Label"}),(0,r.jsx)(s.th,{children:"Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsxs)(s.tbody,{children:[(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"handler_spec_name"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:"string"}),(0,r.jsx)(s.td,{children:"The name of the ThreadSpec to run as a"})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"specific_failure"})}),(0,r.jsxs)(s.td,{children:["oneof ",(0,r.jsx)(s.code,{children:"failure_to_catch"})]}),(0,r.jsx)(s.td,{children:"string"}),(0,r.jsxs)(s.td,{children:["Specifies that this FailureHandlerDef will be triggered for a Failure with this exact name.",(0,r.jsx)("br",{}),(0,r.jsx)("br",{}),"If this and ",(0,r.jsx)(s.code,{children:"specific_failure"})," are both unset, then any failure is caught."]})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"any_failure_of_type"})}),(0,r.jsxs)(s.td,{children:["oneof ",(0,r.jsx)(s.code,{children:"failure_to_catch"})]}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#failurehandlerdeflhfailuretype",children:"FailureHandlerDef.LHFailureType"})}),(0,r.jsx)(s.td,{children:"Specifies that this FailureHandlerDef will be triggered for any failure matching this type (ERROR or EXCEPTION)."})]})]})]}),"\n",(0,r.jsxs)(s.h3,{id:"interruptdef",children:["Message ",(0,r.jsx)(s.code,{children:"InterruptDef"})]}),"\n",(0,r.jsx)(s.p,{children:"Defines an Interrupt for a ThreadSpec. An Interrupt means that when an ExternalEvent\nof a certain type is registered to the WfRun, then the affected ThreadRun is HALTED\nand a handler ThreadRun is run as an interrupt handler. The interrupted ThreadRun\nis resumed once the interrupt handler completes."}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Field"}),(0,r.jsx)(s.th,{children:"Label"}),(0,r.jsx)(s.th,{children:"Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsxs)(s.tbody,{children:[(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"external_event_def_id"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#externaleventdefid",children:"ExternalEventDefId"})}),(0,r.jsx)(s.td,{children:"The ID of the ExternalEventDef which triggers an Interrupt for this ThreadSpec. Note that as of 0.9.0, you cannot use an ExternalEventDefId for both an InterruptDef and an ExternalEventNode in the same WfSpec."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"handler_spec_name"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:"string"}),(0,r.jsx)(s.td,{children:"The name of the ThreadSpec that we run as the interrupt handler."})]})]})]}),"\n",(0,r.jsxs)(s.h3,{id:"jsonindex",children:["Message ",(0,r.jsx)(s.code,{children:"JsonIndex"})]}),"\n",(0,r.jsx)(s.p,{children:"Defines an index to make a JSON_OBJ or JSON_ARR variable searchable over a specific\nJSON Path."}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Field"}),(0,r.jsx)(s.th,{children:"Label"}),(0,r.jsx)(s.th,{children:"Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsxs)(s.tbody,{children:[(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"field_path"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:"string"}),(0,r.jsx)(s.td,{children:"Denotes the path in JSONPath format (according to the Java Jayway library) that has a field we should index."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"field_type"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#variabletype",children:"VariableType"})}),(0,r.jsx)(s.td,{children:"Is the type of the field we are indexing."})]})]})]}),"\n",(0,r.jsxs)(s.h3,{id:"node",children:["Message ",(0,r.jsx)(s.code,{children:"Node"})]}),"\n",(0,r.jsx)(s.p,{children:"A Node is a step in a ThreadRun."}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Field"}),(0,r.jsx)(s.th,{children:"Label"}),(0,r.jsx)(s.th,{children:"Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsxs)(s.tbody,{children:[(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"outgoing_edges"})}),(0,r.jsx)(s.td,{children:"repeated"}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#edge",children:"Edge"})}),(0,r.jsx)(s.td,{children:"Defines the flow of execution and determines where the ThreadRun goes next."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"failure_handlers"})}),(0,r.jsx)(s.td,{children:"repeated"}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#failurehandlerdef",children:"FailureHandlerDef"})}),(0,r.jsx)(s.td,{children:"Specifies handlers for failures (EXCEPTION or ERROR or both) which might be thrown by the NodeRun. If a Failure is thrown by the Node execution, then the first matching Failure Handler (if present) is run. If there is a matching Failure Handler and it runs to completion, then the ThreadRun advances from the Node; else, it fails."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"entrypoint"})}),(0,r.jsxs)(s.td,{children:["oneof ",(0,r.jsx)(s.code,{children:"node"})]}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#entrypointnode",children:"EntrypointNode"})}),(0,r.jsx)(s.td,{children:"Creates an EntrypointRun. Every ThreadRun has one Entrypoint node."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"exit"})}),(0,r.jsxs)(s.td,{children:["oneof ",(0,r.jsx)(s.code,{children:"node"})]}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#exitnode",children:"ExitNode"})}),(0,r.jsx)(s.td,{children:"Creates an `ExitRun``. Every ThreadSpec has at least one Exit Node."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"task"})}),(0,r.jsxs)(s.td,{children:["oneof ",(0,r.jsx)(s.code,{children:"node"})]}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#tasknode",children:"TaskNode"})}),(0,r.jsx)(s.td,{children:"Creates a TaskNodeRUn"})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"external_event"})}),(0,r.jsxs)(s.td,{children:["oneof ",(0,r.jsx)(s.code,{children:"node"})]}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#externaleventnode",children:"ExternalEventNode"})}),(0,r.jsx)(s.td,{children:"Creates an ExternalEventNodeRun"})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"start_thread"})}),(0,r.jsxs)(s.td,{children:["oneof ",(0,r.jsx)(s.code,{children:"node"})]}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#startthreadnode",children:"StartThreadNode"})}),(0,r.jsx)(s.td,{children:"Creates a StartThreadNodeRun"})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"wait_for_threads"})}),(0,r.jsxs)(s.td,{children:["oneof ",(0,r.jsx)(s.code,{children:"node"})]}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#waitforthreadsnode",children:"WaitForThreadsNode"})}),(0,r.jsx)(s.td,{children:"Creates a WaitForThreadsNodeRun"})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"nop"})}),(0,r.jsxs)(s.td,{children:["oneof ",(0,r.jsx)(s.code,{children:"node"})]}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#nopnode",children:"NopNode"})}),(0,r.jsx)(s.td,{children:"Creates a NopNodeRun"})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"sleep"})}),(0,r.jsxs)(s.td,{children:["oneof ",(0,r.jsx)(s.code,{children:"node"})]}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#sleepnode",children:"SleepNode"})}),(0,r.jsx)(s.td,{children:"Creates a SleepNodeRun"})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"user_task"})}),(0,r.jsxs)(s.td,{children:["oneof ",(0,r.jsx)(s.code,{children:"node"})]}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#usertasknode",children:"UserTaskNode"})}),(0,r.jsx)(s.td,{children:"Creates a UserTaskNodeRun"})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"start_multiple_threads"})}),(0,r.jsxs)(s.td,{children:["oneof ",(0,r.jsx)(s.code,{children:"node"})]}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#startmultiplethreadsnode",children:"StartMultipleThreadsNode"})}),(0,r.jsx)(s.td,{children:"Creates a StartMultipleThreadsNodeRun"})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"throw_event"})}),(0,r.jsxs)(s.td,{children:["oneof ",(0,r.jsx)(s.code,{children:"node"})]}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#throweventnode",children:"ThrowEventNode"})}),(0,r.jsx)(s.td,{children:"Creates a ThrowEventNodeRun"})]})]})]}),"\n",(0,r.jsxs)(s.h3,{id:"nodemigration",children:["Message ",(0,r.jsx)(s.code,{children:"NodeMigration"})]}),"\n",(0,r.jsx)(s.p,{children:"EXPERIMENTAL: Specification for migrating a WfRun from a Node in one WfSpec\nto a Node in another WfSpec version."}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Field"}),(0,r.jsx)(s.th,{children:"Label"}),(0,r.jsx)(s.th,{children:"Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsx)(s.tbody,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"new_node_name"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:"string"}),(0,r.jsx)(s.td,{children:"The name of the Node on the new WfSpec to move to."})]})})]}),"\n",(0,r.jsxs)(s.h3,{id:"nopnode",children:["Message ",(0,r.jsx)(s.code,{children:"NopNode"})]}),"\n",(0,r.jsx)(s.p,{children:"NOP node has no operations and is used for conditional branching."}),"\n",(0,r.jsxs)(s.h3,{id:"sleepnode",children:["Message ",(0,r.jsx)(s.code,{children:"SleepNode"})]}),"\n",(0,r.jsx)(s.p,{children:"Sleep Node causes the WfRun to wait a specified time and then resume."}),"\n",(0,r.jsx)(s.p,{children:"There is no output."}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Field"}),(0,r.jsx)(s.th,{children:"Label"}),(0,r.jsx)(s.th,{children:"Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsxs)(s.tbody,{children:[(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"raw_seconds"})}),(0,r.jsxs)(s.td,{children:["oneof ",(0,r.jsx)(s.code,{children:"sleep_length"})]}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#variableassignment",children:"VariableAssignment"})}),(0,r.jsx)(s.td,{children:"Sleeps the specified number of seconds."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"timestamp"})}),(0,r.jsxs)(s.td,{children:["oneof ",(0,r.jsx)(s.code,{children:"sleep_length"})]}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#variableassignment",children:"VariableAssignment"})}),(0,r.jsxs)(s.td,{children:["Sleeps until the ",(0,r.jsx)(s.code,{children:"long"})," timestamp (epoch millis) specified here."]})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"iso_date"})}),(0,r.jsxs)(s.td,{children:["oneof ",(0,r.jsx)(s.code,{children:"sleep_length"})]}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#variableassignment",children:"VariableAssignment"})}),(0,r.jsx)(s.td,{children:"Sleeps until the ISO-formatted date specified here."})]})]})]}),"\n",(0,r.jsxs)(s.h3,{id:"startmultiplethreadsnode",children:["Message ",(0,r.jsx)(s.code,{children:"StartMultipleThreadsNode"})]}),"\n",(0,r.jsx)(s.p,{children:"Iterates over a JSON_ARR and starts a Child ThreadRun for each element in the\nlist."}),"\n",(0,r.jsx)(s.p,{children:"Returns a JSON_ARR containing the thread_run_number of each spawned child."}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Field"}),(0,r.jsx)(s.th,{children:"Label"}),(0,r.jsx)(s.th,{children:"Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsxs)(s.tbody,{children:[(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"thread_spec_name"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:"string"}),(0,r.jsx)(s.td,{children:"The name of the ThreadSpec to spawn."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"variables"})}),(0,r.jsx)(s.td,{children:"map"}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#startmultiplethreadsnodevariablesentry",children:"StartMultipleThreadsNode.VariablesEntry"})}),(0,r.jsx)(s.td,{children:"Variables which are passed into the child ThreadRuns. These assignments are the same for all spawned threads."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"iterable"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#variableassignment",children:"VariableAssignment"})}),(0,r.jsxs)(s.td,{children:["Assignment that resolves to a JSON_ARR. For each element in the list, a child ThreadRun is started. The reserved ",(0,r.jsx)(s.code,{children:"INPUT"})," variable for each Child is set to the corresponding item in the list."]})]})]})]}),"\n",(0,r.jsxs)(s.h3,{id:"startmultiplethreadsnodevariablesentry",children:["Message ",(0,r.jsx)(s.code,{children:"StartMultipleThreadsNode.VariablesEntry"})]}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Field"}),(0,r.jsx)(s.th,{children:"Label"}),(0,r.jsx)(s.th,{children:"Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsxs)(s.tbody,{children:[(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"key"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:"string"}),(0,r.jsx)(s.td,{})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"value"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#variableassignment",children:"VariableAssignment"})}),(0,r.jsx)(s.td,{})]})]})]}),"\n",(0,r.jsxs)(s.h3,{id:"startthreadnode",children:["Message ",(0,r.jsx)(s.code,{children:"StartThreadNode"})]}),"\n",(0,r.jsx)(s.p,{children:"Starts a Child ThreadRun with a specific ThreadSpec."}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Field"}),(0,r.jsx)(s.th,{children:"Label"}),(0,r.jsx)(s.th,{children:"Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsxs)(s.tbody,{children:[(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"thread_spec_name"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:"string"}),(0,r.jsx)(s.td,{children:"The name of the ThreadSpec to spawn."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"variables"})}),(0,r.jsx)(s.td,{children:"map"}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#startthreadnodevariablesentry",children:"StartThreadNode.VariablesEntry"})}),(0,r.jsx)(s.td,{children:"The input variables to pass into the Child ThreadRun."})]})]})]}),"\n",(0,r.jsxs)(s.h3,{id:"startthreadnodevariablesentry",children:["Message ",(0,r.jsx)(s.code,{children:"StartThreadNode.VariablesEntry"})]}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Field"}),(0,r.jsx)(s.th,{children:"Label"}),(0,r.jsx)(s.th,{children:"Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsxs)(s.tbody,{children:[(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"key"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:"string"}),(0,r.jsx)(s.td,{})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"value"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#variableassignment",children:"VariableAssignment"})}),(0,r.jsx)(s.td,{})]})]})]}),"\n",(0,r.jsxs)(s.h3,{id:"threadretentionpolicy",children:["Message ",(0,r.jsx)(s.code,{children:"ThreadRetentionPolicy"})]}),"\n",(0,r.jsx)(s.p,{children:"ThreadRetentionPolicy specifies how long to keep record of a ThreadRun and its associated\nNodeRun's and TaskRun's and Variables after the ThreadRun has been completed."}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Field"}),(0,r.jsx)(s.th,{children:"Label"}),(0,r.jsx)(s.th,{children:"Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsx)(s.tbody,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"seconds_after_thread_termination"})}),(0,r.jsxs)(s.td,{children:["oneof ",(0,r.jsx)(s.code,{children:"thread_gc_policy"})]}),(0,r.jsx)(s.td,{children:"int64"}),(0,r.jsx)(s.td,{children:"Delete associated ThreadRun's X seconds after they terminate, regardless of status."})]})})]}),"\n",(0,r.jsxs)(s.h3,{id:"threadspec",children:["Message ",(0,r.jsx)(s.code,{children:"ThreadSpec"})]}),"\n",(0,r.jsx)(s.p,{children:"Defines a blueprint for a ThreadRun, which is a thread of execution inside a\nWfRun."}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Field"}),(0,r.jsx)(s.th,{children:"Label"}),(0,r.jsx)(s.th,{children:"Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsxs)(s.tbody,{children:[(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"nodes"})}),(0,r.jsx)(s.td,{children:"map"}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#threadspecnodesentry",children:"ThreadSpec.NodesEntry"})}),(0,r.jsx)(s.td,{children:"The Nodes inside this ThreadSpec. Maps from name to Node."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"variable_defs"})}),(0,r.jsx)(s.td,{children:"repeated"}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#threadvardef",children:"ThreadVarDef"})}),(0,r.jsx)(s.td,{children:"Defines Variables that are local to ThreadRun's of this ThreadSpec."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"interrupt_defs"})}),(0,r.jsx)(s.td,{children:"repeated"}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#interruptdef",children:"InterruptDef"})}),(0,r.jsx)(s.td,{children:"Defines all interrupts for this ThreadSpec."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"retention_policy"})}),(0,r.jsx)(s.td,{children:"optional"}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#threadretentionpolicy",children:"ThreadRetentionPolicy"})}),(0,r.jsx)(s.td,{children:"Optional retention policy to clean up ThreadRun's of this ThreadSpec after they have been completed. This is important for long-lived WfRun's that could have hundreds of ThreadRun's, because a ThreadRun has a record inside the WfRun itself."})]})]})]}),"\n",(0,r.jsxs)(s.h3,{id:"threadspecnodesentry",children:["Message ",(0,r.jsx)(s.code,{children:"ThreadSpec.NodesEntry"})]}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Field"}),(0,r.jsx)(s.th,{children:"Label"}),(0,r.jsx)(s.th,{children:"Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsxs)(s.tbody,{children:[(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"key"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:"string"}),(0,r.jsx)(s.td,{})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"value"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#node",children:"Node"})}),(0,r.jsx)(s.td,{})]})]})]}),"\n",(0,r.jsxs)(s.h3,{id:"threadspecmigration",children:["Message ",(0,r.jsx)(s.code,{children:"ThreadSpecMigration"})]}),"\n",(0,r.jsx)(s.p,{children:"EXPERIMENTAL: Specification for how to migrate a ThreadRun of a specific ThreadSpec\nfrom one WfSpec to another WfSpec version."}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Field"}),(0,r.jsx)(s.th,{children:"Label"}),(0,r.jsx)(s.th,{children:"Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsxs)(s.tbody,{children:[(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"new_thread_spec_name"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:"string"}),(0,r.jsx)(s.td,{children:"The name of the ThreadSpec in the new WfSpec that this ThreadSpec should migrate to."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"node_migrations"})}),(0,r.jsx)(s.td,{children:"map"}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#threadspecmigrationnodemigrationsentry",children:"ThreadSpecMigration.NodeMigrationsEntry"})}),(0,r.jsx)(s.td,{children:"Map from name of the nodes on the current ThreadSpec to the migration to perform on it to move it to a new WfSpec."})]})]})]}),"\n",(0,r.jsxs)(s.h3,{id:"threadspecmigrationnodemigrationsentry",children:["Message ",(0,r.jsx)(s.code,{children:"ThreadSpecMigration.NodeMigrationsEntry"})]}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Field"}),(0,r.jsx)(s.th,{children:"Label"}),(0,r.jsx)(s.th,{children:"Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsxs)(s.tbody,{children:[(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"key"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:"string"}),(0,r.jsx)(s.td,{})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"value"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#nodemigration",children:"NodeMigration"})}),(0,r.jsx)(s.td,{})]})]})]}),"\n",(0,r.jsxs)(s.h3,{id:"threadvardef",children:["Message ",(0,r.jsx)(s.code,{children:"ThreadVarDef"})]}),"\n",(0,r.jsx)(s.p,{children:"Denotes a variable declaration at the ThreadSpec level."}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Field"}),(0,r.jsx)(s.th,{children:"Label"}),(0,r.jsx)(s.th,{children:"Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsxs)(s.tbody,{children:[(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"var_def"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#variabledef",children:"VariableDef"})}),(0,r.jsx)(s.td,{children:"Is the actual VariableDefinition containing name and type."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"required"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:"bool"}),(0,r.jsx)(s.td,{children:"Whether the variable is required as input to the threadRun."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"searchable"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:"bool"}),(0,r.jsx)(s.td,{children:"Whether this variable has an index configured."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"json_indexes"})}),(0,r.jsx)(s.td,{children:"repeated"}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#jsonindex",children:"JsonIndex"})}),(0,r.jsx)(s.td,{children:"Valid for JSON_OBJ and JSON_ARR variables only. List of JSON fields to index."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"access_level"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#wfrunvariableaccesslevel",children:"WfRunVariableAccessLevel"})}),(0,r.jsx)(s.td,{children:"The Access Level of this variable."})]})]})]}),"\n",(0,r.jsxs)(s.h3,{id:"throweventnode",children:["Message ",(0,r.jsx)(s.code,{children:"ThrowEventNode"})]}),"\n",(0,r.jsx)(s.p,{children:"A SubNode that throws a WorkflowEvent of a specific type. There is no output."}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Field"}),(0,r.jsx)(s.th,{children:"Label"}),(0,r.jsx)(s.th,{children:"Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsxs)(s.tbody,{children:[(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"event_def_id"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#workfloweventdefid",children:"WorkflowEventDefId"})}),(0,r.jsx)(s.td,{children:"The WorkflowEventDefId of the WorkflowEvent that is thrown"})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"content"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#variableassignment",children:"VariableAssignment"})}),(0,r.jsx)(s.td,{children:"A VariableAssignment defining the content of the WorkflowEvent that is thrown"})]})]})]}),"\n",(0,r.jsxs)(s.h3,{id:"usertasknode",children:["Message ",(0,r.jsx)(s.code,{children:"UserTaskNode"})]}),"\n",(0,r.jsx)(s.p,{children:"The UserTaskNode creates a UserTaskRun, which is used to get input from a human\nuser into the workflow."}),"\n",(0,r.jsx)(s.p,{children:"The output is a JSON_OBJ variable with one key/value pair for each UserTaskField."}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Field"}),(0,r.jsx)(s.th,{children:"Label"}),(0,r.jsx)(s.th,{children:"Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsxs)(s.tbody,{children:[(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"user_task_def_name"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:"string"}),(0,r.jsxs)(s.td,{children:["Denotes the name of the ",(0,r.jsx)(s.code,{children:"UserTaskDef"})," that should create the ",(0,r.jsx)(s.code,{children:"UserTaskRun"}),"."]})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"user_group"})}),(0,r.jsx)(s.td,{children:"optional"}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#variableassignment",children:"VariableAssignment"})}),(0,r.jsx)(s.td,{children:"Denotes the user_group to which the UserTaskRun is assigned upon creation."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"user_id"})}),(0,r.jsx)(s.td,{children:"optional"}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#variableassignment",children:"VariableAssignment"})}),(0,r.jsx)(s.td,{children:"Denotes the user_id to which the UserTaskRun is assigned upon creation."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"actions"})}),(0,r.jsx)(s.td,{children:"repeated"}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#utactiontrigger",children:"UTActionTrigger"})}),(0,r.jsx)(s.td,{children:'Specifies a list of actions that happen on various time-based triggers. Actions include reassigning the UserTaskRun, cancelling the UserTaskRun, or executing a "reminder" TaskRun.'})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"user_task_def_version"})}),(0,r.jsx)(s.td,{children:"optional"}),(0,r.jsx)(s.td,{children:"int32"}),(0,r.jsx)(s.td,{children:"If set, then the UserTaskRun will always have this specific version of the UserTaskDef. Otherwise, the UserTaskRun will have the latest version."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"notes"})}),(0,r.jsx)(s.td,{children:"optional"}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#variableassignment",children:"VariableAssignment"})}),(0,r.jsxs)(s.td,{children:["Specifies the value to be displayed on the ",(0,r.jsx)(s.code,{children:"notes"})," field of the UserTaskRun."]})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"on_cancellation_exception_name"})}),(0,r.jsx)(s.td,{children:"optional"}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#variableassignment",children:"VariableAssignment"})}),(0,r.jsx)(s.td,{children:"Specifies the name of the exception thrown when the User Task is canceled. If not set, then the cancellation or timeout of a User Task Run throws an ERROR rather than an EXCEPTION."})]})]})]}),"\n",(0,r.jsxs)(s.h3,{id:"waitforthreadsnode",children:["Message ",(0,r.jsx)(s.code,{children:"WaitForThreadsNode"})]}),"\n",(0,r.jsxs)(s.p,{children:["Specifies that a ThreadRun will wait for certain specified Child ThreadRun's to\ncomplete or fail before the WfRun continues. If one of the Child ThreadRun's\nthrows a Failure that is not caught by the ",(0,r.jsx)(s.code,{children:"per_thread_failure_handlers"}),",\nthen the Child ThreadRun's Failure is thrown by the WaitForThreadsRun."]}),"\n",(0,r.jsx)(s.p,{children:"No output."}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Field"}),(0,r.jsx)(s.th,{children:"Label"}),(0,r.jsx)(s.th,{children:"Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsxs)(s.tbody,{children:[(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"threads"})}),(0,r.jsxs)(s.td,{children:["oneof ",(0,r.jsx)(s.code,{children:"threads_to_wait_for"})]}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#waitforthreadsnodethreadstowaitfor",children:"WaitForThreadsNode.ThreadsToWaitFor"})}),(0,r.jsx)(s.td,{children:"Specifies that the WaitForThreadsRun will wait for the threads specified here."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"thread_list"})}),(0,r.jsxs)(s.td,{children:["oneof ",(0,r.jsx)(s.code,{children:"threads_to_wait_for"})]}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#variableassignment",children:"VariableAssignment"})}),(0,r.jsxs)(s.td,{children:["Specifies that the WaitForThreadsRun will wait for a list of ThreadRun's contained in the JSON_ARR value specified here. Each element in the list must be an INT representing the ",(0,r.jsx)(s.code,{children:"number"})," of a ThreadRun that we're waiting for."]})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"per_thread_failure_handlers"})}),(0,r.jsx)(s.td,{children:"repeated"}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#failurehandlerdef",children:"FailureHandlerDef"})}),(0,r.jsxs)(s.td,{children:["If any of the child ThreadRun's that we are waiting for throw a Failure, we will evaluate it against these FailureHandlerDef's and run the first matching FailureHandler (if any). The FailureHandler will be a child of the child, which means that it has access to all of the variables in the scope of the failed Child ThreadRun.",(0,r.jsx)("br",{}),(0,r.jsx)("br",{}),"This is different from Node-level Failure Handlers, which would be ",(0,r.jsx)(s.em,{children:"siblings"})," of the ThreadRuns that we're waiting for, and would run only when the overall nodeRun has failed."]})]})]})]}),"\n",(0,r.jsxs)(s.h3,{id:"waitforthreadsnodethreadtowaitfor",children:["Message ",(0,r.jsx)(s.code,{children:"WaitForThreadsNode.ThreadToWaitFor"})]}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Field"}),(0,r.jsx)(s.th,{children:"Label"}),(0,r.jsx)(s.th,{children:"Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsx)(s.tbody,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"thread_run_number"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#variableassignment",children:"VariableAssignment"})}),(0,r.jsx)(s.td,{children:"Causes the WaitForThreadsNodeRun to wait for the ThreadRun whose number matches the value specified here. Must resolve to an INT."})]})})]}),"\n",(0,r.jsxs)(s.h3,{id:"waitforthreadsnodethreadstowaitfor",children:["Message ",(0,r.jsx)(s.code,{children:"WaitForThreadsNode.ThreadsToWaitFor"})]}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Field"}),(0,r.jsx)(s.th,{children:"Label"}),(0,r.jsx)(s.th,{children:"Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsx)(s.tbody,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"threads"})}),(0,r.jsx)(s.td,{children:"repeated"}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#waitforthreadsnodethreadtowaitfor",children:"WaitForThreadsNode.ThreadToWaitFor"})}),(0,r.jsx)(s.td,{children:"Wait for one or more ThreadRun's"})]})})]}),"\n",(0,r.jsxs)(s.h3,{id:"wfspec",children:["Message ",(0,r.jsx)(s.code,{children:"WfSpec"})]}),"\n",(0,r.jsxs)(s.p,{children:["A ",(0,r.jsx)(s.code,{children:"WfSpec"})," defines the logic for a workflow in LittleHorse. It is a metadata object\nand is a blueprint for a ",(0,r.jsx)(s.code,{children:"WfRun"})," execution."]}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Field"}),(0,r.jsx)(s.th,{children:"Label"}),(0,r.jsx)(s.th,{children:"Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsxs)(s.tbody,{children:[(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"id"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#wfspecid",children:"WfSpecId"})}),(0,r.jsxs)(s.td,{children:["The ID of the ",(0,r.jsx)(s.code,{children:"WfSpec"}),". Note that this ID is versioned with both a major version and a minor revision. Creating new WfSpec's with the same name and different specifications results in a completely new ",(0,r.jsx)(s.code,{children:"WfSpec"})," object whose ",(0,r.jsx)(s.code,{children:"id.name"})," is the same but with different version."]})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"created_at"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:"google.protobuf.Timestamp"}),(0,r.jsxs)(s.td,{children:["The timestamp at which the ",(0,r.jsx)(s.code,{children:"WfSpec"})," was created."]})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"frozen_variables"})}),(0,r.jsx)(s.td,{children:"repeated"}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#threadvardef",children:"ThreadVarDef"})}),(0,r.jsx)(s.td,{children:"Variables whose types cannot be changed without causing a Breaking Change between the versions."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"status"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#metadatastatus",children:"MetadataStatus"})}),(0,r.jsxs)(s.td,{children:["The Status of the ",(0,r.jsx)(s.code,{children:"WfSpec"}),". Currently, only ",(0,r.jsx)(s.code,{children:"ACTIVE"})," exists. This field will be used in the future when de-commissioning a WfSpec gracefully."]})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"thread_specs"})}),(0,r.jsx)(s.td,{children:"map"}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#wfspecthreadspecsentry",children:"WfSpec.ThreadSpecsEntry"})}),(0,r.jsxs)(s.td,{children:["The various ThreadSpec's in this ",(0,r.jsx)(s.code,{children:"WfSpec"}),". Each ",(0,r.jsx)(s.code,{children:"ThreadSpec"})," defines a blueprint for a parallel thread of execution (a ",(0,r.jsx)(s.code,{children:"ThreadRun"}),"). They are referred to by their names."]})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"entrypoint_thread_name"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:"string"}),(0,r.jsxs)(s.td,{children:["The name of the ",(0,r.jsx)(s.code,{children:"ENTRYPOINT"})," ThreadSpec. The Entrypoint is the ",(0,r.jsx)(s.code,{children:"ThreadSpec"})," for the Entrypoint ThreadRun, which is the ",(0,r.jsx)(s.code,{children:"ThreadRun"})," that is created upon starting the ",(0,r.jsx)(s.code,{children:"WfRun"}),"."]})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"retention_policy"})}),(0,r.jsx)(s.td,{children:"optional"}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#workflowretentionpolicy",children:"WorkflowRetentionPolicy"})}),(0,r.jsxs)(s.td,{children:["Optional policy that configures cleaning up old ",(0,r.jsx)(s.code,{children:"WfRun"}),"'s after they are completed or failed. Recommended for production settings to avoid running out of disk space; unless you are using a ",(0,r.jsx)(s.code,{children:"WfRun"})," as a data record, in which case the application should clean up ",(0,r.jsx)(s.code,{children:"WfRun"}),"'s as appropriate."]})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"migration"})}),(0,r.jsx)(s.td,{children:"optional"}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#wfspecversionmigration",children:"WfSpecVersionMigration"})}),(0,r.jsxs)(s.td,{children:["EXPERIMENTAL: ongoing migration from one version of a ",(0,r.jsx)(s.code,{children:"WfSpec"})," to another."]})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"parent_wf_spec"})}),(0,r.jsx)(s.td,{children:"optional"}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#wfspecparentwfspecreference",children:"WfSpec.ParentWfSpecReference"})}),(0,r.jsx)(s.td,{children:"Reference to the parent WfSpec. If this is set, all WfRun's for this WfSpec must be the child of a WfRun belonging to the referenced WfSpec."})]})]})]}),"\n",(0,r.jsxs)(s.h3,{id:"wfspecparentwfspecreference",children:["Message ",(0,r.jsx)(s.code,{children:"WfSpec.ParentWfSpecReference"})]}),"\n",(0,r.jsxs)(s.p,{children:["Reference to another WfSpec. If a WfSpec has a ParentWfSpecReference, then all\nWfRun's for that WfSpec ",(0,r.jsx)(s.em,{children:"MUST"})," be the child of a WfRun of the provided WfSpec; meaning\nthat the RunWf RPC must provide a ",(0,r.jsx)(s.code,{children:"parent_wf_run_id"})," that belongs to the specified\nWfSpec."]}),"\n",(0,r.jsx)(s.p,{children:"Currently, only reference by names is supported."}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Field"}),(0,r.jsx)(s.th,{children:"Label"}),(0,r.jsx)(s.th,{children:"Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsxs)(s.tbody,{children:[(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"wf_spec_name"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:"string"}),(0,r.jsx)(s.td,{children:"Name of the Parent WfSpec"})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"wf_spec_major_version"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:"int32"}),(0,r.jsx)(s.td,{children:"FOR NOW: no validation of variables on parent. In the future we will pass wf_spec_major_version, but we should probably examine the rules for evolution in the future."})]})]})]}),"\n",(0,r.jsxs)(s.h3,{id:"wfspecthreadspecsentry",children:["Message ",(0,r.jsx)(s.code,{children:"WfSpec.ThreadSpecsEntry"})]}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Field"}),(0,r.jsx)(s.th,{children:"Label"}),(0,r.jsx)(s.th,{children:"Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsxs)(s.tbody,{children:[(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"key"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:"string"}),(0,r.jsx)(s.td,{})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"value"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#threadspec",children:"ThreadSpec"})}),(0,r.jsx)(s.td,{})]})]})]}),"\n",(0,r.jsxs)(s.h3,{id:"wfspecversionmigration",children:["Message ",(0,r.jsx)(s.code,{children:"WfSpecVersionMigration"})]}),"\n",(0,r.jsx)(s.p,{children:"EXPERIMENTAL: Specification for how to migrate an in-flight WfRun from one WfSpec\nto another WfSpec version."}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Field"}),(0,r.jsx)(s.th,{children:"Label"}),(0,r.jsx)(s.th,{children:"Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsxs)(s.tbody,{children:[(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"new_major_version"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:"int32"}),(0,r.jsx)(s.td,{children:"The major version of the WfSpec that we are migrating to."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"new_revision"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:"int32"}),(0,r.jsx)(s.td,{children:"The revision of the WfSpec that we are migrating to."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"thread_spec_migrations"})}),(0,r.jsx)(s.td,{children:"map"}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#wfspecversionmigrationthreadspecmigrationsentry",children:"WfSpecVersionMigration.ThreadSpecMigrationsEntry"})}),(0,r.jsx)(s.td,{children:"Map from ThreadSpec name to a specifier determining how to migrate ThreadRun's to the new version of the WfSpec."})]})]})]}),"\n",(0,r.jsxs)(s.h3,{id:"wfspecversionmigrationthreadspecmigrationsentry",children:["Message ",(0,r.jsx)(s.code,{children:"WfSpecVersionMigration.ThreadSpecMigrationsEntry"})]}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Field"}),(0,r.jsx)(s.th,{children:"Label"}),(0,r.jsx)(s.th,{children:"Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsxs)(s.tbody,{children:[(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"key"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:"string"}),(0,r.jsx)(s.td,{})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"value"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#threadspecmigration",children:"ThreadSpecMigration"})}),(0,r.jsx)(s.td,{})]})]})]}),"\n",(0,r.jsxs)(s.h3,{id:"workflowretentionpolicy",children:["Message ",(0,r.jsx)(s.code,{children:"WorkflowRetentionPolicy"})]}),"\n",(0,r.jsx)(s.p,{children:"A WorkflowRetentionPolicy configures how long a WfRun is retained in the data store before\nbeing deleted after it is completed or failed."}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Field"}),(0,r.jsx)(s.th,{children:"Label"}),(0,r.jsx)(s.th,{children:"Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsx)(s.tbody,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"seconds_after_wf_termination"})}),(0,r.jsxs)(s.td,{children:["oneof ",(0,r.jsx)(s.code,{children:"wf_gc_policy"})]}),(0,r.jsx)(s.td,{children:"int64"}),(0,r.jsx)(s.td,{children:"Delete all WfRun's X seconds after they terminate, regardless of status."})]})})]}),"\n",(0,r.jsxs)(s.h3,{id:"workflowevent",children:["Message ",(0,r.jsx)(s.code,{children:"WorkflowEvent"})]}),"\n",(0,r.jsxs)(s.p,{children:['A WorkflowEvent represents a "Thing That Happened" ',(0,r.jsx)(s.em,{children:"INSIDE"})," a WfRun. It is DIFFERENT from\nan ExternalEvent, because an ExternalEvent represents something that happened OUTSIDE the WfRun,\nand is used to send information to the WfRun."]}),"\n",(0,r.jsx)(s.p,{children:"In contrast, a WorkflowEvent is thrown by the WfRun and is used to send information to the outside\nworld."}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Field"}),(0,r.jsx)(s.th,{children:"Label"}),(0,r.jsx)(s.th,{children:"Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsxs)(s.tbody,{children:[(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"id"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#workfloweventid",children:"WorkflowEventId"})}),(0,r.jsx)(s.td,{children:"The ID of the WorkflowEvent. Contains WfRunId and WorkflowEventDefId."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"content"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#variablevalue",children:"VariableValue"})}),(0,r.jsx)(s.td,{children:"The content of the WorkflowEvent."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"created_at"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:"google.protobuf.Timestamp"}),(0,r.jsx)(s.td,{children:"The time that the WorkflowEvent was created."})]})]})]}),"\n",(0,r.jsxs)(s.h3,{id:"workfloweventdef",children:["Message ",(0,r.jsx)(s.code,{children:"WorkflowEventDef"})]}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Field"}),(0,r.jsx)(s.th,{children:"Label"}),(0,r.jsx)(s.th,{children:"Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsxs)(s.tbody,{children:[(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"id"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#workfloweventdefid",children:"WorkflowEventDefId"})}),(0,r.jsx)(s.td,{})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"created_at"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:"google.protobuf.Timestamp"}),(0,r.jsx)(s.td,{})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"type"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#variabletype",children:"VariableType"})}),(0,r.jsx)(s.td,{})]})]})]}),"\n",(0,r.jsx)(s.h2,{id:"littlehorse-enums",children:"LittleHorse Enums"}),"\n",(0,r.jsx)(s.p,{children:"This section contains the enums defined by the LittleHorse API."}),"\n",(0,r.jsx)(s.h3,{id:"aclaction",children:"Enum ACLAction"}),"\n",(0,r.jsx)(s.p,{children:"Describes an Action that can be taken over a specific set of resources."}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Name"}),(0,r.jsx)(s.th,{children:"Number"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsxs)(s.tbody,{children:[(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:"READ"}),(0,r.jsx)(s.td,{children:"0"}),(0,r.jsxs)(s.td,{children:["Allows all RPC's that start with ",(0,r.jsx)(s.code,{children:"Get"}),", ",(0,r.jsx)(s.code,{children:"List"}),", and ",(0,r.jsx)(s.code,{children:"Search"})," in relation to the metadata (eg. ",(0,r.jsx)(s.code,{children:"TaskDef"})," for ",(0,r.jsx)(s.code,{children:"ACL_TASK"}),") or run data (eg. ",(0,r.jsx)(s.code,{children:"TaskRun"})," for ",(0,r.jsx)(s.code,{children:"ACL_TASK"}),")"]})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:"RUN"}),(0,r.jsx)(s.td,{children:"1"}),(0,r.jsxs)(s.td,{children:["Allows RPC's that are needed for mutating the ",(0,r.jsx)(s.em,{children:"runs"})," of the resource. For example, ",(0,r.jsx)(s.code,{children:"RUN"})," over ",(0,r.jsx)(s.code,{children:"ACL_TASK"})," allows the ",(0,r.jsx)(s.code,{children:"ReportTask"})," and ",(0,r.jsx)(s.code,{children:"PollTask"})," RPC's, and ",(0,r.jsx)(s.code,{children:"RUN"})," over ",(0,r.jsx)(s.code,{children:"ACL_WORKFLOW"})," allows the ",(0,r.jsx)(s.code,{children:"RunWf"}),", ",(0,r.jsx)(s.code,{children:"DeleteWfRun"}),", ",(0,r.jsx)(s.code,{children:"StopWfRun"}),", and ",(0,r.jsx)(s.code,{children:"ResumeWfRun"})," RPC's."]})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:"WRITE_METADATA"}),(0,r.jsx)(s.td,{children:"2"}),(0,r.jsxs)(s.td,{children:["Allows mutating metadata. For example, ",(0,r.jsx)(s.code,{children:"WRITE_METADATA"})," over ",(0,r.jsx)(s.code,{children:"ACL_WORKFLOW"})," allows mutating ",(0,r.jsx)(s.code,{children:"WfSpec"}),"s, and ",(0,r.jsx)(s.code,{children:"WRITE_METADATA"})," over ",(0,r.jsx)(s.code,{children:"ACL_TASK"})," allows mutating ",(0,r.jsx)(s.code,{children:"TaskDef"}),"s."]})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:"ALL_ACTIONS"}),(0,r.jsx)(s.td,{children:"3"}),(0,r.jsx)(s.td,{children:"Allows all actions related to a resource."})]})]})]}),"\n",(0,r.jsx)(s.h3,{id:"aclresource",children:"Enum ACLResource"}),"\n",(0,r.jsx)(s.p,{children:"Defines a resource type for ACL's."}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Name"}),(0,r.jsx)(s.th,{children:"Number"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsxs)(s.tbody,{children:[(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:"ACL_WORKFLOW"}),(0,r.jsx)(s.td,{children:"0"}),(0,r.jsxs)(s.td,{children:["Refers to ",(0,r.jsx)(s.code,{children:"WfSpec"})," and ",(0,r.jsx)(s.code,{children:"WfRun"})]})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:"ACL_TASK"}),(0,r.jsx)(s.td,{children:"1"}),(0,r.jsxs)(s.td,{children:["Refers to ",(0,r.jsx)(s.code,{children:"TaskDef"})," and ",(0,r.jsx)(s.code,{children:"TaskRun"})]})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:"ACL_EXTERNAL_EVENT"}),(0,r.jsx)(s.td,{children:"2"}),(0,r.jsxs)(s.td,{children:["Refers to ",(0,r.jsx)(s.code,{children:"ExternalEventDef"})," and ",(0,r.jsx)(s.code,{children:"ExternalEvent"})]})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:"ACL_USER_TASK"}),(0,r.jsx)(s.td,{children:"3"}),(0,r.jsxs)(s.td,{children:["Refers to ",(0,r.jsx)(s.code,{children:"UserTaskDef"})," and ",(0,r.jsx)(s.code,{children:"UserTaskRun"})]})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:"ACL_PRINCIPAL"}),(0,r.jsx)(s.td,{children:"4"}),(0,r.jsxs)(s.td,{children:["Refers to the ",(0,r.jsx)(s.code,{children:"Principal"})," resource. Currently, the ",(0,r.jsx)(s.code,{children:"ACL_PRINCIPAL"})," permission is only valid in the ",(0,r.jsx)(s.code,{children:"global_acls"})," field of the ",(0,r.jsx)(s.code,{children:"Principal"}),". A ",(0,r.jsx)(s.code,{children:"Principal"})," who only has access to a specific Tenant cannot create othe Principals because a Principal is scoped to the Cluster, and not to a Tenant."]})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:"ACL_TENANT"}),(0,r.jsx)(s.td,{children:"5"}),(0,r.jsxs)(s.td,{children:["Refers to the ",(0,r.jsx)(s.code,{children:"Tenant"})," resource. The ",(0,r.jsx)(s.code,{children:"ACL_TENANT"})," permission is only valid in the ",(0,r.jsx)(s.code,{children:"global_acls"})," field of the ",(0,r.jsx)(s.code,{children:"Principal"}),". This is because the ",(0,r.jsx)(s.code,{children:"Tenant"})," resource is cluste-rscoped."]})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:"ACL_ALL_RESOURCES"}),(0,r.jsx)(s.td,{children:"6"}),(0,r.jsxs)(s.td,{children:["Refers to all resources. In the ",(0,r.jsx)(s.code,{children:"global_acls"})," field, this includes ",(0,r.jsx)(s.code,{children:"Principal"})," and ",(0,r.jsx)(s.code,{children:"Tenant"})," resources. In the ",(0,r.jsx)(s.code,{children:"per_tenant_acls"})," field, this does not include ",(0,r.jsx)(s.code,{children:"Principal"})," and ",(0,r.jsx)(s.code,{children:"Tenant"})," since those are cluster-scoped resources."]})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:"ACL_TASK_WORKER_GROUP"}),(0,r.jsx)(s.td,{children:"7"}),(0,r.jsxs)(s.td,{children:["Refers to the ",(0,r.jsx)(s.code,{children:"TaskWorkerGroup"})," associated with a TaskDef"]})]})]})]}),"\n",(0,r.jsx)(s.h3,{id:"lherrortype",children:"Enum LHErrorType"}),"\n",(0,r.jsx)(s.p,{children:"This enum is all of the types of technical failure that can occur in a WfRun."}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Name"}),(0,r.jsx)(s.th,{children:"Number"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsxs)(s.tbody,{children:[(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:"CHILD_FAILURE"}),(0,r.jsx)(s.td,{children:"0"}),(0,r.jsx)(s.td,{children:"A child ThreadRun failed with a technical ERROR."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:"VAR_SUB_ERROR"}),(0,r.jsx)(s.td,{children:"1"}),(0,r.jsx)(s.td,{children:"Failed substituting input variables into a NodeRun."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:"VAR_MUTATION_ERROR"}),(0,r.jsx)(s.td,{children:"2"}),(0,r.jsx)(s.td,{children:"Failed mutating variables after a NodeRun successfully completed."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:"USER_TASK_CANCELLED"}),(0,r.jsx)(s.td,{children:"3"}),(0,r.jsx)(s.td,{children:"A UserTaskRun was cancelled (EVOLVING: this will become a Business EXCEPTION)"})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:"TIMEOUT"}),(0,r.jsx)(s.td,{children:"4"}),(0,r.jsx)(s.td,{children:"A NodeRun failed due to a timeout."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:"TASK_FAILURE"}),(0,r.jsx)(s.td,{children:"5"}),(0,r.jsx)(s.td,{children:"A TaskRun failed due to an unexpected error."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:"VAR_ERROR"}),(0,r.jsx)(s.td,{children:"6"}),(0,r.jsx)(s.td,{children:"Wrapper for VAR_SUB_ERROR and VAR_MUTATION_ERROR"})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:"TASK_ERROR"}),(0,r.jsx)(s.td,{children:"7"}),(0,r.jsx)(s.td,{children:"Wrapper for TASK_FALIURE and TIMEOUT"})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:"INTERNAL_ERROR"}),(0,r.jsx)(s.td,{children:"8"}),(0,r.jsx)(s.td,{children:"An unexpected LittleHorse Internal error occurred. This is not expected to happen."})]})]})]}),"\n",(0,r.jsx)(s.h3,{id:"lhstatus",children:"Enum LHStatus"}),"\n",(0,r.jsx)(s.p,{children:"Status used for WfRun, ThreadRun, and NodeRun"}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Name"}),(0,r.jsx)(s.th,{children:"Number"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsxs)(s.tbody,{children:[(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:"STARTING"}),(0,r.jsx)(s.td,{children:"0"}),(0,r.jsx)(s.td,{children:"The entity is starting."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:"RUNNING"}),(0,r.jsx)(s.td,{children:"1"}),(0,r.jsx)(s.td,{children:"The entity is running."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:"COMPLETED"}),(0,r.jsx)(s.td,{children:"2"}),(0,r.jsx)(s.td,{children:"The entity is completed. This is a terminal state."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:"HALTING"}),(0,r.jsx)(s.td,{children:"3"}),(0,r.jsxs)(s.td,{children:["The entity will move to ",(0,r.jsx)(s.code,{children:"HALTED"})," as soon as all preconditions for halting are satisfied."]})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:"HALTED"}),(0,r.jsx)(s.td,{children:"4"}),(0,r.jsx)(s.td,{children:"The entity is halted, either by user intervention or by the workflow scheduler."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:"ERROR"}),(0,r.jsx)(s.td,{children:"5"}),(0,r.jsx)(s.td,{children:"The entity has failed due to a technical failure, such as a type conversion error, a task timeout due to network failure, or a task worker crash."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:"EXCEPTION"}),(0,r.jsx)(s.td,{children:"6"}),(0,r.jsx)(s.td,{children:"The entity has failed due to a business exception defined by the user."})]})]})]}),"\n",(0,r.jsx)(s.h3,{id:"metadatastatus",children:"Enum MetadataStatus"}),"\n",(0,r.jsx)(s.p,{children:"Status of a Metadata Object, such as WfSpec or TaskDef"}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Name"}),(0,r.jsx)(s.th,{children:"Number"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsxs)(s.tbody,{children:[(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:"ACTIVE"}),(0,r.jsx)(s.td,{children:"0"}),(0,r.jsx)(s.td,{children:"ACTIVE means the object can be used."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:"ARCHIVED"}),(0,r.jsx)(s.td,{children:"1"}),(0,r.jsx)(s.td,{children:"An ARCHIVED WfSpec can no longer be used to create new WfRun's, but existing WfRun's will be allowed to run to completion."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:"TERMINATING"}),(0,r.jsx)(s.td,{children:"2"}),(0,r.jsx)(s.td,{children:"A TERMINATING WfSpec is actively deleting all running WfRun's, and will self-destruct once all of its child WfRun's are terminated."})]})]})]}),"\n",(0,r.jsx)(s.h3,{id:"metricswindowlength",children:"Enum MetricsWindowLength"}),"\n",(0,r.jsx)(s.p,{children:"Metrics"}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Name"}),(0,r.jsx)(s.th,{children:"Number"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsxs)(s.tbody,{children:[(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:"MINUTES_5"}),(0,r.jsx)(s.td,{children:"0"}),(0,r.jsx)(s.td,{})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:"HOURS_2"}),(0,r.jsx)(s.td,{children:"1"}),(0,r.jsx)(s.td,{})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:"DAYS_1"}),(0,r.jsx)(s.td,{children:"2"}),(0,r.jsx)(s.td,{})]})]})]}),"\n",(0,r.jsx)(s.h3,{id:"taskstatus",children:"Enum TaskStatus"}),"\n",(0,r.jsx)(s.p,{children:"Status of a TaskRun."}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Name"}),(0,r.jsx)(s.th,{children:"Number"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsxs)(s.tbody,{children:[(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:"TASK_SCHEDULED"}),(0,r.jsx)(s.td,{children:"0"}),(0,r.jsx)(s.td,{children:"Scheduled in the Task Queue but not yet picked up by a Task Worker."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:"TASK_RUNNING"}),(0,r.jsx)(s.td,{children:"1"}),(0,r.jsx)(s.td,{children:"Picked up by a Task Worker, but not yet reported or timed out."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:"TASK_SUCCESS"}),(0,r.jsx)(s.td,{children:"2"}),(0,r.jsx)(s.td,{children:"Successfully completed."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:"TASK_FAILED"}),(0,r.jsx)(s.td,{children:"3"}),(0,r.jsx)(s.td,{children:"Task Worker reported a technical failure while attempting to execute the TaskRun"})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:"TASK_TIMEOUT"}),(0,r.jsx)(s.td,{children:"4"}),(0,r.jsx)(s.td,{children:"Task Worker did not report a result in time."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:"TASK_OUTPUT_SERIALIZING_ERROR"}),(0,r.jsx)(s.td,{children:"5"}),(0,r.jsx)(s.td,{children:"Task Worker reported that it was unable to serialize the output of the TaskRun."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:"TASK_INPUT_VAR_SUB_ERROR"}),(0,r.jsx)(s.td,{children:"6"}),(0,r.jsx)(s.td,{children:"Task Worker was unable to deserialize the input variables into appropriate language-specific objects to pass into the Task Function"})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:"TASK_EXCEPTION"}),(0,r.jsx)(s.td,{children:"8"}),(0,r.jsx)(s.td,{children:"Task Function business logic determined that there was a business exception."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:"TASK_PENDING"}),(0,r.jsx)(s.td,{children:"9"}),(0,r.jsx)(s.td,{children:'Refers to a TaskAttempt that is not yet scheduled. This happens when using retries with an ExponentialBackoffRetryPolicy: the TaskAttempt isn\'t supposed to be scheduled until it "matures", but it does already exist.'})]})]})]}),"\n",(0,r.jsx)(s.h3,{id:"variabletype",children:"Enum VariableType"}),"\n",(0,r.jsx)(s.p,{children:"Type of a Varaible in LittleHorse. Corresponds to the possible value type's of a\nVariableValue."}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Name"}),(0,r.jsx)(s.th,{children:"Number"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsx)(s.tbody,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:"JSON_OBJ"}),(0,r.jsx)(s.td,{children:"0"}),(0,r.jsxs)(s.td,{children:["An object represented as a json string. ",(0,r.jsx)("br",{})]})]})})]}),"\n",(0,r.jsxs)(s.p,{children:["The ",(0,r.jsx)(s.code,{children:"JSON_OBJ"})," variable allows you to store complex objects in the JSON format. When using the Java and GoLang SDK's, the ",(0,r.jsx)(s.code,{children:"JSON_OBJ"})," variable type is often used transparently to the user. For example, the Java Task Worker SDK can inspect your method signature and automatically deserialize an input variable into a POJO. |\n| JSON_ARR | 1 | The ",(0,r.jsx)(s.code,{children:"JSON_ARR"})," variable allows you to store collections of objects as a JSON array. The behavior is similar to the ",(0,r.jsx)(s.code,{children:"JSON_OBJ"})," variable type. |\n| DOUBLE | 2 | The ",(0,r.jsx)(s.code,{children:"DOUBLE"})," variable type is a 64-bit floating point number. It can be cast to an ",(0,r.jsx)(s.code,{children:"INT"}),". |\n| BOOL | 3 | Boolean denotes a simple boolean switch. |\n| STR | 4 | The ",(0,r.jsx)(s.code,{children:"STR"})," variable type is stored as a String. ",(0,r.jsx)(s.code,{children:"INT"}),", ",(0,r.jsx)(s.code,{children:"DOUBLE"}),", and ",(0,r.jsx)(s.code,{children:"BOOL"})," variables can be cast to a ",(0,r.jsx)(s.code,{children:"STR"}),". |\n| INT | 5 | The ",(0,r.jsx)(s.code,{children:"INT"})," variable type is stored as a 64-bit integer. The ",(0,r.jsx)(s.code,{children:"INT"})," can be cast to a ",(0,r.jsx)(s.code,{children:"DOUBLE"}),". |\n| BYTES | 6 | The ",(0,r.jsx)(s.code,{children:"BYTES"})," variable type allows you to store an arbitrary byte string. |"]}),"\n",(0,r.jsx)(s.h3,{id:"comparator",children:"Enum Comparator"}),"\n",(0,r.jsx)(s.p,{children:"Operator for comparing two values to create a boolean expression."}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Name"}),(0,r.jsx)(s.th,{children:"Number"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsxs)(s.tbody,{children:[(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:"LESS_THAN"}),(0,r.jsx)(s.td,{children:"0"}),(0,r.jsxs)(s.td,{children:["Equivalent to ",(0,r.jsx)(s.code,{children:"<"}),". Only valid for primitive types (no JSON_OBJ or JSON_ARR)."]})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:"GREATER_THAN"}),(0,r.jsx)(s.td,{children:"1"}),(0,r.jsxs)(s.td,{children:["Equivalent to ",(0,r.jsx)(s.code,{children:">"}),". Only valid for primitive types (no JSON_OBJ or JSON_ARR)."]})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:"LESS_THAN_EQ"}),(0,r.jsx)(s.td,{children:"2"}),(0,r.jsxs)(s.td,{children:["Equivalent to ",(0,r.jsx)(s.code,{children:"<="}),". Only valid for primitive types (no JSON_OBJ or JSON_ARR)."]})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:"GREATER_THAN_EQ"}),(0,r.jsx)(s.td,{children:"3"}),(0,r.jsxs)(s.td,{children:["Equivalent to ",(0,r.jsx)(s.code,{children:">="}),". Only valid for primitive types (no JSON_OBJ or JSON_ARR)."]})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:"EQUALS"}),(0,r.jsx)(s.td,{children:"4"}),(0,r.jsx)(s.td,{children:"This is valid for any variable type, and is similar to .equals() in Java."})]})]})]}),"\n",(0,r.jsxs)(s.p,{children:["One note: if the RHS is a different type from the LHS, then LittleHorse will try to cast the RHS to the same type as the LHS. If the cast fails, then the ThreadRun fails with a VAR_SUB_ERROR. |\n| NOT_EQUALS | 5 | This is the inverse of ",(0,r.jsx)(s.code,{children:"EQUALS"})," |\n| IN | 6 | Only valid if the RHS is a JSON_OBJ or JSON_ARR. Valid for any type on the LHS."]}),"\n",(0,r.jsxs)(s.p,{children:["For the JSON_OBJ type, this returns true if the LHS is equal to a ",(0,r.jsx)(s.em,{children:"KEY"})," in the RHS. For the JSON_ARR type, it returns true if one of the elements of the RHS is equal to the LHS. |\n| NOT_IN | 7 | The inverse of IN. |"]}),"\n",(0,r.jsx)(s.h3,{id:"utactiontriggeruthook",children:"Enum UTActionTrigger.UTHook"}),"\n",(0,r.jsx)(s.p,{children:"Enumerates the different lifecycle hooks that can cause the timer to start running."}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Name"}),(0,r.jsx)(s.th,{children:"Number"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsxs)(s.tbody,{children:[(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:"ON_ARRIVAL"}),(0,r.jsx)(s.td,{children:"0"}),(0,r.jsxs)(s.td,{children:["The hook should be scheduled ",(0,r.jsx)(s.code,{children:"delay_seconds"})," after the UserTaskRun is created. This hook only causes the action to be scheduled once."]})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:"ON_TASK_ASSIGNED"}),(0,r.jsx)(s.td,{children:"1"}),(0,r.jsxs)(s.td,{children:["The hook should be scheduled ",(0,r.jsx)(s.code,{children:"delay_seconds"}),' after the ownership of the UserTaskRun changes. This hook causes the Action to be scheduled one or more times. The first time is scheduled when the UserTaskRun is created, since we treat the change from "UserTaskRun is nonexistent" to "UserTaskRun is owned by a userId or userGroup" as a change in ownership.']})]})]})]}),"\n",(0,r.jsx)(s.h3,{id:"variablemutationtype",children:"Enum VariableMutationType"}),"\n",(0,r.jsx)(s.p,{children:"Enumerates the available operations to mutate a variable in a WfRun."}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Name"}),(0,r.jsx)(s.th,{children:"Number"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsxs)(s.tbody,{children:[(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:"ASSIGN"}),(0,r.jsx)(s.td,{children:"0"}),(0,r.jsx)(s.td,{children:"Set the variable specified by the LHS to the value of the RHS."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:"ADD"}),(0,r.jsx)(s.td,{children:"1"}),(0,r.jsx)(s.td,{children:"Add the RHS to the LHS."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:"EXTEND"}),(0,r.jsx)(s.td,{children:"2"}),(0,r.jsx)(s.td,{children:"Append the RHS to the LHS (valid if the LHS is a STR or JSON_ARR)"})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:"SUBTRACT"}),(0,r.jsx)(s.td,{children:"3"}),(0,r.jsx)(s.td,{children:"Subtract the RHS from the LHS (both must be INT or DOUBLE)"})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:"MULTIPLY"}),(0,r.jsx)(s.td,{children:"4"}),(0,r.jsx)(s.td,{children:"Multiply the LHS by the RHS (both must be INT or DOUBLE)"})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:"DIVIDE"}),(0,r.jsx)(s.td,{children:"5"}),(0,r.jsx)(s.td,{children:"Divide the LHS by the RHS (both must be INT or DOUBLE)"})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:"REMOVE_IF_PRESENT"}),(0,r.jsx)(s.td,{children:"6"}),(0,r.jsx)(s.td,{children:"Remove any occurrences of RHS from LHS (LHS must be JSON_ARR)"})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:"REMOVE_INDEX"}),(0,r.jsx)(s.td,{children:"7"}),(0,r.jsx)(s.td,{children:"Remove item at index RHS from LHS (LHS must be JSON_ARR)"})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:"REMOVE_KEY"}),(0,r.jsx)(s.td,{children:"8"}),(0,r.jsx)(s.td,{children:"Remove the key specified by RHS from the LHS (LHS must be JSON_OBJ)"})]})]})]}),"\n",(0,r.jsx)(s.h3,{id:"waitforthreadsrunwaitingthreadstatus",children:"Enum WaitForThreadsRun.WaitingThreadStatus"}),"\n",(0,r.jsx)(s.p,{children:"The status of a single ThreadRun that we are waiting for."}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Name"}),(0,r.jsx)(s.th,{children:"Number"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsxs)(s.tbody,{children:[(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:"THREAD_IN_PROGRESS"}),(0,r.jsx)(s.td,{children:"0"}),(0,r.jsx)(s.td,{children:"The ThreadRun is in progress (i.e. not COMPLETED nor EXCEPTION nor ERROR)"})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:"THREAD_HANDLING_FAILURE"}),(0,r.jsx)(s.td,{children:"1"}),(0,r.jsx)(s.td,{children:"The ThreadRun failed with some failure, and the FailureHandler is running for that Failure."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:"THREAD_COMPLETED_OR_FAILURE_HANDLED"}),(0,r.jsx)(s.td,{children:"2"}),(0,r.jsx)(s.td,{children:'We can mark this ThreadRun as "already waited for", meaning that either: 1. It completed successfully, OR 2. It failed, and the Failure Handler successfully completed'})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:"THREAD_UNSUCCESSFUL"}),(0,r.jsx)(s.td,{children:"3"}),(0,r.jsx)(s.td,{children:"The ThreadRun did not complete successfully, and there wasn't a successful run of a Failure Handler for the Failure that was thrown."})]})]})]}),"\n",(0,r.jsx)(s.h3,{id:"allowedupdatetype",children:"Enum AllowedUpdateType"}),"\n",(0,r.jsx)(s.p,{children:"This enum controls the behavior of a PutWfSpecRequest when a WfSpec with the same\nname previously exists."}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Name"}),(0,r.jsx)(s.th,{children:"Number"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsxs)(s.tbody,{children:[(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:"ALL_UPDATES"}),(0,r.jsx)(s.td,{children:"0"}),(0,r.jsx)(s.td,{children:"Allows any update: both minor (revsion) changes and breaking (majorVersion) changes are accepted"})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:"MINOR_REVISION_UPDATES"}),(0,r.jsx)(s.td,{children:"1"}),(0,r.jsx)(s.td,{children:"Allows only backwards-compatible changes that do not change the required input variables or the searchable variables in the WfSpec."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:"NO_UPDATES"}),(0,r.jsx)(s.td,{children:"2"}),(0,r.jsx)(s.td,{children:"Rejects any changes to the WfSpec."})]})]})]}),"\n",(0,r.jsx)(s.h3,{id:"searchnoderunrequestnodetype",children:"Enum SearchNodeRunRequest.NodeType"}),"\n",(0,r.jsx)(s.p,{children:"This enum denotes the type of a NodeRun."}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Name"}),(0,r.jsx)(s.th,{children:"Number"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsxs)(s.tbody,{children:[(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:"TASK"}),(0,r.jsx)(s.td,{children:"0"}),(0,r.jsx)(s.td,{children:"TASK node schedules a TaskRun"})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:"EXTERNAL_EVENT"}),(0,r.jsx)(s.td,{children:"1"}),(0,r.jsx)(s.td,{children:"EXTERNAL_EVENT blocks the ThreadRun until a specified ExternalEvent arrives"})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:"ENTRYPOINT"}),(0,r.jsx)(s.td,{children:"2"}),(0,r.jsx)(s.td,{children:"ENTRYPOINT kicks off a ThreadRun"})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:"EXIT"}),(0,r.jsx)(s.td,{children:"3"}),(0,r.jsx)(s.td,{children:"EXIT completes a ThreadRun"})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:"START_THREAD"}),(0,r.jsx)(s.td,{children:"4"}),(0,r.jsx)(s.td,{children:"START_THREAD creates a Child ThreadRun"})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:"WAIT_THREADS"}),(0,r.jsx)(s.td,{children:"5"}),(0,r.jsx)(s.td,{children:"WAIT_THREADS waits for one or more child ThreadRuns to complete"})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:"SLEEP"}),(0,r.jsx)(s.td,{children:"6"}),(0,r.jsx)(s.td,{children:"SLEEP makes the ThreadRun sleep for a specified time"})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:"USER_TASK"}),(0,r.jsx)(s.td,{children:"7"}),(0,r.jsx)(s.td,{children:"USER_TASK creates a UserTaskRun and blocks until the UserTaskRun is completed."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:"START_MULTIPLE_THREADS"}),(0,r.jsx)(s.td,{children:"8"}),(0,r.jsx)(s.td,{children:"START_MULTIPLE_THREADS iterates over a list and starts a Child Thread for each item"})]})]})]}),"\n",(0,r.jsx)(s.h3,{id:"saveusertaskrunprogressrequestsaveusertaskrunassignmentpolicy",children:"Enum SaveUserTaskRunProgressRequest.SaveUserTaskRunAssignmentPolicy"}),"\n",(0,r.jsxs)(s.p,{children:["Configures how to handle ",(0,r.jsx)(s.code,{children:"UserTaskRun"})," ownership when saving it."]}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Name"}),(0,r.jsx)(s.th,{children:"Number"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsxs)(s.tbody,{children:[(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:"FAIL_IF_CLAIMED_BY_OTHER"}),(0,r.jsx)(s.td,{children:"0"}),(0,r.jsx)(s.td,{children:"If the UserTaskRun is already assigned to a user_id, then the request throws a FAILED_PRECONDITION error."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:"IGNORE_CLAIM"}),(0,r.jsx)(s.td,{children:"1"}),(0,r.jsxs)(s.td,{children:["If the UserTaskRun is already assigned to a user_id, then the request will leave the ",(0,r.jsx)(s.code,{children:"UserTaskRun"})," assigned to the current user but still update the ",(0,r.jsx)(s.code,{children:"results"})," and log in the ",(0,r.jsx)(s.code,{children:"events"})," who updated the results."]})]})]})]}),"\n",(0,r.jsx)(s.h3,{id:"usertaskrunstatus",children:"Enum UserTaskRunStatus"}),"\n",(0,r.jsx)(s.p,{children:"The status that a UserTaskRun can be in."}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Name"}),(0,r.jsx)(s.th,{children:"Number"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsxs)(s.tbody,{children:[(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:"UNASSIGNED"}),(0,r.jsx)(s.td,{children:"0"}),(0,r.jsx)(s.td,{children:"Not assigned to a specific user yet."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:"ASSIGNED"}),(0,r.jsx)(s.td,{children:"1"}),(0,r.jsx)(s.td,{children:"Assigned to a specific user, but not completed or cancelled yet."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:"DONE"}),(0,r.jsx)(s.td,{children:"3"}),(0,r.jsx)(s.td,{children:"Done."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:"CANCELLED"}),(0,r.jsx)(s.td,{children:"4"}),(0,r.jsx)(s.td,{children:"Cancelled."})]})]})]}),"\n",(0,r.jsx)(s.h3,{id:"threadtype",children:"Enum ThreadType"}),"\n",(0,r.jsx)(s.p,{children:"The type of a ThreadRUn."}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Name"}),(0,r.jsx)(s.th,{children:"Number"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsxs)(s.tbody,{children:[(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:"ENTRYPOINT"}),(0,r.jsx)(s.td,{children:"0"}),(0,r.jsx)(s.td,{children:"The ENTRYPOINT ThreadRun. Exactly one per WfRun. Always has number == 0."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:"CHILD"}),(0,r.jsx)(s.td,{children:"1"}),(0,r.jsx)(s.td,{children:"A ThreadRun explicitly created by another ThreadRun via a START_THREAD or START_MULTIPLE_THREADS NodeRun."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:"INTERRUPT"}),(0,r.jsx)(s.td,{children:"2"}),(0,r.jsx)(s.td,{children:"A ThreadRun that was created to handle an Interrupt."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:"FAILURE_HANDLER"}),(0,r.jsx)(s.td,{children:"3"}),(0,r.jsx)(s.td,{children:"A ThreadRun that was created to handle a Failure."})]})]})]}),"\n",(0,r.jsx)(s.h3,{id:"failurehandlerdeflhfailuretype",children:"Enum FailureHandlerDef.LHFailureType"}),"\n",(0,r.jsx)(s.p,{children:"Specifies a type of Failure"}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Name"}),(0,r.jsx)(s.th,{children:"Number"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsxs)(s.tbody,{children:[(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:"FAILURE_TYPE_ERROR"}),(0,r.jsx)(s.td,{children:"0"}),(0,r.jsxs)(s.td,{children:["FAILURE_TYPE_ERROR specifies any technical ",(0,r.jsx)(s.code,{children:"ERROR"}),"."]})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:"FAILURE_TYPE_EXCEPTION"}),(0,r.jsx)(s.td,{children:"1"}),(0,r.jsxs)(s.td,{children:["Specifies a user-defined, business-related ",(0,r.jsx)(s.code,{children:"EXCEPTION"}),"."]})]})]})]}),"\n",(0,r.jsx)(s.h3,{id:"wfrunvariableaccesslevel",children:"Enum WfRunVariableAccessLevel"}),"\n",(0,r.jsx)(s.p,{children:"Determines the Access Level for a Variable in a ThreadSpec/WfSpec."}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Name"}),(0,r.jsx)(s.th,{children:"Number"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsxs)(s.tbody,{children:[(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:"PUBLIC_VAR"}),(0,r.jsx)(s.td,{children:"0"}),(0,r.jsxs)(s.td,{children:["A ",(0,r.jsx)(s.code,{children:"PUBLIC_VAR"})," can be accessed (read + mutated) by child ",(0,r.jsx)(s.code,{children:"WfRun"}),"'s."]})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:"PRIVATE_VAR"}),(0,r.jsx)(s.td,{children:"1"}),(0,r.jsxs)(s.td,{children:["A ",(0,r.jsx)(s.code,{children:"PRIVATE_VAR"})," cannot be accessed by a child ",(0,r.jsx)(s.code,{children:"WfRun"}),"."]})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:"INHERITED_VAR"}),(0,r.jsx)(s.td,{children:"2"}),(0,r.jsxs)(s.td,{children:["An ",(0,r.jsx)(s.code,{children:"INHERITED_VAR"})," is inherited from the parent ",(0,r.jsx)(s.code,{children:"WfRun"}),". Only valid in a ",(0,r.jsx)(s.code,{children:"WfSpec"})," that has a parent. Also can only be declared in the Entrypoint Thread."]})]})]})]})]})}function x(e={}){const{wrapper:s}={...(0,n.R)(),...e.components};return s?(0,r.jsx)(s,{...e,children:(0,r.jsx)(a,{...e})}):a(e)}},8453:(e,s,d)=>{d.d(s,{R:()=>i,x:()=>h});var r=d(6540);const n={},t=r.createContext(n);function i(e){const s=r.useContext(t);return r.useMemo((function(){return"function"==typeof e?e(s):{...s,...e}}),[s,e])}function h(e){let s;return s=e.disableParentContext?"function"==typeof e.components?e.components(n):e.components||n:i(e.components),r.createElement(t.Provider,{value:s},e.children)}}}]);
\ No newline at end of file
diff --git a/assets/js/2a162317.3a272e13.js b/assets/js/2a162317.3a272e13.js
new file mode 100644
index 000000000..f1f63354b
--- /dev/null
+++ b/assets/js/2a162317.3a272e13.js
@@ -0,0 +1 @@
+"use strict";(self.webpackChunklh_site=self.webpackChunklh_site||[]).push([[7828],{4620:(e,s,d)=>{d.r(s),d.d(s,{assets:()=>l,contentTitle:()=>i,default:()=>x,frontMatter:()=>t,metadata:()=>h,toc:()=>c});var r=d(4848),n=d(8453);const t={},i="LittleHorse API Reference",h={id:"api",title:"LittleHorse API Reference",description:"The LittleHorse Server exposes a GRPC API to its clients. For most general usage of LittleHorse, you will not need to",source:"@site/docs/08-api.md",sourceDirName:".",slug:"/api",permalink:"/docs/api",draft:!1,unlisted:!1,tags:[],version:"current",sidebarPosition:8,frontMatter:{},sidebar:"tutorialSidebar",previous:{title:"Tips, Pointers, and FAQ",permalink:"/docs/faq"}},l={},c=[{value:"LittleHorse GRPC API",id:"littlehorse-grpc-api",level:2},{value:"RPC PutTaskDef
",id:"puttaskdef",level:3},{value:"RPC GetTaskDef
",id:"gettaskdef",level:3},{value:"RPC GetTaskWorkerGroup
",id:"gettaskworkergroup",level:3},{value:"RPC PutExternalEventDef
",id:"putexternaleventdef",level:3},{value:"RPC GetExternalEventDef
",id:"getexternaleventdef",level:3},{value:"RPC PutWorkflowEventDef
",id:"putworkfloweventdef",level:3},{value:"RPC PutWfSpec
",id:"putwfspec",level:3},{value:"RPC GetWfSpec
",id:"getwfspec",level:3},{value:"RPC GetLatestWfSpec
",id:"getlatestwfspec",level:3},{value:"RPC MigrateWfSpec
",id:"migratewfspec",level:3},{value:"RPC PutUserTaskDef
",id:"putusertaskdef",level:3},{value:"RPC GetUserTaskDef
",id:"getusertaskdef",level:3},{value:"RPC GetLatestUserTaskDef
",id:"getlatestusertaskdef",level:3},{value:"RPC RunWf
",id:"runwf",level:3},{value:"RPC ScheduleWf
",id:"schedulewf",level:3},{value:"RPC SearchScheduledWfRun
",id:"searchscheduledwfrun",level:3},{value:"RPC GetScheduledWfRun
",id:"getscheduledwfrun",level:3},{value:"RPC GetWfRun
",id:"getwfrun",level:3},{value:"RPC GetUserTaskRun
",id:"getusertaskrun",level:3},{value:"RPC AssignUserTaskRun
",id:"assignusertaskrun",level:3},{value:"RPC CompleteUserTaskRun
",id:"completeusertaskrun",level:3},{value:"RPC CancelUserTaskRun
",id:"cancelusertaskrun",level:3},{value:"RPC SaveUserTaskRunProgress
",id:"saveusertaskrunprogress",level:3},{value:"RPC ListUserTaskRuns
",id:"listusertaskruns",level:3},{value:"RPC GetNodeRun
",id:"getnoderun",level:3},{value:"RPC ListNodeRuns
",id:"listnoderuns",level:3},{value:"RPC GetTaskRun
",id:"gettaskrun",level:3},{value:"RPC ListTaskRuns
",id:"listtaskruns",level:3},{value:"RPC GetVariable
",id:"getvariable",level:3},{value:"RPC ListVariables
",id:"listvariables",level:3},{value:"RPC PutExternalEvent
",id:"putexternalevent",level:3},{value:"RPC GetExternalEvent
",id:"getexternalevent",level:3},{value:"RPC AwaitWorkflowEvent
",id:"awaitworkflowevent",level:3},{value:"RPC ListExternalEvents
",id:"listexternalevents",level:3},{value:"RPC SearchWfRun
",id:"searchwfrun",level:3},{value:"RPC SearchNodeRun
",id:"searchnoderun",level:3},{value:"RPC SearchTaskRun
",id:"searchtaskrun",level:3},{value:"RPC SearchUserTaskRun
",id:"searchusertaskrun",level:3},{value:"RPC SearchVariable
",id:"searchvariable",level:3},{value:"RPC SearchExternalEvent
",id:"searchexternalevent",level:3},{value:"RPC SearchTaskDef
",id:"searchtaskdef",level:3},{value:"RPC SearchUserTaskDef
",id:"searchusertaskdef",level:3},{value:"RPC SearchWfSpec
",id:"searchwfspec",level:3},{value:"RPC SearchExternalEventDef
",id:"searchexternaleventdef",level:3},{value:"RPC SearchTenant
",id:"searchtenant",level:3},{value:"RPC SearchPrincipal
",id:"searchprincipal",level:3},{value:"RPC RegisterTaskWorker
",id:"registertaskworker",level:3},{value:"RPC PollTask
",id:"polltask",level:3},{value:"RPC ReportTask
",id:"reporttask",level:3},{value:"RPC StopWfRun
",id:"stopwfrun",level:3},{value:"RPC ResumeWfRun
",id:"resumewfrun",level:3},{value:"RPC RescueThreadRun
",id:"rescuethreadrun",level:3},{value:"RPC DeleteWfRun
",id:"deletewfrun",level:3},{value:"RPC DeleteTaskDef
",id:"deletetaskdef",level:3},{value:"RPC DeleteWfSpec
",id:"deletewfspec",level:3},{value:"RPC DeleteUserTaskDef
",id:"deleteusertaskdef",level:3},{value:"RPC DeleteExternalEventDef
",id:"deleteexternaleventdef",level:3},{value:"RPC DeletePrincipal
",id:"deleteprincipal",level:3},{value:"RPC DeleteScheduledWfRun
",id:"deletescheduledwfrun",level:3},{value:"RPC GetTaskDefMetricsWindow
",id:"gettaskdefmetricswindow",level:3},{value:"RPC GetWfSpecMetricsWindow
",id:"getwfspecmetricswindow",level:3},{value:"RPC ListTaskDefMetrics
",id:"listtaskdefmetrics",level:3},{value:"RPC ListWfSpecMetrics
",id:"listwfspecmetrics",level:3},{value:"RPC PutTenant
",id:"puttenant",level:3},{value:"RPC GetTenant
",id:"gettenant",level:3},{value:"RPC PutPrincipal
",id:"putprincipal",level:3},{value:"RPC Whoami
",id:"whoami",level:3},{value:"RPC GetServerVersion
",id:"getserverversion",level:3},{value:"LittleHorse Protobuf Schemas",id:"littlehorse-protobuf-schemas",level:2},{value:"Message DeletePrincipalRequest
",id:"deleteprincipalrequest",level:3},{value:"Message Principal
",id:"principal",level:3},{value:"Message Principal.PerTenantAclsEntry
",id:"principalpertenantaclsentry",level:3},{value:"Message PutPrincipalRequest
",id:"putprincipalrequest",level:3},{value:"Message PutPrincipalRequest.PerTenantAclsEntry
",id:"putprincipalrequestpertenantaclsentry",level:3},{value:"Message PutTenantRequest
",id:"puttenantrequest",level:3},{value:"Message ServerACL
",id:"serveracl",level:3},{value:"Message ServerACLs
",id:"serveracls",level:3},{value:"Message Tenant
",id:"tenant",level:3},{value:"Message ExponentialBackoffRetryPolicy
",id:"exponentialbackoffretrypolicy",level:3},{value:"Message TaskNode
",id:"tasknode",level:3},{value:"Message UTActionTrigger
",id:"utactiontrigger",level:3},{value:"Message UTActionTrigger.UTACancel
",id:"utactiontriggerutacancel",level:3},{value:"Message UTActionTrigger.UTAReassign
",id:"utactiontriggerutareassign",level:3},{value:"Message UTActionTrigger.UTATask
",id:"utactiontriggerutatask",level:3},{value:"Message VariableAssignment
",id:"variableassignment",level:3},{value:"Message VariableAssignment.FormatString
",id:"variableassignmentformatstring",level:3},{value:"Message VariableDef
",id:"variabledef",level:3},{value:"Message VariableMutation
",id:"variablemutation",level:3},{value:"Message VariableMutation.NodeOutputSource
",id:"variablemutationnodeoutputsource",level:3},{value:"Message ExternalEvent
",id:"externalevent",level:3},{value:"Message ExternalEventDef
",id:"externaleventdef",level:3},{value:"Message ExternalEventRetentionPolicy
",id:"externaleventretentionpolicy",level:3},{value:"Message EntrypointRun
",id:"entrypointrun",level:3},{value:"Message ExitRun
",id:"exitrun",level:3},{value:"Message ExternalEventNodeRun
",id:"externaleventnoderun",level:3},{value:"Message Failure
",id:"failure",level:3},{value:"Message NodeRun
",id:"noderun",level:3},{value:"Message SleepNodeRun
",id:"sleepnoderun",level:3},{value:"Message StartMultipleThreadsRun
",id:"startmultiplethreadsrun",level:3},{value:"Message StartThreadRun
",id:"startthreadrun",level:3},{value:"Message TaskNodeRun
",id:"tasknoderun",level:3},{value:"Message ThrowEventNodeRun
",id:"throweventnoderun",level:3},{value:"Message UserTaskNodeRun
",id:"usertasknoderun",level:3},{value:"Message WaitForThreadsRun
",id:"waitforthreadsrun",level:3},{value:"Message WaitForThreadsRun.WaitForThread
",id:"waitforthreadsrunwaitforthread",level:3},{value:"Message ExternalEventDefId
",id:"externaleventdefid",level:3},{value:"Message ExternalEventId
",id:"externaleventid",level:3},{value:"Message NodeRunId
",id:"noderunid",level:3},{value:"Message PrincipalId
",id:"principalid",level:3},{value:"Message ScheduledWfRunId
",id:"scheduledwfrunid",level:3},{value:"Message TaskDefId
",id:"taskdefid",level:3},{value:"Message TaskDefMetricsId
",id:"taskdefmetricsid",level:3},{value:"Message TaskRunId
",id:"taskrunid",level:3},{value:"Message TaskWorkerGroupId
",id:"taskworkergroupid",level:3},{value:"Message TenantId
",id:"tenantid",level:3},{value:"Message UserTaskDefId
",id:"usertaskdefid",level:3},{value:"Message UserTaskRunId
",id:"usertaskrunid",level:3},{value:"Message VariableId
",id:"variableid",level:3},{value:"Message WfRunId
",id:"wfrunid",level:3},{value:"Message WfSpecId
",id:"wfspecid",level:3},{value:"Message WfSpecMetricsId
",id:"wfspecmetricsid",level:3},{value:"Message WorkflowEventDefId
",id:"workfloweventdefid",level:3},{value:"Message WorkflowEventId
",id:"workfloweventid",level:3},{value:"Message ScheduledWfRun
",id:"scheduledwfrun",level:3},{value:"Message ScheduledWfRun.VariablesEntry
",id:"scheduledwfrunvariablesentry",level:3},{value:"Message AwaitWorkflowEventRequest
",id:"awaitworkfloweventrequest",level:3},{value:"Message DeleteExternalEventDefRequest
",id:"deleteexternaleventdefrequest",level:3},{value:"Message DeleteExternalEventRequest
",id:"deleteexternaleventrequest",level:3},{value:"Message DeleteScheduledWfRunRequest
",id:"deletescheduledwfrunrequest",level:3},{value:"Message DeleteTaskDefRequest
",id:"deletetaskdefrequest",level:3},{value:"Message DeleteUserTaskDefRequest
",id:"deleteusertaskdefrequest",level:3},{value:"Message DeleteWfRunRequest
",id:"deletewfrunrequest",level:3},{value:"Message DeleteWfSpecRequest
",id:"deletewfspecrequest",level:3},{value:"Message ExternalEventDefIdList
",id:"externaleventdefidlist",level:3},{value:"Message ExternalEventIdList
",id:"externaleventidlist",level:3},{value:"Message ExternalEventList
",id:"externaleventlist",level:3},{value:"Message GetLatestUserTaskDefRequest
",id:"getlatestusertaskdefrequest",level:3},{value:"Message GetLatestWfSpecRequest
",id:"getlatestwfspecrequest",level:3},{value:"Message LHHostInfo
",id:"lhhostinfo",level:3},{value:"Message ListExternalEventsRequest
",id:"listexternaleventsrequest",level:3},{value:"Message ListNodeRunsRequest
",id:"listnoderunsrequest",level:3},{value:"Message ListTaskMetricsRequest
",id:"listtaskmetricsrequest",level:3},{value:"Message ListTaskMetricsResponse
",id:"listtaskmetricsresponse",level:3},{value:"Message ListTaskRunsRequest
",id:"listtaskrunsrequest",level:3},{value:"Message ListUserTaskRunRequest
",id:"listusertaskrunrequest",level:3},{value:"Message ListVariablesRequest
",id:"listvariablesrequest",level:3},{value:"Message ListWfMetricsRequest
",id:"listwfmetricsrequest",level:3},{value:"Message ListWfMetricsResponse
",id:"listwfmetricsresponse",level:3},{value:"Message MigrateWfSpecRequest
",id:"migratewfspecrequest",level:3},{value:"Message NodeRunIdList
",id:"noderunidlist",level:3},{value:"Message NodeRunList
",id:"noderunlist",level:3},{value:"Message PollTaskRequest
",id:"polltaskrequest",level:3},{value:"Message PollTaskResponse
",id:"polltaskresponse",level:3},{value:"Message PrincipalIdList
",id:"principalidlist",level:3},{value:"Message PutExternalEventDefRequest
",id:"putexternaleventdefrequest",level:3},{value:"Message PutExternalEventRequest
",id:"putexternaleventrequest",level:3},{value:"Message PutTaskDefRequest
",id:"puttaskdefrequest",level:3},{value:"Message PutUserTaskDefRequest
",id:"putusertaskdefrequest",level:3},{value:"Message PutWfSpecRequest
",id:"putwfspecrequest",level:3},{value:"Message PutWfSpecRequest.ThreadSpecsEntry
",id:"putwfspecrequestthreadspecsentry",level:3},{value:"Message PutWorkflowEventDefRequest
",id:"putworkfloweventdefrequest",level:3},{value:"Message RegisterTaskWorkerRequest
",id:"registertaskworkerrequest",level:3},{value:"Message RegisterTaskWorkerResponse
",id:"registertaskworkerresponse",level:3},{value:"Message ReportTaskRun
",id:"reporttaskrun",level:3},{value:"Message RescueThreadRunRequest
",id:"rescuethreadrunrequest",level:3},{value:"Message ResumeWfRunRequest
",id:"resumewfrunrequest",level:3},{value:"Message RunWfRequest
",id:"runwfrequest",level:3},{value:"Message RunWfRequest.VariablesEntry
",id:"runwfrequestvariablesentry",level:3},{value:"Message ScheduleWfRequest
",id:"schedulewfrequest",level:3},{value:"Message ScheduleWfRequest.VariablesEntry
",id:"schedulewfrequestvariablesentry",level:3},{value:"Message ScheduledTask
",id:"scheduledtask",level:3},{value:"Message ScheduledWfRunIdList
",id:"scheduledwfrunidlist",level:3},{value:"Message SearchExternalEventDefRequest
",id:"searchexternaleventdefrequest",level:3},{value:"Message SearchExternalEventRequest
",id:"searchexternaleventrequest",level:3},{value:"Message SearchNodeRunRequest
",id:"searchnoderunrequest",level:3},{value:"Message SearchPrincipalRequest
",id:"searchprincipalrequest",level:3},{value:"Message SearchScheduledWfRunRequest
",id:"searchscheduledwfrunrequest",level:3},{value:"Message SearchTaskDefRequest
",id:"searchtaskdefrequest",level:3},{value:"Message SearchTaskRunRequest
",id:"searchtaskrunrequest",level:3},{value:"Message SearchTenantRequest
",id:"searchtenantrequest",level:3},{value:"Message SearchUserTaskDefRequest
",id:"searchusertaskdefrequest",level:3},{value:"Message SearchUserTaskRunRequest
",id:"searchusertaskrunrequest",level:3},{value:"Message SearchVariableRequest
",id:"searchvariablerequest",level:3},{value:"Message SearchWfRunRequest
",id:"searchwfrunrequest",level:3},{value:"Message SearchWfSpecRequest
",id:"searchwfspecrequest",level:3},{value:"Message ServerVersionResponse
",id:"serverversionresponse",level:3},{value:"Message StopWfRunRequest
",id:"stopwfrunrequest",level:3},{value:"Message TaskDefIdList
",id:"taskdefidlist",level:3},{value:"Message TaskDefMetrics
",id:"taskdefmetrics",level:3},{value:"Message TaskDefMetricsQueryRequest
",id:"taskdefmetricsqueryrequest",level:3},{value:"Message TaskRunIdList
",id:"taskrunidlist",level:3},{value:"Message TaskRunList
",id:"taskrunlist",level:3},{value:"Message TaskWorkerGroup
",id:"taskworkergroup",level:3},{value:"Message TaskWorkerGroup.TaskWorkersEntry
",id:"taskworkergrouptaskworkersentry",level:3},{value:"Message TaskWorkerHeartBeatRequest
",id:"taskworkerheartbeatrequest",level:3},{value:"Message TaskWorkerMetadata
",id:"taskworkermetadata",level:3},{value:"Message TenantIdList
",id:"tenantidlist",level:3},{value:"Message UserTaskDefIdList
",id:"usertaskdefidlist",level:3},{value:"Message UserTaskRunIdList
",id:"usertaskrunidlist",level:3},{value:"Message UserTaskRunList
",id:"usertaskrunlist",level:3},{value:"Message VariableIdList
",id:"variableidlist",level:3},{value:"Message VariableList
",id:"variablelist",level:3},{value:"Message VariableMatch
",id:"variablematch",level:3},{value:"Message WfRunIdList
",id:"wfrunidlist",level:3},{value:"Message WfSpecIdList
",id:"wfspecidlist",level:3},{value:"Message WfSpecMetrics
",id:"wfspecmetrics",level:3},{value:"Message WfSpecMetricsQueryRequest
",id:"wfspecmetricsqueryrequest",level:3},{value:"Message TaskDef
",id:"taskdef",level:3},{value:"Message TaskDefOutputSchema
",id:"taskdefoutputschema",level:3},{value:"Message LHTaskError
",id:"lhtaskerror",level:3},{value:"Message LHTaskException
",id:"lhtaskexception",level:3},{value:"Message TaskAttempt
",id:"taskattempt",level:3},{value:"Message TaskNodeReference
",id:"tasknodereference",level:3},{value:"Message TaskRun
",id:"taskrun",level:3},{value:"Message TaskRunSource
",id:"taskrunsource",level:3},{value:"Message VarNameAndVal
",id:"varnameandval",level:3},{value:"Message AssignUserTaskRunRequest
",id:"assignusertaskrunrequest",level:3},{value:"Message CancelUserTaskRunRequest
",id:"cancelusertaskrunrequest",level:3},{value:"Message CompleteUserTaskRunRequest
",id:"completeusertaskrunrequest",level:3},{value:"Message CompleteUserTaskRunRequest.ResultsEntry
",id:"completeusertaskrunrequestresultsentry",level:3},{value:"Message SaveUserTaskRunProgressRequest
",id:"saveusertaskrunprogressrequest",level:3},{value:"Message SaveUserTaskRunProgressRequest.ResultsEntry
",id:"saveusertaskrunprogressrequestresultsentry",level:3},{value:"Message UserTaskDef
",id:"usertaskdef",level:3},{value:"Message UserTaskEvent
",id:"usertaskevent",level:3},{value:"Message UserTaskEvent.UTEAssigned
",id:"usertaskeventuteassigned",level:3},{value:"Message UserTaskEvent.UTECancelled
",id:"usertaskeventutecancelled",level:3},{value:"Message UserTaskEvent.UTESaved
",id:"usertaskeventutesaved",level:3},{value:"Message UserTaskEvent.UTESaved.ResultsEntry
",id:"usertaskeventutesavedresultsentry",level:3},{value:"Message UserTaskEvent.UTETaskExecuted
",id:"usertaskeventutetaskexecuted",level:3},{value:"Message UserTaskField
",id:"usertaskfield",level:3},{value:"Message UserTaskRun
",id:"usertaskrun",level:3},{value:"Message UserTaskRun.ResultsEntry
",id:"usertaskrunresultsentry",level:3},{value:"Message UserTaskTriggerReference
",id:"usertasktriggerreference",level:3},{value:"Message Variable
",id:"variable",level:3},{value:"Message VariableValue
",id:"variablevalue",level:3},{value:"Message FailureBeingHandled
",id:"failurebeinghandled",level:3},{value:"Message HandlingFailureHaltReason
",id:"handlingfailurehaltreason",level:3},{value:"Message Interrupted
",id:"interrupted",level:3},{value:"Message ManualHalt
",id:"manualhalt",level:3},{value:"Message ParentHalted
",id:"parenthalted",level:3},{value:"Message PendingFailureHandler
",id:"pendingfailurehandler",level:3},{value:"Message PendingFailureHandlerHaltReason
",id:"pendingfailurehandlerhaltreason",level:3},{value:"Message PendingInterrupt
",id:"pendinginterrupt",level:3},{value:"Message PendingInterruptHaltReason
",id:"pendinginterrupthaltreason",level:3},{value:"Message ThreadHaltReason
",id:"threadhaltreason",level:3},{value:"Message ThreadRun
",id:"threadrun",level:3},{value:"Message WfRun
",id:"wfrun",level:3},{value:"Message Edge
",id:"edge",level:3},{value:"Message EdgeCondition
",id:"edgecondition",level:3},{value:"Message EntrypointNode
",id:"entrypointnode",level:3},{value:"Message ExitNode
",id:"exitnode",level:3},{value:"Message ExternalEventNode
",id:"externaleventnode",level:3},{value:"Message FailureDef
",id:"failuredef",level:3},{value:"Message FailureHandlerDef
",id:"failurehandlerdef",level:3},{value:"Message InterruptDef
",id:"interruptdef",level:3},{value:"Message JsonIndex
",id:"jsonindex",level:3},{value:"Message Node
",id:"node",level:3},{value:"Message NodeMigration
",id:"nodemigration",level:3},{value:"Message NopNode
",id:"nopnode",level:3},{value:"Message SleepNode
",id:"sleepnode",level:3},{value:"Message StartMultipleThreadsNode
",id:"startmultiplethreadsnode",level:3},{value:"Message StartMultipleThreadsNode.VariablesEntry
",id:"startmultiplethreadsnodevariablesentry",level:3},{value:"Message StartThreadNode
",id:"startthreadnode",level:3},{value:"Message StartThreadNode.VariablesEntry
",id:"startthreadnodevariablesentry",level:3},{value:"Message ThreadRetentionPolicy
",id:"threadretentionpolicy",level:3},{value:"Message ThreadSpec
",id:"threadspec",level:3},{value:"Message ThreadSpec.NodesEntry
",id:"threadspecnodesentry",level:3},{value:"Message ThreadSpecMigration
",id:"threadspecmigration",level:3},{value:"Message ThreadSpecMigration.NodeMigrationsEntry
",id:"threadspecmigrationnodemigrationsentry",level:3},{value:"Message ThreadVarDef
",id:"threadvardef",level:3},{value:"Message ThrowEventNode
",id:"throweventnode",level:3},{value:"Message UserTaskNode
",id:"usertasknode",level:3},{value:"Message WaitForThreadsNode
",id:"waitforthreadsnode",level:3},{value:"Message WaitForThreadsNode.ThreadToWaitFor
",id:"waitforthreadsnodethreadtowaitfor",level:3},{value:"Message WaitForThreadsNode.ThreadsToWaitFor
",id:"waitforthreadsnodethreadstowaitfor",level:3},{value:"Message WfSpec
",id:"wfspec",level:3},{value:"Message WfSpec.ParentWfSpecReference
",id:"wfspecparentwfspecreference",level:3},{value:"Message WfSpec.ThreadSpecsEntry
",id:"wfspecthreadspecsentry",level:3},{value:"Message WfSpecVersionMigration
",id:"wfspecversionmigration",level:3},{value:"Message WfSpecVersionMigration.ThreadSpecMigrationsEntry
",id:"wfspecversionmigrationthreadspecmigrationsentry",level:3},{value:"Message WorkflowRetentionPolicy
",id:"workflowretentionpolicy",level:3},{value:"Message WorkflowEvent
",id:"workflowevent",level:3},{value:"Message WorkflowEventDef
",id:"workfloweventdef",level:3},{value:"LittleHorse Enums",id:"littlehorse-enums",level:2},{value:"Enum ACLAction",id:"aclaction",level:3},{value:"Enum ACLResource",id:"aclresource",level:3},{value:"Enum LHErrorType",id:"lherrortype",level:3},{value:"Enum LHStatus",id:"lhstatus",level:3},{value:"Enum MetadataStatus",id:"metadatastatus",level:3},{value:"Enum MetricsWindowLength",id:"metricswindowlength",level:3},{value:"Enum TaskStatus",id:"taskstatus",level:3},{value:"Enum VariableType",id:"variabletype",level:3},{value:"Enum Comparator",id:"comparator",level:3},{value:"Enum UTActionTrigger.UTHook",id:"utactiontriggeruthook",level:3},{value:"Enum VariableMutationType",id:"variablemutationtype",level:3},{value:"Enum WaitForThreadsRun.WaitingThreadStatus",id:"waitforthreadsrunwaitingthreadstatus",level:3},{value:"Enum AllowedUpdateType",id:"allowedupdatetype",level:3},{value:"Enum SearchNodeRunRequest.NodeType",id:"searchnoderunrequestnodetype",level:3},{value:"Enum SaveUserTaskRunProgressRequest.SaveUserTaskRunAssignmentPolicy",id:"saveusertaskrunprogressrequestsaveusertaskrunassignmentpolicy",level:3},{value:"Enum UserTaskRunStatus",id:"usertaskrunstatus",level:3},{value:"Enum ThreadType",id:"threadtype",level:3},{value:"Enum FailureHandlerDef.LHFailureType",id:"failurehandlerdeflhfailuretype",level:3},{value:"Enum WfRunVariableAccessLevel",id:"wfrunvariableaccesslevel",level:3}];function a(e){const s={a:"a",code:"code",em:"em",h1:"h1",h2:"h2",h3:"h3",header:"header",li:"li",ol:"ol",p:"p",strong:"strong",table:"table",tbody:"tbody",td:"td",th:"th",thead:"thead",tr:"tr",ul:"ul",...(0,n.R)(),...e.components};return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(s.header,{children:(0,r.jsx)(s.h1,{id:"littlehorse-api-reference",children:"LittleHorse API Reference"})}),"\n",(0,r.jsxs)(s.p,{children:["The LittleHorse Server exposes a GRPC API to its clients. For most general usage of LittleHorse, you ",(0,r.jsx)(s.em,{children:"will not"})," need to\nread the raw protobuf schema. Common LittleHorse client actions fall into three general categories:"]}),"\n",(0,r.jsxs)(s.ol,{children:["\n",(0,r.jsxs)(s.li,{children:["Developing a Task Worker, which is handled by our ",(0,r.jsx)(s.a,{href:"/docs/developer-guide/task-worker-development",children:"Task Worker SDK's"}),"."]}),"\n",(0,r.jsxs)(s.li,{children:["Developing a WfSpec, which is handled by our ",(0,r.jsxs)(s.a,{href:"/docs/developer-guide/wfspec-development",children:[(0,r.jsx)(s.code,{children:"WfSpec"})," SDK's"]}),"."]}),"\n",(0,r.jsxs)(s.li,{children:["Running and interacting with ",(0,r.jsx)(s.code,{children:"WfRun"}),"'s, which is documented in our ",(0,r.jsx)(s.a,{href:"/docs/developer-guide/grpc",children:'"Using the API"'})," docs."]}),"\n"]}),"\n",(0,r.jsxs)(s.p,{children:["However, the highly curious reader might want to see the actual GRPC and Protobuf specification. The docs on this page\nare autogenerated from our actual ",(0,r.jsx)(s.a,{href:"https://github.com/littlehorse-enterprises/littlehorse/tree/master/schemas",children:"protobuf files"}),"."]}),"\n",(0,r.jsx)(s.p,{children:"The documentation of what the specific protobuf fields mean is potentially useful for advanced Jedi Master use-cases."}),"\n",(0,r.jsx)(s.p,{children:"Happy Reading!"}),"\n",(0,r.jsx)(s.h2,{id:"littlehorse-grpc-api",children:"LittleHorse GRPC API"}),"\n",(0,r.jsxs)(s.p,{children:["The LittleHorse GRPC API is the backbone of the clients that you get in all of our SDK's. Every ",(0,r.jsx)(s.code,{children:"LHConfig"})," object\ngives you a GRPC stub to access the API. Most common operations are already documented with code examples in different\nlanguages ",(0,r.jsx)(s.a,{href:"/docs/developer-guide/grpc",children:"here"}),", but we put this here for the true Jedi Masters."]}),"\n",(0,r.jsxs)(s.h3,{id:"puttaskdef",children:["RPC ",(0,r.jsx)(s.code,{children:"PutTaskDef"})]}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Request Type"}),(0,r.jsx)(s.th,{children:"Response Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsx)(s.tbody,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#puttaskdefrequest",children:"PutTaskDefRequest"})}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#taskdef",children:"TaskDef"})}),(0,r.jsx)(s.td,{children:"Creates a TaskDef."})]})})]}),"\n",(0,r.jsxs)(s.h3,{id:"gettaskdef",children:["RPC ",(0,r.jsx)(s.code,{children:"GetTaskDef"})]}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Request Type"}),(0,r.jsx)(s.th,{children:"Response Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsx)(s.tbody,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#taskdefid",children:"TaskDefId"})}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#taskdef",children:"TaskDef"})}),(0,r.jsx)(s.td,{children:"Gets a TaskDef."})]})})]}),"\n",(0,r.jsxs)(s.h3,{id:"gettaskworkergroup",children:["RPC ",(0,r.jsx)(s.code,{children:"GetTaskWorkerGroup"})]}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Request Type"}),(0,r.jsx)(s.th,{children:"Response Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsx)(s.tbody,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#taskdefid",children:"TaskDefId"})}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#taskworkergroup",children:"TaskWorkerGroup"})}),(0,r.jsx)(s.td,{children:"Gets the registered task worker group associated with a specific TaskDef."})]})})]}),"\n",(0,r.jsxs)(s.h3,{id:"putexternaleventdef",children:["RPC ",(0,r.jsx)(s.code,{children:"PutExternalEventDef"})]}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Request Type"}),(0,r.jsx)(s.th,{children:"Response Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsx)(s.tbody,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#putexternaleventdefrequest",children:"PutExternalEventDefRequest"})}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#externaleventdef",children:"ExternalEventDef"})}),(0,r.jsx)(s.td,{children:"Creates an ExternalEventDef."})]})})]}),"\n",(0,r.jsxs)(s.h3,{id:"getexternaleventdef",children:["RPC ",(0,r.jsx)(s.code,{children:"GetExternalEventDef"})]}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Request Type"}),(0,r.jsx)(s.th,{children:"Response Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsx)(s.tbody,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#externaleventdefid",children:"ExternalEventDefId"})}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#externaleventdef",children:"ExternalEventDef"})}),(0,r.jsx)(s.td,{children:"Gets an ExternalEventDef."})]})})]}),"\n",(0,r.jsxs)(s.h3,{id:"putworkfloweventdef",children:["RPC ",(0,r.jsx)(s.code,{children:"PutWorkflowEventDef"})]}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Request Type"}),(0,r.jsx)(s.th,{children:"Response Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsx)(s.tbody,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#putworkfloweventdefrequest",children:"PutWorkflowEventDefRequest"})}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#workfloweventdef",children:"WorkflowEventDef"})}),(0,r.jsx)(s.td,{children:"EXPERIMENTAL: Creates a WorkflowEventDef."})]})})]}),"\n",(0,r.jsxs)(s.h3,{id:"putwfspec",children:["RPC ",(0,r.jsx)(s.code,{children:"PutWfSpec"})]}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Request Type"}),(0,r.jsx)(s.th,{children:"Response Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsx)(s.tbody,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#putwfspecrequest",children:"PutWfSpecRequest"})}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#wfspec",children:"WfSpec"})}),(0,r.jsx)(s.td,{children:"Creates a WfSpec."})]})})]}),"\n",(0,r.jsxs)(s.h3,{id:"getwfspec",children:["RPC ",(0,r.jsx)(s.code,{children:"GetWfSpec"})]}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Request Type"}),(0,r.jsx)(s.th,{children:"Response Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsx)(s.tbody,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#wfspecid",children:"WfSpecId"})}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#wfspec",children:"WfSpec"})}),(0,r.jsx)(s.td,{children:"Gets a WfSpec."})]})})]}),"\n",(0,r.jsxs)(s.h3,{id:"getlatestwfspec",children:["RPC ",(0,r.jsx)(s.code,{children:"GetLatestWfSpec"})]}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Request Type"}),(0,r.jsx)(s.th,{children:"Response Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsx)(s.tbody,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#getlatestwfspecrequest",children:"GetLatestWfSpecRequest"})}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#wfspec",children:"WfSpec"})}),(0,r.jsx)(s.td,{children:"Returns the latest WfSpec with a specified name (and optionally a specified Major Version)."})]})})]}),"\n",(0,r.jsxs)(s.h3,{id:"migratewfspec",children:["RPC ",(0,r.jsx)(s.code,{children:"MigrateWfSpec"})]}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Request Type"}),(0,r.jsx)(s.th,{children:"Response Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsx)(s.tbody,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#migratewfspecrequest",children:"MigrateWfSpecRequest"})}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#wfspec",children:"WfSpec"})}),(0,r.jsxs)(s.td,{children:["EXPERIMENTAL: Migrates all WfRun's from one version of a WfSpec onto a newer version of the same WfSpec. This is useful for long-running WfRun's (eg. a 60-day marketing campaign) where you must update WfRun's that are in the RUNNING state rather than allowing them to run to completion.",(0,r.jsx)("br",{}),(0,r.jsx)("br",{}),"As of 0.7.2, this feature is only partially implemented."]})]})})]}),"\n",(0,r.jsxs)(s.h3,{id:"putusertaskdef",children:["RPC ",(0,r.jsx)(s.code,{children:"PutUserTaskDef"})]}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Request Type"}),(0,r.jsx)(s.th,{children:"Response Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsx)(s.tbody,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#putusertaskdefrequest",children:"PutUserTaskDefRequest"})}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#usertaskdef",children:"UserTaskDef"})}),(0,r.jsx)(s.td,{children:"Creates a UserTaskDef."})]})})]}),"\n",(0,r.jsxs)(s.h3,{id:"getusertaskdef",children:["RPC ",(0,r.jsx)(s.code,{children:"GetUserTaskDef"})]}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Request Type"}),(0,r.jsx)(s.th,{children:"Response Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsx)(s.tbody,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#usertaskdefid",children:"UserTaskDefId"})}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#usertaskdef",children:"UserTaskDef"})}),(0,r.jsxs)(s.td,{children:["Gets a specific UserTaskDef.",(0,r.jsx)("br",{}),(0,r.jsx)("br",{}),"This RPC is highly useful for applications built around User Tasks. For example, a UI that dynamically displays form fields based on the User Task might first receive a UserTaskRun, then use that UserTaskRun to look up the UserTaskDef. The frontend would inspect the UserTaskDef and display a form field on the browser page for each field in the UserTaskDef."]})]})})]}),"\n",(0,r.jsxs)(s.h3,{id:"getlatestusertaskdef",children:["RPC ",(0,r.jsx)(s.code,{children:"GetLatestUserTaskDef"})]}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Request Type"}),(0,r.jsx)(s.th,{children:"Response Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsx)(s.tbody,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#getlatestusertaskdefrequest",children:"GetLatestUserTaskDefRequest"})}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#usertaskdef",children:"UserTaskDef"})}),(0,r.jsx)(s.td,{children:"Returns the most recent UserTaskDef with a specific name."})]})})]}),"\n",(0,r.jsxs)(s.h3,{id:"runwf",children:["RPC ",(0,r.jsx)(s.code,{children:"RunWf"})]}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Request Type"}),(0,r.jsx)(s.th,{children:"Response Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsx)(s.tbody,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#runwfrequest",children:"RunWfRequest"})}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#wfrun",children:"WfRun"})}),(0,r.jsx)(s.td,{children:"Runs a WfSpec to create a WfRun."})]})})]}),"\n",(0,r.jsxs)(s.h3,{id:"schedulewf",children:["RPC ",(0,r.jsx)(s.code,{children:"ScheduleWf"})]}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Request Type"}),(0,r.jsx)(s.th,{children:"Response Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsx)(s.tbody,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#schedulewfrequest",children:"ScheduleWfRequest"})}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#scheduledwfrun",children:"ScheduledWfRun"})}),(0,r.jsx)(s.td,{children:"Schedule repeated WfRun based on a cron expression"})]})})]}),"\n",(0,r.jsxs)(s.h3,{id:"searchscheduledwfrun",children:["RPC ",(0,r.jsx)(s.code,{children:"SearchScheduledWfRun"})]}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Request Type"}),(0,r.jsx)(s.th,{children:"Response Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsx)(s.tbody,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#searchscheduledwfrunrequest",children:"SearchScheduledWfRunRequest"})}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#scheduledwfrunidlist",children:"ScheduledWfRunIdList"})}),(0,r.jsx)(s.td,{children:"Search for existing schedules"})]})})]}),"\n",(0,r.jsxs)(s.h3,{id:"getscheduledwfrun",children:["RPC ",(0,r.jsx)(s.code,{children:"GetScheduledWfRun"})]}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Request Type"}),(0,r.jsx)(s.th,{children:"Response Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsx)(s.tbody,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#scheduledwfrunid",children:"ScheduledWfRunId"})}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#scheduledwfrun",children:"ScheduledWfRun"})}),(0,r.jsx)(s.td,{children:"Find a specific ScheduledWfRun"})]})})]}),"\n",(0,r.jsxs)(s.h3,{id:"getwfrun",children:["RPC ",(0,r.jsx)(s.code,{children:"GetWfRun"})]}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Request Type"}),(0,r.jsx)(s.th,{children:"Response Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsx)(s.tbody,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#wfrunid",children:"WfRunId"})}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#wfrun",children:"WfRun"})}),(0,r.jsx)(s.td,{children:"Gets a WfRun. Although useful for development and debugging, this RPC is not often used by applications."})]})})]}),"\n",(0,r.jsxs)(s.h3,{id:"getusertaskrun",children:["RPC ",(0,r.jsx)(s.code,{children:"GetUserTaskRun"})]}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Request Type"}),(0,r.jsx)(s.th,{children:"Response Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsx)(s.tbody,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#usertaskrunid",children:"UserTaskRunId"})}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#usertaskrun",children:"UserTaskRun"})}),(0,r.jsx)(s.td,{children:"Loads a specific UserTaskRun. It includes information about to whom the UserTask is currently assigned, history of assignments and reassignments, and any context for that UserTaskRun which is specific to the WfRun."})]})})]}),"\n",(0,r.jsxs)(s.h3,{id:"assignusertaskrun",children:["RPC ",(0,r.jsx)(s.code,{children:"AssignUserTaskRun"})]}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Request Type"}),(0,r.jsx)(s.th,{children:"Response Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsx)(s.tbody,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#assignusertaskrunrequest",children:"AssignUserTaskRunRequest"})}),(0,r.jsx)(s.td,{children:".google.protobuf.Empty"}),(0,r.jsx)(s.td,{children:"Change the ownership of a UserTaskRun to a new userId, userGroup, or both. The action will be reflected in your next call to SearchUserTaskRun. This RPC is useful for applications that are using User Tasks to build an internal task-list and wish to administer the tasks."})]})})]}),"\n",(0,r.jsxs)(s.h3,{id:"completeusertaskrun",children:["RPC ",(0,r.jsx)(s.code,{children:"CompleteUserTaskRun"})]}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Request Type"}),(0,r.jsx)(s.th,{children:"Response Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsx)(s.tbody,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#completeusertaskrunrequest",children:"CompleteUserTaskRunRequest"})}),(0,r.jsx)(s.td,{children:".google.protobuf.Empty"}),(0,r.jsxs)(s.td,{children:["Completes a UserTaskRun. Includes the results of the UserTaskRun, the UserTaskRun Id, and the userId of the user who completes the UserTaskRun. Results in the UserTask NodeRun being completed, and unblocks the associated ThreadRun in the WfRun.",(0,r.jsx)("br",{}),(0,r.jsx)("br",{}),"This RPC is highly useful for applications built around a WfSpec that uses USER_TASK nodes."]})]})})]}),"\n",(0,r.jsxs)(s.h3,{id:"cancelusertaskrun",children:["RPC ",(0,r.jsx)(s.code,{children:"CancelUserTaskRun"})]}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Request Type"}),(0,r.jsx)(s.th,{children:"Response Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsx)(s.tbody,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#cancelusertaskrunrequest",children:"CancelUserTaskRunRequest"})}),(0,r.jsx)(s.td,{children:".google.protobuf.Empty"}),(0,r.jsx)(s.td,{children:"Cancels a UserTaskRun. This will result in an EXCEPTION being propagated to the WfRun."})]})})]}),"\n",(0,r.jsxs)(s.h3,{id:"saveusertaskrunprogress",children:["RPC ",(0,r.jsx)(s.code,{children:"SaveUserTaskRunProgress"})]}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Request Type"}),(0,r.jsx)(s.th,{children:"Response Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsx)(s.tbody,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#saveusertaskrunprogressrequest",children:"SaveUserTaskRunProgressRequest"})}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#usertaskrun",children:"UserTaskRun"})}),(0,r.jsxs)(s.td,{children:["Saves the results of a UserTaskRun and logs who saved the content.",(0,r.jsx)("br",{}),(0,r.jsx)("br",{}),(0,r.jsx)("br",{}),(0,r.jsxs)("li",{children:[" Throws FAILED_PRECONDITION if the UserTaskRun is in the ",(0,r.jsx)(s.code,{children:"DONE"})," or ",(0,r.jsx)(s.code,{children:"CANCELLED"})," state."]})," ",(0,r.jsxs)("li",{children:[" If ",(0,r.jsx)(s.code,{children:"policy"})," is set to ",(0,r.jsx)(s.code,{children:"FAIL_IF_CLAIMED_BY_OTHER"}),", returns ",(0,r.jsx)(s.code,{children:"FAILED_PRECONDITION"})," if the ",(0,r.jsx)(s.code,{children:"user_id"})," field of the ",(0,r.jsx)(s.code,{children:"UserTaskRun"})," does not match the ",(0,r.jsx)(s.code,{children:"user_id"})," of the request."]})]})]})})]}),"\n",(0,r.jsxs)(s.h3,{id:"listusertaskruns",children:["RPC ",(0,r.jsx)(s.code,{children:"ListUserTaskRuns"})]}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Request Type"}),(0,r.jsx)(s.th,{children:"Response Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsx)(s.tbody,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#listusertaskrunrequest",children:"ListUserTaskRunRequest"})}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#usertaskrunlist",children:"UserTaskRunList"})}),(0,r.jsx)(s.td,{children:"Lists all UserTaskRun's for a specific WfRun. Can be useful when using a WfRun to model an entity."})]})})]}),"\n",(0,r.jsxs)(s.h3,{id:"getnoderun",children:["RPC ",(0,r.jsx)(s.code,{children:"GetNodeRun"})]}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Request Type"}),(0,r.jsx)(s.th,{children:"Response Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsx)(s.tbody,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#noderunid",children:"NodeRunId"})}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#noderun",children:"NodeRun"})}),(0,r.jsx)(s.td,{children:"Gets a specific NodeRun."})]})})]}),"\n",(0,r.jsxs)(s.h3,{id:"listnoderuns",children:["RPC ",(0,r.jsx)(s.code,{children:"ListNodeRuns"})]}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Request Type"}),(0,r.jsx)(s.th,{children:"Response Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsx)(s.tbody,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#listnoderunsrequest",children:"ListNodeRunsRequest"})}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#noderunlist",children:"NodeRunList"})}),(0,r.jsx)(s.td,{children:"Lists all NodeRun's for a specific WfRun."})]})})]}),"\n",(0,r.jsxs)(s.h3,{id:"gettaskrun",children:["RPC ",(0,r.jsx)(s.code,{children:"GetTaskRun"})]}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Request Type"}),(0,r.jsx)(s.th,{children:"Response Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsx)(s.tbody,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#taskrunid",children:"TaskRunId"})}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#taskrun",children:"TaskRun"})}),(0,r.jsx)(s.td,{children:"Gets a specific TaskRun."})]})})]}),"\n",(0,r.jsxs)(s.h3,{id:"listtaskruns",children:["RPC ",(0,r.jsx)(s.code,{children:"ListTaskRuns"})]}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Request Type"}),(0,r.jsx)(s.th,{children:"Response Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsx)(s.tbody,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#listtaskrunsrequest",children:"ListTaskRunsRequest"})}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#taskrunlist",children:"TaskRunList"})}),(0,r.jsx)(s.td,{children:"Lists all TaskRun's for a specific WfRun."})]})})]}),"\n",(0,r.jsxs)(s.h3,{id:"getvariable",children:["RPC ",(0,r.jsx)(s.code,{children:"GetVariable"})]}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Request Type"}),(0,r.jsx)(s.th,{children:"Response Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsx)(s.tbody,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#variableid",children:"VariableId"})}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#variable",children:"Variable"})}),(0,r.jsx)(s.td,{children:"Get the value of a specific Variable. When using a WfRun to model an entity, this RPC is useful for retrieving information. It is equivalent to looking up the value of a column for a specific row in a SQL table."})]})})]}),"\n",(0,r.jsxs)(s.h3,{id:"listvariables",children:["RPC ",(0,r.jsx)(s.code,{children:"ListVariables"})]}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Request Type"}),(0,r.jsx)(s.th,{children:"Response Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsx)(s.tbody,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#listvariablesrequest",children:"ListVariablesRequest"})}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#variablelist",children:"VariableList"})}),(0,r.jsx)(s.td,{children:"List all Variables from a WfRun."})]})})]}),"\n",(0,r.jsxs)(s.h3,{id:"putexternalevent",children:["RPC ",(0,r.jsx)(s.code,{children:"PutExternalEvent"})]}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Request Type"}),(0,r.jsx)(s.th,{children:"Response Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsx)(s.tbody,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#putexternaleventrequest",children:"PutExternalEventRequest"})}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#externalevent",children:"ExternalEvent"})}),(0,r.jsx)(s.td,{children:"Post an ExternalEvent. This RPC is highly useful for"})]})})]}),"\n",(0,r.jsxs)(s.h3,{id:"getexternalevent",children:["RPC ",(0,r.jsx)(s.code,{children:"GetExternalEvent"})]}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Request Type"}),(0,r.jsx)(s.th,{children:"Response Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsx)(s.tbody,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#externaleventid",children:"ExternalEventId"})}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#externalevent",children:"ExternalEvent"})}),(0,r.jsx)(s.td,{children:"Get a specific ExternalEvent."})]})})]}),"\n",(0,r.jsxs)(s.h3,{id:"awaitworkflowevent",children:["RPC ",(0,r.jsx)(s.code,{children:"AwaitWorkflowEvent"})]}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Request Type"}),(0,r.jsx)(s.th,{children:"Response Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsx)(s.tbody,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#awaitworkfloweventrequest",children:"AwaitWorkflowEventRequest"})}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#workflowevent",children:"WorkflowEvent"})}),(0,r.jsxs)(s.td,{children:["Waits for a WorkflowEvent to be thrown by a given WfRun. Returns immediately if a matching WorkflowEvent has already been thrown; throws a DEADLINE_EXCEEDED error if the WorkflowEvent is not thrown before the deadline specified by the client.",(0,r.jsx)("br",{}),(0,r.jsx)("br",{}),"To specify the deadline, the client should use GRPC deadlines."]})]})})]}),"\n",(0,r.jsxs)(s.h3,{id:"listexternalevents",children:["RPC ",(0,r.jsx)(s.code,{children:"ListExternalEvents"})]}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Request Type"}),(0,r.jsx)(s.th,{children:"Response Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsx)(s.tbody,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#listexternaleventsrequest",children:"ListExternalEventsRequest"})}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#externaleventlist",children:"ExternalEventList"})}),(0,r.jsx)(s.td,{children:"List ExternalEvent's for a specific WfRun."})]})})]}),"\n",(0,r.jsxs)(s.h3,{id:"searchwfrun",children:["RPC ",(0,r.jsx)(s.code,{children:"SearchWfRun"})]}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Request Type"}),(0,r.jsx)(s.th,{children:"Response Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsx)(s.tbody,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#searchwfrunrequest",children:"SearchWfRunRequest"})}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#wfrunidlist",children:"WfRunIdList"})}),(0,r.jsx)(s.td,{children:"Search for WfRun's. This RPC is highly useful for applications that store data in LittleHorse and need to find a specific WfRun based on certain indexed fields."})]})})]}),"\n",(0,r.jsxs)(s.h3,{id:"searchnoderun",children:["RPC ",(0,r.jsx)(s.code,{children:"SearchNodeRun"})]}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Request Type"}),(0,r.jsx)(s.th,{children:"Response Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsx)(s.tbody,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#searchnoderunrequest",children:"SearchNodeRunRequest"})}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#noderunidlist",children:"NodeRunIdList"})}),(0,r.jsx)(s.td,{children:"Search for NodeRun's. This RPC is useful for monitoring and finding bugs in your workflows or Task Workers."})]})})]}),"\n",(0,r.jsxs)(s.h3,{id:"searchtaskrun",children:["RPC ",(0,r.jsx)(s.code,{children:"SearchTaskRun"})]}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Request Type"}),(0,r.jsx)(s.th,{children:"Response Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsx)(s.tbody,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#searchtaskrunrequest",children:"SearchTaskRunRequest"})}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#taskrunidlist",children:"TaskRunIdList"})}),(0,r.jsx)(s.td,{children:"Search for TaskRun's. This RPC is useful for finding bugs in your Task Workers."})]})})]}),"\n",(0,r.jsxs)(s.h3,{id:"searchusertaskrun",children:["RPC ",(0,r.jsx)(s.code,{children:"SearchUserTaskRun"})]}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Request Type"}),(0,r.jsx)(s.th,{children:"Response Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsx)(s.tbody,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#searchusertaskrunrequest",children:"SearchUserTaskRunRequest"})}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#usertaskrunidlist",children:"UserTaskRunIdList"})}),(0,r.jsx)(s.td,{children:"Search for UserTaskRun's. This RPC is highly useful for applications that connect human end-users to LittleHorse: it enables you to find all tasks assigned to a specific person or group of people."})]})})]}),"\n",(0,r.jsxs)(s.h3,{id:"searchvariable",children:["RPC ",(0,r.jsx)(s.code,{children:"SearchVariable"})]}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Request Type"}),(0,r.jsx)(s.th,{children:"Response Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsx)(s.tbody,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#searchvariablerequest",children:"SearchVariableRequest"})}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#variableidlist",children:"VariableIdList"})}),(0,r.jsx)(s.td,{children:"Search for Variable's. This RPC is highly useful for applications that store data in LittleHorse and need to find a specific WfRun based on certain indexed fields."})]})})]}),"\n",(0,r.jsxs)(s.h3,{id:"searchexternalevent",children:["RPC ",(0,r.jsx)(s.code,{children:"SearchExternalEvent"})]}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Request Type"}),(0,r.jsx)(s.th,{children:"Response Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsx)(s.tbody,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#searchexternaleventrequest",children:"SearchExternalEventRequest"})}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#externaleventidlist",children:"ExternalEventIdList"})}),(0,r.jsx)(s.td,{children:"Search for ExternalEvent's."})]})})]}),"\n",(0,r.jsxs)(s.h3,{id:"searchtaskdef",children:["RPC ",(0,r.jsx)(s.code,{children:"SearchTaskDef"})]}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Request Type"}),(0,r.jsx)(s.th,{children:"Response Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsx)(s.tbody,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#searchtaskdefrequest",children:"SearchTaskDefRequest"})}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#taskdefidlist",children:"TaskDefIdList"})}),(0,r.jsx)(s.td,{children:"Search for TaskDef's."})]})})]}),"\n",(0,r.jsxs)(s.h3,{id:"searchusertaskdef",children:["RPC ",(0,r.jsx)(s.code,{children:"SearchUserTaskDef"})]}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Request Type"}),(0,r.jsx)(s.th,{children:"Response Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsx)(s.tbody,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#searchusertaskdefrequest",children:"SearchUserTaskDefRequest"})}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#usertaskdefidlist",children:"UserTaskDefIdList"})}),(0,r.jsx)(s.td,{children:"Search for UserTaskDef's."})]})})]}),"\n",(0,r.jsxs)(s.h3,{id:"searchwfspec",children:["RPC ",(0,r.jsx)(s.code,{children:"SearchWfSpec"})]}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Request Type"}),(0,r.jsx)(s.th,{children:"Response Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsx)(s.tbody,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#searchwfspecrequest",children:"SearchWfSpecRequest"})}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#wfspecidlist",children:"WfSpecIdList"})}),(0,r.jsx)(s.td,{children:"Search for WfSpec's."})]})})]}),"\n",(0,r.jsxs)(s.h3,{id:"searchexternaleventdef",children:["RPC ",(0,r.jsx)(s.code,{children:"SearchExternalEventDef"})]}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Request Type"}),(0,r.jsx)(s.th,{children:"Response Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsx)(s.tbody,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#searchexternaleventdefrequest",children:"SearchExternalEventDefRequest"})}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#externaleventdefidlist",children:"ExternalEventDefIdList"})}),(0,r.jsx)(s.td,{children:"Search for ExternalEventDef's."})]})})]}),"\n",(0,r.jsxs)(s.h3,{id:"searchtenant",children:["RPC ",(0,r.jsx)(s.code,{children:"SearchTenant"})]}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Request Type"}),(0,r.jsx)(s.th,{children:"Response Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsx)(s.tbody,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#searchtenantrequest",children:"SearchTenantRequest"})}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#tenantidlist",children:"TenantIdList"})}),(0,r.jsx)(s.td,{children:"Search for all available TenantIds for current Principal"})]})})]}),"\n",(0,r.jsxs)(s.h3,{id:"searchprincipal",children:["RPC ",(0,r.jsx)(s.code,{children:"SearchPrincipal"})]}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Request Type"}),(0,r.jsx)(s.th,{children:"Response Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsx)(s.tbody,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#searchprincipalrequest",children:"SearchPrincipalRequest"})}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#principalidlist",children:"PrincipalIdList"})}),(0,r.jsx)(s.td,{})]})})]}),"\n",(0,r.jsxs)(s.h3,{id:"registertaskworker",children:["RPC ",(0,r.jsx)(s.code,{children:"RegisterTaskWorker"})]}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Request Type"}),(0,r.jsx)(s.th,{children:"Response Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsx)(s.tbody,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#registertaskworkerrequest",children:"RegisterTaskWorkerRequest"})}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#registertaskworkerresponse",children:"RegisterTaskWorkerResponse"})}),(0,r.jsx)(s.td,{children:"Used by the Task Worker to: 1. Tell the LH Server that the Task Worker has joined the Task Worker Group. 2. Receive the assignemnt of LH Server's to poll from. Generally, you won't use this request manually."})]})})]}),"\n",(0,r.jsxs)(s.h3,{id:"polltask",children:["RPC ",(0,r.jsx)(s.code,{children:"PollTask"})]}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Request Type"}),(0,r.jsx)(s.th,{children:"Response Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsx)(s.tbody,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#polltaskrequest",children:"PollTaskRequest"})}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#polltaskresponse",children:"PollTaskResponse"})}),(0,r.jsx)(s.td,{children:"Used by Task Workers to listen for TaskRuns on the Task Queue. Generally, you won't use this RPC manually."})]})})]}),"\n",(0,r.jsxs)(s.h3,{id:"reporttask",children:["RPC ",(0,r.jsx)(s.code,{children:"ReportTask"})]}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Request Type"}),(0,r.jsx)(s.th,{children:"Response Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsx)(s.tbody,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#reporttaskrun",children:"ReportTaskRun"})}),(0,r.jsx)(s.td,{children:".google.protobuf.Empty"}),(0,r.jsx)(s.td,{children:"Used by Task Workers to report the result of a TaskRun. Generally, you won't use this rpc manually."})]})})]}),"\n",(0,r.jsxs)(s.h3,{id:"stopwfrun",children:["RPC ",(0,r.jsx)(s.code,{children:"StopWfRun"})]}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Request Type"}),(0,r.jsx)(s.th,{children:"Response Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsx)(s.tbody,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#stopwfrunrequest",children:"StopWfRunRequest"})}),(0,r.jsx)(s.td,{children:".google.protobuf.Empty"}),(0,r.jsx)(s.td,{children:"Move a WfRun or a specific ThreadRun in that WfRun to the HALTED state."})]})})]}),"\n",(0,r.jsxs)(s.h3,{id:"resumewfrun",children:["RPC ",(0,r.jsx)(s.code,{children:"ResumeWfRun"})]}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Request Type"}),(0,r.jsx)(s.th,{children:"Response Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsx)(s.tbody,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#resumewfrunrequest",children:"ResumeWfRunRequest"})}),(0,r.jsx)(s.td,{children:".google.protobuf.Empty"}),(0,r.jsx)(s.td,{children:"Resumes a WfRun or a specific ThreadRun of a WfRun."})]})})]}),"\n",(0,r.jsxs)(s.h3,{id:"rescuethreadrun",children:["RPC ",(0,r.jsx)(s.code,{children:"RescueThreadRun"})]}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Request Type"}),(0,r.jsx)(s.th,{children:"Response Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsx)(s.tbody,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#rescuethreadrunrequest",children:"RescueThreadRunRequest"})}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#wfrun",children:"WfRun"})}),(0,r.jsxs)(s.td,{children:["Rescues a failed ThreadRun (in the ERROR state only) by restarting it from the point of failure. Useful if a bug in Task Worker implementation caused a WfRun to fail and you did not have a FailureHandler for that NodeRun.",(0,r.jsx)("br",{}),(0,r.jsx)("br",{}),"The specified ",(0,r.jsx)(s.code,{children:"ThreadRun"})," must be in a state where it's latest ",(0,r.jsx)(s.code,{children:"NodeRun"})," is: ",(0,r.jsx)("br",{})," - In the ",(0,r.jsx)(s.code,{children:"ERROR"})," state.",(0,r.jsx)("br",{})," - Has no ",(0,r.jsx)(s.code,{children:"FailureHandler"})," ",(0,r.jsx)(s.code,{children:"ThreadRun"}),"s ",(0,r.jsx)("br",{})," - The parent ",(0,r.jsx)(s.code,{children:"ThreadRun"}),", or any parent of the parent, has not handled the ",(0,r.jsx)(s.code,{children:"Failure"})," yet.",(0,r.jsx)("br",{}),(0,r.jsx)("br",{}),"If that is not true, then the ",(0,r.jsx)(s.code,{children:"ThreadRun"})," cannot be rescued and the request will return ",(0,r.jsx)(s.code,{children:"FAILED_PRECONDITION"}),"."]})]})})]}),"\n",(0,r.jsxs)(s.h3,{id:"deletewfrun",children:["RPC ",(0,r.jsx)(s.code,{children:"DeleteWfRun"})]}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Request Type"}),(0,r.jsx)(s.th,{children:"Response Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsx)(s.tbody,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#deletewfrunrequest",children:"DeleteWfRunRequest"})}),(0,r.jsx)(s.td,{children:".google.protobuf.Empty"}),(0,r.jsx)(s.td,{children:"Deletes a WfRun. The WfRun cannot be in the RUNNING state."})]})})]}),"\n",(0,r.jsxs)(s.h3,{id:"deletetaskdef",children:["RPC ",(0,r.jsx)(s.code,{children:"DeleteTaskDef"})]}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Request Type"}),(0,r.jsx)(s.th,{children:"Response Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsx)(s.tbody,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#deletetaskdefrequest",children:"DeleteTaskDefRequest"})}),(0,r.jsx)(s.td,{children:".google.protobuf.Empty"}),(0,r.jsx)(s.td,{children:"Deletes a TaskDef."})]})})]}),"\n",(0,r.jsxs)(s.h3,{id:"deletewfspec",children:["RPC ",(0,r.jsx)(s.code,{children:"DeleteWfSpec"})]}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Request Type"}),(0,r.jsx)(s.th,{children:"Response Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsx)(s.tbody,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#deletewfspecrequest",children:"DeleteWfSpecRequest"})}),(0,r.jsx)(s.td,{children:".google.protobuf.Empty"}),(0,r.jsx)(s.td,{children:"Deletes a WfSpec."})]})})]}),"\n",(0,r.jsxs)(s.h3,{id:"deleteusertaskdef",children:["RPC ",(0,r.jsx)(s.code,{children:"DeleteUserTaskDef"})]}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Request Type"}),(0,r.jsx)(s.th,{children:"Response Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsx)(s.tbody,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#deleteusertaskdefrequest",children:"DeleteUserTaskDefRequest"})}),(0,r.jsx)(s.td,{children:".google.protobuf.Empty"}),(0,r.jsx)(s.td,{children:"Deletes a UserTaskDef."})]})})]}),"\n",(0,r.jsxs)(s.h3,{id:"deleteexternaleventdef",children:["RPC ",(0,r.jsx)(s.code,{children:"DeleteExternalEventDef"})]}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Request Type"}),(0,r.jsx)(s.th,{children:"Response Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsx)(s.tbody,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#deleteexternaleventdefrequest",children:"DeleteExternalEventDefRequest"})}),(0,r.jsx)(s.td,{children:".google.protobuf.Empty"}),(0,r.jsx)(s.td,{children:"Deletes an ExternalEventDef."})]})})]}),"\n",(0,r.jsxs)(s.h3,{id:"deleteprincipal",children:["RPC ",(0,r.jsx)(s.code,{children:"DeletePrincipal"})]}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Request Type"}),(0,r.jsx)(s.th,{children:"Response Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsx)(s.tbody,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#deleteprincipalrequest",children:"DeletePrincipalRequest"})}),(0,r.jsx)(s.td,{children:".google.protobuf.Empty"}),(0,r.jsxs)(s.td,{children:["Deletes a ",(0,r.jsx)(s.code,{children:"Principal"}),". Fails with ",(0,r.jsx)(s.code,{children:"FAILED_PRECONDITION"})," if the specified ",(0,r.jsx)(s.code,{children:"Principal"})," is the last remaining ",(0,r.jsx)(s.code,{children:"Principal"})," with admin permissions. Admin permissions are defined as having the ",(0,r.jsx)(s.code,{children:"global_acls"})," of ",(0,r.jsx)(s.code,{children:"ALL_ACTIONS"})," over the ",(0,r.jsx)(s.code,{children:"ACL_ALL_RESOURCES"})," scope."]})]})})]}),"\n",(0,r.jsxs)(s.h3,{id:"deletescheduledwfrun",children:["RPC ",(0,r.jsx)(s.code,{children:"DeleteScheduledWfRun"})]}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Request Type"}),(0,r.jsx)(s.th,{children:"Response Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsx)(s.tbody,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#deletescheduledwfrunrequest",children:"DeleteScheduledWfRunRequest"})}),(0,r.jsx)(s.td,{children:".google.protobuf.Empty"}),(0,r.jsx)(s.td,{children:"Deletes a scheduled run and prevents any further associated WfRun from being executed."})]})})]}),"\n",(0,r.jsxs)(s.h3,{id:"gettaskdefmetricswindow",children:["RPC ",(0,r.jsx)(s.code,{children:"GetTaskDefMetricsWindow"})]}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Request Type"}),(0,r.jsx)(s.th,{children:"Response Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsx)(s.tbody,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#taskdefmetricsqueryrequest",children:"TaskDefMetricsQueryRequest"})}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#taskdefmetrics",children:"TaskDefMetrics"})}),(0,r.jsx)(s.td,{children:"Returns TaskDef Metrics for a specific TaskDef and a specific time window."})]})})]}),"\n",(0,r.jsxs)(s.h3,{id:"getwfspecmetricswindow",children:["RPC ",(0,r.jsx)(s.code,{children:"GetWfSpecMetricsWindow"})]}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Request Type"}),(0,r.jsx)(s.th,{children:"Response Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsx)(s.tbody,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#wfspecmetricsqueryrequest",children:"WfSpecMetricsQueryRequest"})}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#wfspecmetrics",children:"WfSpecMetrics"})}),(0,r.jsx)(s.td,{children:"Returns WfSpec Metrics for a specific WfSpec and a specific time window."})]})})]}),"\n",(0,r.jsxs)(s.h3,{id:"listtaskdefmetrics",children:["RPC ",(0,r.jsx)(s.code,{children:"ListTaskDefMetrics"})]}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Request Type"}),(0,r.jsx)(s.th,{children:"Response Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsx)(s.tbody,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#listtaskmetricsrequest",children:"ListTaskMetricsRequest"})}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#listtaskmetricsresponse",children:"ListTaskMetricsResponse"})}),(0,r.jsx)(s.td,{children:"Returns a list of TaskDef Metrics Windows."})]})})]}),"\n",(0,r.jsxs)(s.h3,{id:"listwfspecmetrics",children:["RPC ",(0,r.jsx)(s.code,{children:"ListWfSpecMetrics"})]}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Request Type"}),(0,r.jsx)(s.th,{children:"Response Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsx)(s.tbody,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#listwfmetricsrequest",children:"ListWfMetricsRequest"})}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#listwfmetricsresponse",children:"ListWfMetricsResponse"})}),(0,r.jsx)(s.td,{children:"Returns a list of WfSpec Metrics Windows."})]})})]}),"\n",(0,r.jsxs)(s.h3,{id:"puttenant",children:["RPC ",(0,r.jsx)(s.code,{children:"PutTenant"})]}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Request Type"}),(0,r.jsx)(s.th,{children:"Response Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsx)(s.tbody,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#puttenantrequest",children:"PutTenantRequest"})}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#tenant",children:"Tenant"})}),(0,r.jsx)(s.td,{children:"EXPERIMENTAL: Creates another Tenant in the LH Server."})]})})]}),"\n",(0,r.jsxs)(s.h3,{id:"gettenant",children:["RPC ",(0,r.jsx)(s.code,{children:"GetTenant"})]}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Request Type"}),(0,r.jsx)(s.th,{children:"Response Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsx)(s.tbody,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#tenantid",children:"TenantId"})}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#tenant",children:"Tenant"})}),(0,r.jsx)(s.td,{children:"EXPERIMENTAL: Gets a Tenant from the LH Server."})]})})]}),"\n",(0,r.jsxs)(s.h3,{id:"putprincipal",children:["RPC ",(0,r.jsx)(s.code,{children:"PutPrincipal"})]}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Request Type"}),(0,r.jsx)(s.th,{children:"Response Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsx)(s.tbody,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#putprincipalrequest",children:"PutPrincipalRequest"})}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#principal",children:"Principal"})}),(0,r.jsx)(s.td,{children:"EXPERIMENTAL: Creates an Principal."})]})})]}),"\n",(0,r.jsxs)(s.h3,{id:"whoami",children:["RPC ",(0,r.jsx)(s.code,{children:"Whoami"})]}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Request Type"}),(0,r.jsx)(s.th,{children:"Response Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsx)(s.tbody,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:".google.protobuf.Empty"}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#principal",children:"Principal"})}),(0,r.jsx)(s.td,{children:"Returns the Principal of the caller."})]})})]}),"\n",(0,r.jsxs)(s.h3,{id:"getserverversion",children:["RPC ",(0,r.jsx)(s.code,{children:"GetServerVersion"})]}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Request Type"}),(0,r.jsx)(s.th,{children:"Response Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsx)(s.tbody,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:".google.protobuf.Empty"}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#serverversionresponse",children:"ServerVersionResponse"})}),(0,r.jsx)(s.td,{children:"Gets the version of the LH Server."})]})})]}),"\n",(0,r.jsx)(s.h2,{id:"littlehorse-protobuf-schemas",children:"LittleHorse Protobuf Schemas"}),"\n",(0,r.jsx)(s.p,{children:"This section contains the exact schemas for every object in our public API."}),"\n",(0,r.jsxs)(s.h3,{id:"deleteprincipalrequest",children:["Message ",(0,r.jsx)(s.code,{children:"DeletePrincipalRequest"})]}),"\n",(0,r.jsxs)(s.p,{children:["Deletes a ",(0,r.jsx)(s.code,{children:"Principal"}),". Fails with ",(0,r.jsx)(s.code,{children:"FAILED_PRECONDITION"})," if the specified ",(0,r.jsx)(s.code,{children:"Principal"})," is the last\nadmin ",(0,r.jsx)(s.code,{children:"Principal"}),"."]}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Field"}),(0,r.jsx)(s.th,{children:"Label"}),(0,r.jsx)(s.th,{children:"Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsx)(s.tbody,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"id"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#principalid",children:"PrincipalId"})}),(0,r.jsxs)(s.td,{children:["The ID of the ",(0,r.jsx)(s.code,{children:"Principal"})," to delete."]})]})})]}),"\n",(0,r.jsxs)(s.h3,{id:"principal",children:["Message ",(0,r.jsx)(s.code,{children:"Principal"})]}),"\n",(0,r.jsx)(s.p,{children:"A Principal represents the identity of a client of LittleHorse, whether human or\nmachine. The ACL's on the Principal control what actions the client is allowed\nto take."}),"\n",(0,r.jsx)(s.p,{children:"A Principal is not scoped to a Tenant; rather, a Principal is scoped to the Cluster\nand may have access to one or more Tenants."}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Field"}),(0,r.jsx)(s.th,{children:"Label"}),(0,r.jsx)(s.th,{children:"Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsxs)(s.tbody,{children:[(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"id"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#principalid",children:"PrincipalId"})}),(0,r.jsxs)(s.td,{children:["The ID of the Principal. In OAuth for human users, this is the user_id. In OAuth for machine clients, this is the Client ID.",(0,r.jsx)("br",{}),(0,r.jsx)("br",{}),"mTLS for Principal identification is not yet implemented."]})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"created_at"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:"google.protobuf.Timestamp"}),(0,r.jsx)(s.td,{children:"The time at which the Principal was created."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"per_tenant_acls"})}),(0,r.jsx)(s.td,{children:"map"}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#principalpertenantaclsentry",children:"Principal.PerTenantAclsEntry"})}),(0,r.jsxs)(s.td,{children:["Maps a Tenant ID to a list of ACL's that the Principal has permission to execute ",(0,r.jsx)(s.em,{children:"within that Tenant"}),"."]})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"global_acls"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#serveracls",children:"ServerACLs"})}),(0,r.jsxs)(s.td,{children:["Sets permissions that this Principal has ",(0,r.jsx)(s.em,{children:"for any Tenant"})," in the LH Cluster."]})]})]})]}),"\n",(0,r.jsxs)(s.h3,{id:"principalpertenantaclsentry",children:["Message ",(0,r.jsx)(s.code,{children:"Principal.PerTenantAclsEntry"})]}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Field"}),(0,r.jsx)(s.th,{children:"Label"}),(0,r.jsx)(s.th,{children:"Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsxs)(s.tbody,{children:[(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"key"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:"string"}),(0,r.jsx)(s.td,{})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"value"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#serveracls",children:"ServerACLs"})}),(0,r.jsx)(s.td,{})]})]})]}),"\n",(0,r.jsxs)(s.h3,{id:"putprincipalrequest",children:["Message ",(0,r.jsx)(s.code,{children:"PutPrincipalRequest"})]}),"\n",(0,r.jsxs)(s.p,{children:["Creates or updates a Principal. If this request would remove admin privileges from the\nlast admin principal (i.e. ",(0,r.jsx)(s.code,{children:"ALL_ACTIONS"})," over ",(0,r.jsx)(s.code,{children:"ACL_ALL_RESOURCES"})," in the ",(0,r.jsx)(s.code,{children:"global_acls"}),"),\nthen the RPC throws ",(0,r.jsx)(s.code,{children:"FAILED_PRECONDITION"}),"."]}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Field"}),(0,r.jsx)(s.th,{children:"Label"}),(0,r.jsx)(s.th,{children:"Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsxs)(s.tbody,{children:[(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"id"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:"string"}),(0,r.jsx)(s.td,{children:"The ID of the Principal that we are creating."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"per_tenant_acls"})}),(0,r.jsx)(s.td,{children:"map"}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#putprincipalrequestpertenantaclsentry",children:"PutPrincipalRequest.PerTenantAclsEntry"})}),(0,r.jsx)(s.td,{children:"The per-tenant ACL's for the Principal"})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"global_acls"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#serveracls",children:"ServerACLs"})}),(0,r.jsx)(s.td,{children:"The ACL's for the principal in all tenants"})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"overwrite"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:"bool"}),(0,r.jsxs)(s.td,{children:["If this is set to false and a ",(0,r.jsx)(s.code,{children:"Principal"})," with the same ",(0,r.jsx)(s.code,{children:"id"})," already exists ",(0,r.jsx)(s.em,{children:"and"})," has different ACL's configured, then the RPC throws ",(0,r.jsx)(s.code,{children:"ALREADY_EXISTS"}),".",(0,r.jsx)("br",{}),(0,r.jsx)("br",{}),"If this is set to ",(0,r.jsx)(s.code,{children:"true"}),", then the RPC will override hte"]})]})]})]}),"\n",(0,r.jsxs)(s.h3,{id:"putprincipalrequestpertenantaclsentry",children:["Message ",(0,r.jsx)(s.code,{children:"PutPrincipalRequest.PerTenantAclsEntry"})]}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Field"}),(0,r.jsx)(s.th,{children:"Label"}),(0,r.jsx)(s.th,{children:"Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsxs)(s.tbody,{children:[(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"key"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:"string"}),(0,r.jsx)(s.td,{})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"value"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#serveracls",children:"ServerACLs"})}),(0,r.jsx)(s.td,{})]})]})]}),"\n",(0,r.jsxs)(s.h3,{id:"puttenantrequest",children:["Message ",(0,r.jsx)(s.code,{children:"PutTenantRequest"})]}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Field"}),(0,r.jsx)(s.th,{children:"Label"}),(0,r.jsx)(s.th,{children:"Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsx)(s.tbody,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"id"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:"string"}),(0,r.jsx)(s.td,{})]})})]}),"\n",(0,r.jsxs)(s.h3,{id:"serveracl",children:["Message ",(0,r.jsx)(s.code,{children:"ServerACL"})]}),"\n",(0,r.jsxs)(s.p,{children:["Represents a specific set of permissions over a specific set of objects\nin a Tenant. This is a ",(0,r.jsx)(s.em,{children:"positive"})," permission."]}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Field"}),(0,r.jsx)(s.th,{children:"Label"}),(0,r.jsx)(s.th,{children:"Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsxs)(s.tbody,{children:[(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"resources"})}),(0,r.jsx)(s.td,{children:"repeated"}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#aclresource",children:"ACLResource"})}),(0,r.jsx)(s.td,{children:"The resource types over which permission is granted."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"allowed_actions"})}),(0,r.jsx)(s.td,{children:"repeated"}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#aclaction",children:"ACLAction"})}),(0,r.jsx)(s.td,{children:"The actions that are permitted."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"name"})}),(0,r.jsxs)(s.td,{children:["oneof ",(0,r.jsx)(s.code,{children:"resource_filter"})]}),(0,r.jsx)(s.td,{children:"string"}),(0,r.jsxs)(s.td,{children:["If set, then only the resources with this exact name are allowed. For example, the ",(0,r.jsx)(s.code,{children:"READ"})," and ",(0,r.jsx)(s.code,{children:"RUN"})," ",(0,r.jsx)(s.code,{children:"allowed_actions"})," over ",(0,r.jsx)(s.code,{children:"ACL_TASK"})," with ",(0,r.jsx)(s.code,{children:"name"})," == ",(0,r.jsx)(s.code,{children:"my-task"})," allows a Task Worker to only execute the ",(0,r.jsx)(s.code,{children:"my-task"})," TaskDef.",(0,r.jsx)("br",{}),(0,r.jsx)("br",{}),"If ",(0,r.jsx)(s.code,{children:"name"})," and ",(0,r.jsx)(s.code,{children:"prefix"})," are unset, then the ACL applies to all resources of the specified types."]})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"prefix"})}),(0,r.jsxs)(s.td,{children:["oneof ",(0,r.jsx)(s.code,{children:"resource_filter"})]}),(0,r.jsx)(s.td,{children:"string"}),(0,r.jsxs)(s.td,{children:["If set, then only the resources whose names match this prefix are allowed.",(0,r.jsx)("br",{}),(0,r.jsx)("br",{}),"If ",(0,r.jsx)(s.code,{children:"name"})," and ",(0,r.jsx)(s.code,{children:"prefix"})," are unset, then the ACL applies to all resources of the specified types."]})]})]})]}),"\n",(0,r.jsxs)(s.h3,{id:"serveracls",children:["Message ",(0,r.jsx)(s.code,{children:"ServerACLs"})]}),"\n",(0,r.jsx)(s.p,{children:"List of ACL's for LittleHorse"}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Field"}),(0,r.jsx)(s.th,{children:"Label"}),(0,r.jsx)(s.th,{children:"Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsx)(s.tbody,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"acls"})}),(0,r.jsx)(s.td,{children:"repeated"}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#serveracl",children:"ServerACL"})}),(0,r.jsx)(s.td,{children:"The associated ACL's"})]})})]}),"\n",(0,r.jsxs)(s.h3,{id:"tenant",children:["Message ",(0,r.jsx)(s.code,{children:"Tenant"})]}),"\n",(0,r.jsx)(s.p,{children:"A Tenant is a logically isolated environment within LittleHorse. All workflows and\nassociated data (WfSpec, WfRun, TaskDef, TaskRun, NodeRun, etc) are scoped to within\na Tenant."}),"\n",(0,r.jsx)(s.p,{children:"Future versions will include quotas on a per-Tenant basis."}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Field"}),(0,r.jsx)(s.th,{children:"Label"}),(0,r.jsx)(s.th,{children:"Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsxs)(s.tbody,{children:[(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"id"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#tenantid",children:"TenantId"})}),(0,r.jsx)(s.td,{children:"The ID of the Tenant."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"created_at"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:"google.protobuf.Timestamp"}),(0,r.jsx)(s.td,{children:"The time at which the Tenant was created."})]})]})]}),"\n",(0,r.jsxs)(s.h3,{id:"exponentialbackoffretrypolicy",children:["Message ",(0,r.jsx)(s.code,{children:"ExponentialBackoffRetryPolicy"})]}),"\n",(0,r.jsxs)(s.p,{children:["Defines an Exponential backoff policy for TaskRun retries. The delay for a retry\nattempt ",(0,r.jsx)(s.code,{children:"N"})," is defined as:"]}),"\n",(0,r.jsx)(s.p,{children:"min(base_interval_ms * (multiplier ^(N-1)), max_delay_ms)"}),"\n",(0,r.jsx)(s.p,{children:"Note that timers in LittleHorse have a resolution of about 500-1000 milliseconds,\nso timing is not exact."}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Field"}),(0,r.jsx)(s.th,{children:"Label"}),(0,r.jsx)(s.th,{children:"Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsxs)(s.tbody,{children:[(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"base_interval_ms"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:"int32"}),(0,r.jsx)(s.td,{children:"Base delay in ms for the first retry. Note that in LittleHorse, timers have a resolution of 500-1000 milliseconds. Must be greater than zero."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"max_delay_ms"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:"int64"}),(0,r.jsx)(s.td,{children:"Maximum delay in milliseconds between retries."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"multiplier"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:"float"}),(0,r.jsx)(s.td,{children:"The multiplier to use in calculating the retry backoff policy. We recommend starting with 2.0. Must be at least 1.0."})]})]})]}),"\n",(0,r.jsxs)(s.h3,{id:"tasknode",children:["Message ",(0,r.jsx)(s.code,{children:"TaskNode"})]}),"\n",(0,r.jsx)(s.p,{children:"Defines a TaskRun execution. Used in a Node and also in the UserTask Trigger Actions."}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Field"}),(0,r.jsx)(s.th,{children:"Label"}),(0,r.jsx)(s.th,{children:"Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsxs)(s.tbody,{children:[(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"task_def_id"})}),(0,r.jsxs)(s.td,{children:["oneof ",(0,r.jsx)(s.code,{children:"task_to_execute"})]}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#taskdefid",children:"TaskDefId"})}),(0,r.jsx)(s.td,{})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"dynamic_task"})}),(0,r.jsxs)(s.td,{children:["oneof ",(0,r.jsx)(s.code,{children:"task_to_execute"})]}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#variableassignment",children:"VariableAssignment"})}),(0,r.jsx)(s.td,{})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"timeout_seconds"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:"int32"}),(0,r.jsx)(s.td,{children:"How long until LittleHorse determines that the Task Worker had a technical ERROR if the worker does not yet reply to the Server. This is determined on a per-Attempt basis."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"retries"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:"int32"}),(0,r.jsxs)(s.td,{children:["Configures the amount of retries allowed on this TaskNode.",(0,r.jsx)("br",{}),(0,r.jsx)("br",{}),"Retryable errors include: - TASK_TIMEOUT: the TaskRun was started but the scheduler didn't hear back from the Task Worker in time. - TASK_FAILED: the Task Worker reported an unexpected ",(0,r.jsx)(s.em,{children:"technical"})," ERROR when executing the Task Function.",(0,r.jsx)("br",{}),(0,r.jsx)("br",{}),"Other result codes are not retryable (including TASK_OUTPUT_SERIALIZING_ERROR, TASK_INPUT_VAR_SUB_ERROR, and TASK_EXCEPTION)."]})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"exponential_backoff"})}),(0,r.jsx)(s.td,{children:"optional"}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#exponentialbackoffretrypolicy",children:"ExponentialBackoffRetryPolicy"})}),(0,r.jsx)(s.td,{children:"If this field is set, then retries will use Exponential Backoff."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"variables"})}),(0,r.jsx)(s.td,{children:"repeated"}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#variableassignment",children:"VariableAssignment"})}),(0,r.jsx)(s.td,{children:"Input variables into the TaskDef."})]})]})]}),"\n",(0,r.jsxs)(s.h3,{id:"utactiontrigger",children:["Message ",(0,r.jsx)(s.code,{children:"UTActionTrigger"})]}),"\n",(0,r.jsx)(s.p,{children:"A UTActionTrigger triggers an action upon certain lifecycle hooks\nin a User Task. Actions include:"}),"\n",(0,r.jsxs)(s.ul,{children:["\n",(0,r.jsx)(s.li,{children:"re-assign the User Task Run"}),"\n",(0,r.jsx)(s.li,{children:"cancel the User Task Run"}),"\n",(0,r.jsx)(s.li,{children:"execute a Reminder Task"}),"\n"]}),"\n",(0,r.jsx)(s.p,{children:"Hooks include:"}),"\n",(0,r.jsxs)(s.ul,{children:["\n",(0,r.jsx)(s.li,{children:"Upon creation of the UserTaskRun"}),"\n",(0,r.jsx)(s.li,{children:"Upon rescheduling the UserTaskRun"}),"\n"]}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Field"}),(0,r.jsx)(s.th,{children:"Label"}),(0,r.jsx)(s.th,{children:"Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsxs)(s.tbody,{children:[(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"task"})}),(0,r.jsxs)(s.td,{children:["oneof ",(0,r.jsx)(s.code,{children:"action"})]}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#utactiontriggerutatask",children:"UTActionTrigger.UTATask"})}),(0,r.jsx)(s.td,{})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"cancel"})}),(0,r.jsxs)(s.td,{children:["oneof ",(0,r.jsx)(s.code,{children:"action"})]}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#utactiontriggerutacancel",children:"UTActionTrigger.UTACancel"})}),(0,r.jsx)(s.td,{})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"reassign"})}),(0,r.jsxs)(s.td,{children:["oneof ",(0,r.jsx)(s.code,{children:"action"})]}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#utactiontriggerutareassign",children:"UTActionTrigger.UTAReassign"})}),(0,r.jsx)(s.td,{children:"later on, might enable scheduling entire ThreadRuns"})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"delay_seconds"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#variableassignment",children:"VariableAssignment"})}),(0,r.jsx)(s.td,{children:"The Action is triggered some time after the Hook matures. The delay is controlled by this field."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"hook"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#utactiontriggeruthook",children:"UTActionTrigger.UTHook"})}),(0,r.jsx)(s.td,{children:"The hook on which this UserTaskAction is scheduled."})]})]})]}),"\n",(0,r.jsxs)(s.h3,{id:"utactiontriggerutacancel",children:["Message ",(0,r.jsx)(s.code,{children:"UTActionTrigger.UTACancel"})]}),"\n",(0,r.jsx)(s.p,{children:"A UserTaskAction that causes a UserTaskRun to be CANCELLED when it fires."}),"\n",(0,r.jsxs)(s.h3,{id:"utactiontriggerutareassign",children:["Message ",(0,r.jsx)(s.code,{children:"UTActionTrigger.UTAReassign"})]}),"\n",(0,r.jsx)(s.p,{children:"A UserTaskAction that causes a UserTaskRun to be reassigned when it fires."}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Field"}),(0,r.jsx)(s.th,{children:"Label"}),(0,r.jsx)(s.th,{children:"Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsxs)(s.tbody,{children:[(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"user_id"})}),(0,r.jsx)(s.td,{children:"optional"}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#variableassignment",children:"VariableAssignment"})}),(0,r.jsx)(s.td,{children:"A variable assignment that resolves to a STR representing the new user_id. If not set, the user_id of the UserTaskRun will be un-set."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"user_group"})}),(0,r.jsx)(s.td,{children:"optional"}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#variableassignment",children:"VariableAssignment"})}),(0,r.jsx)(s.td,{children:"A variable assignment that resolves to a STR representing the new user_group. If not set, the user_group of the UserTaskRun will be un-set."})]})]})]}),"\n",(0,r.jsxs)(s.h3,{id:"utactiontriggerutatask",children:["Message ",(0,r.jsx)(s.code,{children:"UTActionTrigger.UTATask"})]}),"\n",(0,r.jsx)(s.p,{children:"A UserTaskAction that causes a TaskRun to be scheduled when it fires."}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Field"}),(0,r.jsx)(s.th,{children:"Label"}),(0,r.jsx)(s.th,{children:"Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsxs)(s.tbody,{children:[(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"task"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#tasknode",children:"TaskNode"})}),(0,r.jsx)(s.td,{children:"The specification of the Task to schedule."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"mutations"})}),(0,r.jsx)(s.td,{children:"repeated"}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#variablemutation",children:"VariableMutation"})}),(0,r.jsx)(s.td,{children:"EXPERIMENTAL: Any variables in the ThreadRun which we should mutate."})]})]})]}),"\n",(0,r.jsxs)(s.h3,{id:"variableassignment",children:["Message ",(0,r.jsx)(s.code,{children:"VariableAssignment"})]}),"\n",(0,r.jsx)(s.p,{children:"A VariableAssignment is used within a WfSpec to determine how a value should be\nassigned in the context of a specific WfRun. For example, in a TASK node, you\nuse a VariableAssignment for each input parameter to determine how the value\nis set."}),"\n",(0,r.jsx)(s.p,{children:"Note that the VariableAssignment is normally handled by the SDK; you shouldn't\nhave to worry about this in daily LittleHorse usage."}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Field"}),(0,r.jsx)(s.th,{children:"Label"}),(0,r.jsx)(s.th,{children:"Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsxs)(s.tbody,{children:[(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"json_path"})}),(0,r.jsx)(s.td,{children:"optional"}),(0,r.jsx)(s.td,{children:"string"}),(0,r.jsxs)(s.td,{children:["If you provide a ",(0,r.jsx)(s.code,{children:"variable_name"})," and the specified variable is JSON_OBJ or JSON_ARR type, then you may also provide a json_path which makes the VariableAssignment resolve to the specified field."]})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"variable_name"})}),(0,r.jsxs)(s.td,{children:["oneof ",(0,r.jsx)(s.code,{children:"source"})]}),(0,r.jsx)(s.td,{children:"string"}),(0,r.jsx)(s.td,{children:"Assign the value from a variable."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"literal_value"})}),(0,r.jsxs)(s.td,{children:["oneof ",(0,r.jsx)(s.code,{children:"source"})]}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#variablevalue",children:"VariableValue"})}),(0,r.jsx)(s.td,{children:"Assign a literal value"})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"format_string"})}),(0,r.jsxs)(s.td,{children:["oneof ",(0,r.jsx)(s.code,{children:"source"})]}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#variableassignmentformatstring",children:"VariableAssignment.FormatString"})}),(0,r.jsx)(s.td,{children:"Assign a format string"})]})]})]}),"\n",(0,r.jsxs)(s.h3,{id:"variableassignmentformatstring",children:["Message ",(0,r.jsx)(s.code,{children:"VariableAssignment.FormatString"})]}),"\n",(0,r.jsx)(s.p,{children:"A FormatString formats a template String with values from the WfRun."}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Field"}),(0,r.jsx)(s.th,{children:"Label"}),(0,r.jsx)(s.th,{children:"Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsxs)(s.tbody,{children:[(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"format"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#variableassignment",children:"VariableAssignment"})}),(0,r.jsxs)(s.td,{children:['A VariableAssignment which must resolve to a String that has format args. A valid string is "This is a format string with three args: ',0,", ",1,", ",2,'"']})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"args"})}),(0,r.jsx)(s.td,{children:"repeated"}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#variableassignment",children:"VariableAssignment"})}),(0,r.jsx)(s.td,{children:"VariableAssignments which fill out the args."})]})]})]}),"\n",(0,r.jsxs)(s.h3,{id:"variabledef",children:["Message ",(0,r.jsx)(s.code,{children:"VariableDef"})]}),"\n",(0,r.jsx)(s.p,{children:"Declares a Variable."}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Field"}),(0,r.jsx)(s.th,{children:"Label"}),(0,r.jsx)(s.th,{children:"Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsxs)(s.tbody,{children:[(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"type"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#variabletype",children:"VariableType"})}),(0,r.jsx)(s.td,{children:"The Type of the variable."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"name"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:"string"}),(0,r.jsx)(s.td,{children:"The name of the variable."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"default_value"})}),(0,r.jsx)(s.td,{children:"optional"}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#variablevalue",children:"VariableValue"})}),(0,r.jsx)(s.td,{children:"Optional default value if the variable isn't set; for example, in a ThreadRun if you start a ThreadRun or WfRun without passing a variable in, then this is used."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"masked_value"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:"bool"}),(0,r.jsx)(s.td,{children:"If true, the variable value will show as a masked string."})]})]})]}),"\n",(0,r.jsxs)(s.h3,{id:"variablemutation",children:["Message ",(0,r.jsx)(s.code,{children:"VariableMutation"})]}),"\n",(0,r.jsx)(s.p,{children:"A VariableMutation defines a modification made to one of a ThreadRun's variables.\nThe LHS determines the variable that is modified; the operation determines how\nit is modified, and the RHS is the input to the operation."}),"\n",(0,r.jsx)(s.p,{children:"Day-to-day users of LittleHorse generally don't interact with this structure unless\nthey are writing their own WfSpec SDK."}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Field"}),(0,r.jsx)(s.th,{children:"Label"}),(0,r.jsx)(s.th,{children:"Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsxs)(s.tbody,{children:[(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"lhs_name"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:"string"}),(0,r.jsx)(s.td,{children:"The name of the variable to mutate"})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"lhs_json_path"})}),(0,r.jsx)(s.td,{children:"optional"}),(0,r.jsx)(s.td,{children:"string"}),(0,r.jsx)(s.td,{children:"For JSON_ARR and JSON_OBJ variables, this allows you to optionally mutate a specific sub-field of the variable."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"operation"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#variablemutationtype",children:"VariableMutationType"})}),(0,r.jsx)(s.td,{children:"Defines the operation that we are executing."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"source_variable"})}),(0,r.jsxs)(s.td,{children:["oneof ",(0,r.jsx)(s.code,{children:"rhs_value"})]}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#variableassignment",children:"VariableAssignment"})}),(0,r.jsx)(s.td,{children:"Set the source_variable as the RHS to use another variable from the workflow to as the RHS/"})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"literal_value"})}),(0,r.jsxs)(s.td,{children:["oneof ",(0,r.jsx)(s.code,{children:"rhs_value"})]}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#variablevalue",children:"VariableValue"})}),(0,r.jsx)(s.td,{children:"Use a literal value as the RHS."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"node_output"})}),(0,r.jsxs)(s.td,{children:["oneof ",(0,r.jsx)(s.code,{children:"rhs_value"})]}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#variablemutationnodeoutputsource",children:"VariableMutation.NodeOutputSource"})}),(0,r.jsx)(s.td,{children:"Use the output of the current node as the RHS."})]})]})]}),"\n",(0,r.jsxs)(s.h3,{id:"variablemutationnodeoutputsource",children:["Message ",(0,r.jsx)(s.code,{children:"VariableMutation.NodeOutputSource"})]}),"\n",(0,r.jsx)(s.p,{children:"Specifies to use the output of a NodeRun as the RHS."}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Field"}),(0,r.jsx)(s.th,{children:"Label"}),(0,r.jsx)(s.th,{children:"Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsx)(s.tbody,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"jsonpath"})}),(0,r.jsx)(s.td,{children:"optional"}),(0,r.jsx)(s.td,{children:"string"}),(0,r.jsx)(s.td,{children:"Use this specific field from a JSON output"})]})})]}),"\n",(0,r.jsxs)(s.h3,{id:"externalevent",children:["Message ",(0,r.jsx)(s.code,{children:"ExternalEvent"})]}),"\n",(0,r.jsx)(s.p,{children:"An ExternalEvent represents A Thing That Happened outside the context of a WfRun.\nGenerally, an ExternalEvent is used to represent a document getting signed, an incident\nbeing resolved, an order being fulfilled, etc."}),"\n",(0,r.jsx)(s.p,{children:"ExternalEvent's are created via the 'rpc PutExternalEvent'"}),"\n",(0,r.jsxs)(s.p,{children:["For more context on ExternalEvents, check our documentation here:\n",(0,r.jsx)(s.a,{href:"https://littlehorse.dev/docs/concepts/external-events",children:"https://littlehorse.dev/docs/concepts/external-events"})]}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Field"}),(0,r.jsx)(s.th,{children:"Label"}),(0,r.jsx)(s.th,{children:"Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsxs)(s.tbody,{children:[(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"id"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#externaleventid",children:"ExternalEventId"})}),(0,r.jsxs)(s.td,{children:["The ID of the ExternalEvent. This contains WfRunId, ExternalEventDefId, and a unique guid which can be used for idempotency of the ",(0,r.jsx)(s.code,{children:"PutExternalEvent"})," rpc call."]})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"created_at"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:"google.protobuf.Timestamp"}),(0,r.jsx)(s.td,{children:"The time the ExternalEvent was registered with LittleHorse."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"content"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#variablevalue",children:"VariableValue"})}),(0,r.jsx)(s.td,{children:"The payload of this ExternalEvent."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"thread_run_number"})}),(0,r.jsx)(s.td,{children:"optional"}),(0,r.jsx)(s.td,{children:"int32"}),(0,r.jsx)(s.td,{children:"If the ExternalEvent was claimed by a specific ThreadRun (via Interrupt or EXTERNAL_EVENT Node), this is set to the number of the relevant ThreadRun."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"node_run_position"})}),(0,r.jsx)(s.td,{children:"optional"}),(0,r.jsx)(s.td,{children:"int32"}),(0,r.jsx)(s.td,{children:"If the ExternalEvent was claimed by a specific ThreadRun (via EXTERNAL_EVENT Node; note that in the case of an Interrupt the node_run_position will never be set), this is set to the number of the relevant NodeRun."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"claimed"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:"bool"}),(0,r.jsx)(s.td,{children:"Whether the ExternalEvent has been claimed by a WfRun."})]})]})]}),"\n",(0,r.jsxs)(s.h3,{id:"externaleventdef",children:["Message ",(0,r.jsx)(s.code,{children:"ExternalEventDef"})]}),"\n",(0,r.jsx)(s.p,{children:"The ExternalEventDef defines the blueprint for an ExternalEvent."}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Field"}),(0,r.jsx)(s.th,{children:"Label"}),(0,r.jsx)(s.th,{children:"Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsxs)(s.tbody,{children:[(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"id"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#externaleventdefid",children:"ExternalEventDefId"})}),(0,r.jsx)(s.td,{children:"The id of the ExternalEventDef."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"created_at"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:"google.protobuf.Timestamp"}),(0,r.jsx)(s.td,{children:"When the ExternalEventDef was created."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"retention_policy"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#externaleventretentionpolicy",children:"ExternalEventRetentionPolicy"})}),(0,r.jsxs)(s.td,{children:["The retention policy for ExternalEvent's of this ExternalEventDef. This applies to the ExternalEvent ",(0,r.jsx)(s.strong,{children:"only before"})," it is matched with a WfRun."]})]})]})]}),"\n",(0,r.jsxs)(s.h3,{id:"externaleventretentionpolicy",children:["Message ",(0,r.jsx)(s.code,{children:"ExternalEventRetentionPolicy"})]}),"\n",(0,r.jsx)(s.p,{children:"Policy to determine how long an ExternalEvent is retained after creation if it\nis not yet claimed by a WfRun. Note that once a WfRun has been matched with the\nExternalEvent, the ExternalEvent is deleted if/when that WfRun is deleted.\nIf not set, then ExternalEvent's are not deleted if they are not matched with\na WfRun."}),"\n",(0,r.jsxs)(s.p,{children:["A future version of LittleHorse will allow changing the retention_policy, which\nwill trigger a cleanup of old ",(0,r.jsx)(s.code,{children:"ExternalEvent"}),"s."]}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Field"}),(0,r.jsx)(s.th,{children:"Label"}),(0,r.jsx)(s.th,{children:"Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsx)(s.tbody,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"seconds_after_put"})}),(0,r.jsxs)(s.td,{children:["oneof ",(0,r.jsx)(s.code,{children:"ext_evt_gc_policy"})]}),(0,r.jsx)(s.td,{children:"int64"}),(0,r.jsx)(s.td,{children:"Delete such an ExternalEvent X seconds after it has been registered if it has not yet been claimed by a WfRun."})]})})]}),"\n",(0,r.jsxs)(s.h3,{id:"entrypointrun",children:["Message ",(0,r.jsx)(s.code,{children:"EntrypointRun"})]}),"\n",(0,r.jsx)(s.p,{children:"The sub-node structure for an ENTRYPOINT NodeRun. Currently Empty."}),"\n",(0,r.jsxs)(s.h3,{id:"exitrun",children:["Message ",(0,r.jsx)(s.code,{children:"ExitRun"})]}),"\n",(0,r.jsx)(s.p,{children:"The sub-node structure for an EXIT NodeRun. Currently Empty, will contain info\nabout ThreadRun Outputs once those are added in the future."}),"\n",(0,r.jsxs)(s.h3,{id:"externaleventnoderun",children:["Message ",(0,r.jsx)(s.code,{children:"ExternalEventNodeRun"})]}),"\n",(0,r.jsx)(s.p,{children:"The sub-node structure for an EXTERNAL_EVENT NodeRun."}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Field"}),(0,r.jsx)(s.th,{children:"Label"}),(0,r.jsx)(s.th,{children:"Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsxs)(s.tbody,{children:[(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"external_event_def_id"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#externaleventdefid",children:"ExternalEventDefId"})}),(0,r.jsx)(s.td,{children:"The ExternalEventDefId that we are waiting for."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"event_time"})}),(0,r.jsx)(s.td,{children:"optional"}),(0,r.jsx)(s.td,{children:"google.protobuf.Timestamp"}),(0,r.jsx)(s.td,{children:"The time that the ExternalEvent arrived. Unset if still waiting."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"external_event_id"})}),(0,r.jsx)(s.td,{children:"optional"}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#externaleventid",children:"ExternalEventId"})}),(0,r.jsx)(s.td,{children:"The ExternalEventId of the ExternalEvent. Unset if still waiting."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"timed_out"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:"bool"}),(0,r.jsx)(s.td,{children:"Whether we had a timeout while waiting for the ExternalEvent to come."})]})]})]}),"\n",(0,r.jsxs)(s.h3,{id:"failure",children:["Message ",(0,r.jsx)(s.code,{children:"Failure"})]}),"\n",(0,r.jsx)(s.p,{children:"Denotes a failure that happened during execution of a NodeRun or the outgoing\nedges."}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Field"}),(0,r.jsx)(s.th,{children:"Label"}),(0,r.jsx)(s.th,{children:"Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsxs)(s.tbody,{children:[(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"failure_name"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:"string"}),(0,r.jsxs)(s.td,{children:["The name of the failure. LittleHorse has certain built-in failures, all named in UPPER_UNDERSCORE_CASE. Such failures correspond with the ",(0,r.jsx)(s.code,{children:"LHStatus.ERROR"}),".",(0,r.jsx)("br",{}),(0,r.jsx)("br",{}),"Any Failure named in ",(0,r.jsx)(s.code,{children:"kebab-case"})," is a user-defined business ",(0,r.jsx)(s.code,{children:"EXCEPTION"}),", treated as an ",(0,r.jsx)(s.code,{children:"LHStatus.EXCEPTION"}),"."]})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"message"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:"string"}),(0,r.jsx)(s.td,{children:"The human-readable message associated with this Failure."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"content"})}),(0,r.jsx)(s.td,{children:"optional"}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#variablevalue",children:"VariableValue"})}),(0,r.jsxs)(s.td,{children:["A user-defined Failure can have a value; for example, in Java an Exception is an Object with arbitrary properties and behaviors.",(0,r.jsx)("br",{}),(0,r.jsx)("br",{}),"Future versions of LH will allow FailureHandler threads to accept that value as an input variable."]})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"was_properly_handled"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:"bool"}),(0,r.jsx)(s.td,{children:"A boolean denoting whether a Failure Handler ThreadRun properly handled the Failure."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"failure_handler_threadrun_id"})}),(0,r.jsx)(s.td,{children:"optional"}),(0,r.jsx)(s.td,{children:"int32"}),(0,r.jsx)(s.td,{children:"If there is a defined failure handler for the NodeRun, then this field is set to the id of the failure handler thread run."})]})]})]}),"\n",(0,r.jsxs)(s.h3,{id:"noderun",children:["Message ",(0,r.jsx)(s.code,{children:"NodeRun"})]}),"\n",(0,r.jsx)(s.p,{children:"A NodeRun is a running instance of a Node in a ThreadRun. Note that a NodeRun\nis a Getable object, meaning it can be retried from the LittleHorse grpc API."}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Field"}),(0,r.jsx)(s.th,{children:"Label"}),(0,r.jsx)(s.th,{children:"Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsxs)(s.tbody,{children:[(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"id"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#noderunid",children:"NodeRunId"})}),(0,r.jsx)(s.td,{children:"The ID of the NodeRun. Note that the NodeRunId contains the WfRunId, the ThreadRun's number, and the position of the NodeRun within that ThreadRun."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"wf_spec_id"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#wfspecid",children:"WfSpecId"})}),(0,r.jsxs)(s.td,{children:["The ID of the WfSpec that this NodeRun is from. This is not ",(0,r.jsx)(s.em,{children:"always"})," the same as the ThreadRun it belongs to because of the upcoming WfSpec Version Migration feature."]})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"failure_handler_ids"})}),(0,r.jsx)(s.td,{children:"repeated"}),(0,r.jsx)(s.td,{children:"int32"}),(0,r.jsx)(s.td,{children:"A list of all ThreadRun's that ran to handle a failure thrown by this NodeRun."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"status"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#lhstatus",children:"LHStatus"})}),(0,r.jsx)(s.td,{children:"The status of this NodeRun."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"arrival_time"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:"google.protobuf.Timestamp"}),(0,r.jsx)(s.td,{children:"The time the ThreadRun arrived at this NodeRun."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"end_time"})}),(0,r.jsx)(s.td,{children:"optional"}),(0,r.jsx)(s.td,{children:"google.protobuf.Timestamp"}),(0,r.jsx)(s.td,{children:"The time the NodeRun was terminated (failed or completed)."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"thread_spec_name"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:"string"}),(0,r.jsx)(s.td,{children:"The name of the ThreadSpec to which this NodeRun belongs."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"node_name"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:"string"}),(0,r.jsx)(s.td,{children:"The name of the Node in the ThreadSpec that this NodeRun belongs to."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"error_message"})}),(0,r.jsx)(s.td,{children:"optional"}),(0,r.jsx)(s.td,{children:"string"}),(0,r.jsx)(s.td,{children:"A human-readable error message intended to help developers diagnose WfSpec problems."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"failures"})}),(0,r.jsx)(s.td,{children:"repeated"}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#failure",children:"Failure"})}),(0,r.jsx)(s.td,{children:"A list of Failures thrown by this NodeRun."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"task"})}),(0,r.jsxs)(s.td,{children:["oneof ",(0,r.jsx)(s.code,{children:"node_type"})]}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#tasknoderun",children:"TaskNodeRun"})}),(0,r.jsx)(s.td,{children:"Denotes a TASK node, which runs a TaskRun."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"external_event"})}),(0,r.jsxs)(s.td,{children:["oneof ",(0,r.jsx)(s.code,{children:"node_type"})]}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#externaleventnoderun",children:"ExternalEventNodeRun"})}),(0,r.jsx)(s.td,{children:"An EXTERNAL_EVENT node blocks until an ExternalEvent arrives."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"entrypoint"})}),(0,r.jsxs)(s.td,{children:["oneof ",(0,r.jsx)(s.code,{children:"node_type"})]}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#entrypointrun",children:"EntrypointRun"})}),(0,r.jsx)(s.td,{children:"An ENTRYPOINT node is the first thing that runs in a ThreadRun."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"exit"})}),(0,r.jsxs)(s.td,{children:["oneof ",(0,r.jsx)(s.code,{children:"node_type"})]}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#exitrun",children:"ExitRun"})}),(0,r.jsx)(s.td,{children:"An EXIT node completes a ThreadRun."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"start_thread"})}),(0,r.jsxs)(s.td,{children:["oneof ",(0,r.jsx)(s.code,{children:"node_type"})]}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#startthreadrun",children:"StartThreadRun"})}),(0,r.jsx)(s.td,{children:"A START_THREAD node starts a child ThreadRun."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"wait_threads"})}),(0,r.jsxs)(s.td,{children:["oneof ",(0,r.jsx)(s.code,{children:"node_type"})]}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#waitforthreadsrun",children:"WaitForThreadsRun"})}),(0,r.jsx)(s.td,{children:"A WAIT_THREADS node waits for one or more child ThreadRun's to complete."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"sleep"})}),(0,r.jsxs)(s.td,{children:["oneof ",(0,r.jsx)(s.code,{children:"node_type"})]}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#sleepnoderun",children:"SleepNodeRun"})}),(0,r.jsx)(s.td,{children:"A SLEEP node makes the ThreadRun block for a certain amount of time."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"user_task"})}),(0,r.jsxs)(s.td,{children:["oneof ",(0,r.jsx)(s.code,{children:"node_type"})]}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#usertasknoderun",children:"UserTaskNodeRun"})}),(0,r.jsx)(s.td,{children:"A USER_TASK node waits until a human executes some work and reports the result."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"start_multiple_threads"})}),(0,r.jsxs)(s.td,{children:["oneof ",(0,r.jsx)(s.code,{children:"node_type"})]}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#startmultiplethreadsrun",children:"StartMultipleThreadsRun"})}),(0,r.jsx)(s.td,{children:"A START_MULTIPLE_THREADS node iterates over a JSON_ARR variable and spawns a child ThreadRun for each element in the list."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"throw_event"})}),(0,r.jsxs)(s.td,{children:["oneof ",(0,r.jsx)(s.code,{children:"node_type"})]}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#throweventnoderun",children:"ThrowEventNodeRun"})}),(0,r.jsx)(s.td,{})]})]})]}),"\n",(0,r.jsxs)(s.h3,{id:"sleepnoderun",children:["Message ",(0,r.jsx)(s.code,{children:"SleepNodeRun"})]}),"\n",(0,r.jsx)(s.p,{children:"The sub-node structure for a SLEEP NodeRun."}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Field"}),(0,r.jsx)(s.th,{children:"Label"}),(0,r.jsx)(s.th,{children:"Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsxs)(s.tbody,{children:[(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"maturation_time"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:"google.protobuf.Timestamp"}),(0,r.jsxs)(s.td,{children:["The time at which the NodeRun is ",(0,r.jsx)(s.em,{children:"SCHEDULED TO"}),' wake up. In rare cases, if the LH Server is back-pressuring clients due to extreme load, the timer event which marks the sleep node as "matured" may come in slightly late.']})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"matured"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:"bool"}),(0,r.jsx)(s.td,{children:"Whether the SleepNodeRun has been matured."})]})]})]}),"\n",(0,r.jsxs)(s.h3,{id:"startmultiplethreadsrun",children:["Message ",(0,r.jsx)(s.code,{children:"StartMultipleThreadsRun"})]}),"\n",(0,r.jsx)(s.p,{children:"The sub-node structure for a START_MULTIPLE_THREADS NodeRun."}),"\n",(0,r.jsx)(s.p,{children:"Note: the output of this NodeRun, which can be used to mutate Variables,\nis a JSON_ARR variable containing the ID's of all the child threadRuns."}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Field"}),(0,r.jsx)(s.th,{children:"Label"}),(0,r.jsx)(s.th,{children:"Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsxs)(s.tbody,{children:[(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"thread_spec_name"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:"string"}),(0,r.jsx)(s.td,{children:"The thread_spec_name of the child thread_runs."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"child_thread_ids"})}),(0,r.jsx)(s.td,{children:"repeated"}),(0,r.jsx)(s.td,{children:"int32"}),(0,r.jsx)(s.td,{children:"The list of all created child ThreadRun's"})]})]})]}),"\n",(0,r.jsxs)(s.h3,{id:"startthreadrun",children:["Message ",(0,r.jsx)(s.code,{children:"StartThreadRun"})]}),"\n",(0,r.jsx)(s.p,{children:"The sub-node structure for a START_THREAD NodeRun."}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Field"}),(0,r.jsx)(s.th,{children:"Label"}),(0,r.jsx)(s.th,{children:"Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsxs)(s.tbody,{children:[(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"child_thread_id"})}),(0,r.jsx)(s.td,{children:"optional"}),(0,r.jsx)(s.td,{children:"int32"}),(0,r.jsx)(s.td,{children:"Contains the thread_run_number of the created Child ThreadRun, if it has been created already."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"thread_spec_name"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:"string"}),(0,r.jsx)(s.td,{children:"The thread_spec_name of the child thread_run."})]})]})]}),"\n",(0,r.jsxs)(s.h3,{id:"tasknoderun",children:["Message ",(0,r.jsx)(s.code,{children:"TaskNodeRun"})]}),"\n",(0,r.jsx)(s.p,{children:"The sub-node structure for a TASK NodeRun."}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Field"}),(0,r.jsx)(s.th,{children:"Label"}),(0,r.jsx)(s.th,{children:"Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsx)(s.tbody,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"task_run_id"})}),(0,r.jsx)(s.td,{children:"optional"}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#taskrunid",children:"TaskRunId"})}),(0,r.jsx)(s.td,{children:"The ID of the TaskRun. Note that if the ThreadRun was halted when it arrived at this TASK Node, then the task_run_id will be unset."})]})})]}),"\n",(0,r.jsxs)(s.h3,{id:"throweventnoderun",children:["Message ",(0,r.jsx)(s.code,{children:"ThrowEventNodeRun"})]}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Field"}),(0,r.jsx)(s.th,{children:"Label"}),(0,r.jsx)(s.th,{children:"Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsx)(s.tbody,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"workflow_event_id"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#workfloweventid",children:"WorkflowEventId"})}),(0,r.jsx)(s.td,{})]})})]}),"\n",(0,r.jsxs)(s.h3,{id:"usertasknoderun",children:["Message ",(0,r.jsx)(s.code,{children:"UserTaskNodeRun"})]}),"\n",(0,r.jsx)(s.p,{children:"The sub-node structure for a USER_TASK NodeRun."}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Field"}),(0,r.jsx)(s.th,{children:"Label"}),(0,r.jsx)(s.th,{children:"Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsx)(s.tbody,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"user_task_run_id"})}),(0,r.jsx)(s.td,{children:"optional"}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#usertaskrunid",children:"UserTaskRunId"})}),(0,r.jsx)(s.td,{children:"The ID of the UserTaskRun. Note that if the ThreadRun was halted when it arrived at this USER_TASK node, then the user_task_run_id will be unset."})]})})]}),"\n",(0,r.jsxs)(s.h3,{id:"waitforthreadsrun",children:["Message ",(0,r.jsx)(s.code,{children:"WaitForThreadsRun"})]}),"\n",(0,r.jsx)(s.p,{children:"The sub-node structure for a WAIT_FOR_THREADS NodeRun."}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Field"}),(0,r.jsx)(s.th,{children:"Label"}),(0,r.jsx)(s.th,{children:"Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsx)(s.tbody,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"threads"})}),(0,r.jsx)(s.td,{children:"repeated"}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#waitforthreadsrunwaitforthread",children:"WaitForThreadsRun.WaitForThread"})}),(0,r.jsx)(s.td,{children:"The threads that are being waited for."})]})})]}),"\n",(0,r.jsxs)(s.h3,{id:"waitforthreadsrunwaitforthread",children:["Message ",(0,r.jsx)(s.code,{children:"WaitForThreadsRun.WaitForThread"})]}),"\n",(0,r.jsx)(s.p,{children:"A 'WaitForThread' structure defines a thread that is being waited for."}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Field"}),(0,r.jsx)(s.th,{children:"Label"}),(0,r.jsx)(s.th,{children:"Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsxs)(s.tbody,{children:[(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"thread_end_time"})}),(0,r.jsx)(s.td,{children:"optional"}),(0,r.jsx)(s.td,{children:"google.protobuf.Timestamp"}),(0,r.jsx)(s.td,{children:"The time at which the ThreadRun ended (successfully or not). Not set if the ThreadRun is still RUNNING, HALTED, or HALTING."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"thread_status"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#lhstatus",children:"LHStatus"})}),(0,r.jsx)(s.td,{children:"The current status of the ThreadRun being waited for."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"thread_run_number"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:"int32"}),(0,r.jsx)(s.td,{children:"The number of the ThreadRun being waited for."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"waiting_status"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#waitforthreadsrunwaitingthreadstatus",children:"WaitForThreadsRun.WaitingThreadStatus"})}),(0,r.jsx)(s.td,{children:'The "waiting status" of this specific thread: whether it\'s still running, already done, handling a failure, or completely failed.'})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"failure_handler_thread_run_id"})}),(0,r.jsx)(s.td,{children:"optional"}),(0,r.jsx)(s.td,{children:"int32"}),(0,r.jsx)(s.td,{children:"If there is a failure on the ThreadRun, and we have a failure handler defined for it, then we will start a failure handler for this threadrun. This field is the id of that threadRun."})]})]})]}),"\n",(0,r.jsxs)(s.h3,{id:"externaleventdefid",children:["Message ",(0,r.jsx)(s.code,{children:"ExternalEventDefId"})]}),"\n",(0,r.jsx)(s.p,{children:"ID for ExternalEventDef"}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Field"}),(0,r.jsx)(s.th,{children:"Label"}),(0,r.jsx)(s.th,{children:"Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsx)(s.tbody,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"name"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:"string"}),(0,r.jsx)(s.td,{children:"ExternalEventDef's are uniquedly identified by their name."})]})})]}),"\n",(0,r.jsxs)(s.h3,{id:"externaleventid",children:["Message ",(0,r.jsx)(s.code,{children:"ExternalEventId"})]}),"\n",(0,r.jsx)(s.p,{children:"ID for an ExternalEvent."}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Field"}),(0,r.jsx)(s.th,{children:"Label"}),(0,r.jsx)(s.th,{children:"Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsxs)(s.tbody,{children:[(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"wf_run_id"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#wfrunid",children:"WfRunId"})}),(0,r.jsx)(s.td,{children:"WfRunId for the ExternalEvent. Note that every ExternalEvent is associated with a WfRun."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"external_event_def_id"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#externaleventdefid",children:"ExternalEventDefId"})}),(0,r.jsx)(s.td,{children:"The ExternalEventDef for this ExternalEvent."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"guid"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:"string"}),(0,r.jsx)(s.td,{children:"A unique guid allowing for distinguishing this ExternalEvent from other events of the same ExternalEventDef and WfRun."})]})]})]}),"\n",(0,r.jsxs)(s.h3,{id:"noderunid",children:["Message ",(0,r.jsx)(s.code,{children:"NodeRunId"})]}),"\n",(0,r.jsx)(s.p,{children:"ID for a NodeRun."}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Field"}),(0,r.jsx)(s.th,{children:"Label"}),(0,r.jsx)(s.th,{children:"Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsxs)(s.tbody,{children:[(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"wf_run_id"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#wfrunid",children:"WfRunId"})}),(0,r.jsx)(s.td,{children:"ID of the WfRun for this NodeRun. Note that every NodeRun is associated with a WfRun."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"thread_run_number"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:"int32"}),(0,r.jsx)(s.td,{children:"ThreadRun of this NodeRun. Note that each NodeRun belongs to a ThreadRun."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"position"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:"int32"}),(0,r.jsx)(s.td,{children:"Position of this NodeRun within its ThreadRun."})]})]})]}),"\n",(0,r.jsxs)(s.h3,{id:"principalid",children:["Message ",(0,r.jsx)(s.code,{children:"PrincipalId"})]}),"\n",(0,r.jsx)(s.p,{children:"ID for a Principal."}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Field"}),(0,r.jsx)(s.th,{children:"Label"}),(0,r.jsx)(s.th,{children:"Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsx)(s.tbody,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"id"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:"string"}),(0,r.jsx)(s.td,{children:"The id of this principal. In OAuth, this is the OAuth Client ID (for machine principals) or the OAuth User Id (for human principals)."})]})})]}),"\n",(0,r.jsxs)(s.h3,{id:"scheduledwfrunid",children:["Message ",(0,r.jsx)(s.code,{children:"ScheduledWfRunId"})]}),"\n",(0,r.jsx)(s.p,{children:"ID for a ScheduledWfRun"}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Field"}),(0,r.jsx)(s.th,{children:"Label"}),(0,r.jsx)(s.th,{children:"Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsx)(s.tbody,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"id"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:"string"}),(0,r.jsx)(s.td,{})]})})]}),"\n",(0,r.jsxs)(s.h3,{id:"taskdefid",children:["Message ",(0,r.jsx)(s.code,{children:"TaskDefId"})]}),"\n",(0,r.jsx)(s.p,{children:"ID for a TaskDef."}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Field"}),(0,r.jsx)(s.th,{children:"Label"}),(0,r.jsx)(s.th,{children:"Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsx)(s.tbody,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"name"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:"string"}),(0,r.jsx)(s.td,{children:"TaskDef's are uniquely identified by their name."})]})})]}),"\n",(0,r.jsxs)(s.h3,{id:"taskdefmetricsid",children:["Message ",(0,r.jsx)(s.code,{children:"TaskDefMetricsId"})]}),"\n",(0,r.jsx)(s.p,{children:"ID for a specific window of TaskDef metrics."}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Field"}),(0,r.jsx)(s.th,{children:"Label"}),(0,r.jsx)(s.th,{children:"Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsxs)(s.tbody,{children:[(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"window_start"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:"google.protobuf.Timestamp"}),(0,r.jsx)(s.td,{children:"The timestamp at which this metrics window starts."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"window_type"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#metricswindowlength",children:"MetricsWindowLength"})}),(0,r.jsx)(s.td,{children:"The length of this window."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"task_def_id"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#taskdefid",children:"TaskDefId"})}),(0,r.jsx)(s.td,{children:"The TaskDefId that this metrics window reports on."})]})]})]}),"\n",(0,r.jsxs)(s.h3,{id:"taskrunid",children:["Message ",(0,r.jsx)(s.code,{children:"TaskRunId"})]}),"\n",(0,r.jsx)(s.p,{children:"ID for a TaskRun."}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Field"}),(0,r.jsx)(s.th,{children:"Label"}),(0,r.jsx)(s.th,{children:"Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsxs)(s.tbody,{children:[(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"wf_run_id"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#wfrunid",children:"WfRunId"})}),(0,r.jsx)(s.td,{children:"WfRunId for this TaskRun. Note that every TaskRun is associated with a WfRun."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"task_guid"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:"string"}),(0,r.jsx)(s.td,{children:"Unique identifier for this TaskRun. Unique among the WfRun."})]})]})]}),"\n",(0,r.jsxs)(s.h3,{id:"taskworkergroupid",children:["Message ",(0,r.jsx)(s.code,{children:"TaskWorkerGroupId"})]}),"\n",(0,r.jsx)(s.p,{children:"ID for a TaskWorkerGroup."}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Field"}),(0,r.jsx)(s.th,{children:"Label"}),(0,r.jsx)(s.th,{children:"Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsx)(s.tbody,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"task_def_id"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#taskdefid",children:"TaskDefId"})}),(0,r.jsx)(s.td,{children:"TaskWorkerGroups are uniquely identified by their TaskDefId."})]})})]}),"\n",(0,r.jsxs)(s.h3,{id:"tenantid",children:["Message ",(0,r.jsx)(s.code,{children:"TenantId"})]}),"\n",(0,r.jsx)(s.p,{children:"ID for a Tenant."}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Field"}),(0,r.jsx)(s.th,{children:"Label"}),(0,r.jsx)(s.th,{children:"Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsx)(s.tbody,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"id"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:"string"}),(0,r.jsx)(s.td,{children:"The Tenant ID."})]})})]}),"\n",(0,r.jsxs)(s.h3,{id:"usertaskdefid",children:["Message ",(0,r.jsx)(s.code,{children:"UserTaskDefId"})]}),"\n",(0,r.jsx)(s.p,{children:"ID for a UserTaskDef"}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Field"}),(0,r.jsx)(s.th,{children:"Label"}),(0,r.jsx)(s.th,{children:"Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsxs)(s.tbody,{children:[(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"name"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:"string"}),(0,r.jsx)(s.td,{children:"The name of a UserTaskDef"})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"version"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:"int32"}),(0,r.jsx)(s.td,{children:"Note that UserTaskDef's use simple versioning."})]})]})]}),"\n",(0,r.jsxs)(s.h3,{id:"usertaskrunid",children:["Message ",(0,r.jsx)(s.code,{children:"UserTaskRunId"})]}),"\n",(0,r.jsx)(s.p,{children:"ID for a UserTaskRun"}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Field"}),(0,r.jsx)(s.th,{children:"Label"}),(0,r.jsx)(s.th,{children:"Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsxs)(s.tbody,{children:[(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"wf_run_id"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#wfrunid",children:"WfRunId"})}),(0,r.jsx)(s.td,{children:"WfRunId for this UserTaskRun. Note that every UserTaskRun is associated with a WfRun."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"user_task_guid"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:"string"}),(0,r.jsx)(s.td,{children:"Unique identifier for this UserTaskRun."})]})]})]}),"\n",(0,r.jsxs)(s.h3,{id:"variableid",children:["Message ",(0,r.jsx)(s.code,{children:"VariableId"})]}),"\n",(0,r.jsx)(s.p,{children:"Id for a Variable."}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Field"}),(0,r.jsx)(s.th,{children:"Label"}),(0,r.jsx)(s.th,{children:"Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsxs)(s.tbody,{children:[(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"wf_run_id"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#wfrunid",children:"WfRunId"})}),(0,r.jsx)(s.td,{children:"WfRunId for the variable. Note that every Variable is associated with a WfRun."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"thread_run_number"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:"int32"}),(0,r.jsx)(s.td,{children:"Each Variable is owned by a specific ThreadRun inside the WfRun it belongs to. This is that ThreadRun's number."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"name"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:"string"}),(0,r.jsx)(s.td,{children:"The name of the variable."})]})]})]}),"\n",(0,r.jsxs)(s.h3,{id:"wfrunid",children:["Message ",(0,r.jsx)(s.code,{children:"WfRunId"})]}),"\n",(0,r.jsx)(s.p,{children:"ID for a WfRun"}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Field"}),(0,r.jsx)(s.th,{children:"Label"}),(0,r.jsx)(s.th,{children:"Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsxs)(s.tbody,{children:[(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"id"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:"string"}),(0,r.jsx)(s.td,{children:"The ID for this WfRun instance."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"parent_wf_run_id"})}),(0,r.jsx)(s.td,{children:"optional"}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#wfrunid",children:"WfRunId"})}),(0,r.jsx)(s.td,{children:"A WfRun may have a parent WfRun. If so, this field is set to the parent's ID."})]})]})]}),"\n",(0,r.jsxs)(s.h3,{id:"wfspecid",children:["Message ",(0,r.jsx)(s.code,{children:"WfSpecId"})]}),"\n",(0,r.jsx)(s.p,{children:"The ID of a WfSpec."}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Field"}),(0,r.jsx)(s.th,{children:"Label"}),(0,r.jsx)(s.th,{children:"Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsxs)(s.tbody,{children:[(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"name"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:"string"}),(0,r.jsx)(s.td,{children:"Name of the WfSpec."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"major_version"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:"int32"}),(0,r.jsxs)(s.td,{children:["Major Version of a WfSpec.",(0,r.jsx)("br",{}),(0,r.jsx)("br",{}),"Note that WfSpec's are versioned. Creating a new WfSpec with the same name and no breaking changes to the public Variables API results in a new WfSpec being created with the same MajorVersion and a new revision. Creating a WfSpec with a breaking change to the public Variables API results in a new WfSpec being created with the same name, an incremented major_version, and revision = 0."]})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"revision"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:"int32"}),(0,r.jsxs)(s.td,{children:["Revision of a WfSpec.",(0,r.jsx)("br",{}),(0,r.jsx)("br",{}),"Note that WfSpec's are versioned. Creating a new WfSpec with the same name and no breaking changes to the public Variables API results in a new WfSpec being created with the same MajorVersion and a new revision. Creating a WfSpec with a breaking change to the public Variables API results in a new WfSpec being created with the same name, an incremented major_version, and revision = 0."]})]})]})]}),"\n",(0,r.jsxs)(s.h3,{id:"wfspecmetricsid",children:["Message ",(0,r.jsx)(s.code,{children:"WfSpecMetricsId"})]}),"\n",(0,r.jsx)(s.p,{children:"ID for a specific window of WfSpec metrics."}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Field"}),(0,r.jsx)(s.th,{children:"Label"}),(0,r.jsx)(s.th,{children:"Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsxs)(s.tbody,{children:[(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"window_start"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:"google.protobuf.Timestamp"}),(0,r.jsx)(s.td,{children:"The timestamp at which this metrics window starts."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"window_type"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#metricswindowlength",children:"MetricsWindowLength"})}),(0,r.jsx)(s.td,{children:"The length of this window."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"wf_spec_id"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#wfspecid",children:"WfSpecId"})}),(0,r.jsx)(s.td,{children:"The WfSpecId that this metrics window reports on."})]})]})]}),"\n",(0,r.jsxs)(s.h3,{id:"workfloweventdefid",children:["Message ",(0,r.jsx)(s.code,{children:"WorkflowEventDefId"})]}),"\n",(0,r.jsx)(s.p,{children:"ID for a WorkflowEventDef."}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Field"}),(0,r.jsx)(s.th,{children:"Label"}),(0,r.jsx)(s.th,{children:"Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsx)(s.tbody,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"name"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:"string"}),(0,r.jsx)(s.td,{children:"The name of the WorkflowEventDef"})]})})]}),"\n",(0,r.jsxs)(s.h3,{id:"workfloweventid",children:["Message ",(0,r.jsx)(s.code,{children:"WorkflowEventId"})]}),"\n",(0,r.jsx)(s.p,{children:"An ID for a WorkflowEvent."}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Field"}),(0,r.jsx)(s.th,{children:"Label"}),(0,r.jsx)(s.th,{children:"Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsxs)(s.tbody,{children:[(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"wf_run_id"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#wfrunid",children:"WfRunId"})}),(0,r.jsx)(s.td,{children:"The Id of the WfRun that threw the event."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"workflow_event_def_id"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#workfloweventdefid",children:"WorkflowEventDefId"})}),(0,r.jsx)(s.td,{children:"The ID of the WorkflowEventDef that this WorkflowEvent is a member of."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"number"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:"int32"}),(0,r.jsx)(s.td,{children:"A sequence number that makes the WorkflowEventId unique among all WorkflowEvent's of the same type thrown by the WfRun. This field starts at zero and is incremented every time a WorkflowEvent of the same type is thrown by the same WfRun."})]})]})]}),"\n",(0,r.jsxs)(s.h3,{id:"scheduledwfrun",children:["Message ",(0,r.jsx)(s.code,{children:"ScheduledWfRun"})]}),"\n",(0,r.jsxs)(s.p,{children:["A ",(0,r.jsx)(s.code,{children:"ScheduledWfRun"})," is an object in the LittleHorse API that triggers a ",(0,r.jsx)(s.code,{children:"WfRun"})," to be started\non a cron schedule."]}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Field"}),(0,r.jsx)(s.th,{children:"Label"}),(0,r.jsx)(s.th,{children:"Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsxs)(s.tbody,{children:[(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"id"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#scheduledwfrunid",children:"ScheduledWfRunId"})}),(0,r.jsx)(s.td,{children:"Unique id for this ScheduledWfRun."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"wf_spec_id"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#wfspecid",children:"WfSpecId"})}),(0,r.jsx)(s.td,{children:"WfSpec used to run a workflow on a schedule."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"variables"})}),(0,r.jsx)(s.td,{children:"map"}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#scheduledwfrunvariablesentry",children:"ScheduledWfRun.VariablesEntry"})}),(0,r.jsx)(s.td,{children:"A map from Variable Name to Values for those variables. The provided variables are passed as input to the Entrypoint ThreadRun."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"parent_wf_run_id"})}),(0,r.jsx)(s.td,{children:"optional"}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#wfrunid",children:"WfRunId"})}),(0,r.jsx)(s.td,{children:"Parent WfRunId associated with all the generated WfRuns"})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"cron_expression"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:"string"}),(0,r.jsx)(s.td,{children:"UNIX expression used to specify the schedule for executing WfRuns"})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"created_at"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:"google.protobuf.Timestamp"}),(0,r.jsx)(s.td,{children:"Creation time for this ScheduledWfRun"})]})]})]}),"\n",(0,r.jsxs)(s.h3,{id:"scheduledwfrunvariablesentry",children:["Message ",(0,r.jsx)(s.code,{children:"ScheduledWfRun.VariablesEntry"})]}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Field"}),(0,r.jsx)(s.th,{children:"Label"}),(0,r.jsx)(s.th,{children:"Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsxs)(s.tbody,{children:[(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"key"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:"string"}),(0,r.jsx)(s.td,{})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"value"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#variablevalue",children:"VariableValue"})}),(0,r.jsx)(s.td,{})]})]})]}),"\n",(0,r.jsxs)(s.h3,{id:"awaitworkfloweventrequest",children:["Message ",(0,r.jsx)(s.code,{children:"AwaitWorkflowEventRequest"})]}),"\n",(0,r.jsx)(s.p,{children:"Request to await until a WorkflowEvent of a certain WorkflowEventDef on a certain WfRun\nis thrown. Relies upon native GRPC deadlines to configure timeouts."}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Field"}),(0,r.jsx)(s.th,{children:"Label"}),(0,r.jsx)(s.th,{children:"Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsxs)(s.tbody,{children:[(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"wf_run_id"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#wfrunid",children:"WfRunId"})}),(0,r.jsx)(s.td,{children:"The ID of the WfRun which must throw the WorkflowEvent."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"event_def_ids"})}),(0,r.jsx)(s.td,{children:"repeated"}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#workfloweventdefid",children:"WorkflowEventDefId"})}),(0,r.jsx)(s.td,{children:"The IDs of the WorkflowEventDef that must be thrown. The request will return the first matching WorkflowEvent is thrown. If event_def_ids is empty, then the request will return the first WorkflowEvent thrown by the WfRun."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"workflow_events_to_ignore"})}),(0,r.jsx)(s.td,{children:"repeated"}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#workfloweventid",children:"WorkflowEventId"})}),(0,r.jsx)(s.td,{children:"Since a single WfRun may throw multiple WorkflowEvent's with the same WorkflowEventDefId, it is necessary to provide a client the ability to \"ignore\" WorkflowEvent's that have already been 'awaited'. Any WorkflowEvent specified by this field is ignored by the rpc."})]})]})]}),"\n",(0,r.jsxs)(s.h3,{id:"deleteexternaleventdefrequest",children:["Message ",(0,r.jsx)(s.code,{children:"DeleteExternalEventDefRequest"})]}),"\n",(0,r.jsx)(s.p,{children:"Deletes an ExternalEventDef"}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Field"}),(0,r.jsx)(s.th,{children:"Label"}),(0,r.jsx)(s.th,{children:"Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsx)(s.tbody,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"id"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#externaleventdefid",children:"ExternalEventDefId"})}),(0,r.jsx)(s.td,{children:"The ID of the ExternalEventDef to delete."})]})})]}),"\n",(0,r.jsxs)(s.h3,{id:"deleteexternaleventrequest",children:["Message ",(0,r.jsx)(s.code,{children:"DeleteExternalEventRequest"})]}),"\n",(0,r.jsx)(s.p,{children:"Deletes an ExternalEvent."}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Field"}),(0,r.jsx)(s.th,{children:"Label"}),(0,r.jsx)(s.th,{children:"Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsx)(s.tbody,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"id"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#externaleventid",children:"ExternalEventId"})}),(0,r.jsx)(s.td,{children:"The ID of the ExternalEvent to delete."})]})})]}),"\n",(0,r.jsxs)(s.h3,{id:"deletescheduledwfrunrequest",children:["Message ",(0,r.jsx)(s.code,{children:"DeleteScheduledWfRunRequest"})]}),"\n",(0,r.jsx)(s.p,{children:"Delete an existing ScheduledWfRun, returns INVALID_ARGUMENT if object does not exist"}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Field"}),(0,r.jsx)(s.th,{children:"Label"}),(0,r.jsx)(s.th,{children:"Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsx)(s.tbody,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"id"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#scheduledwfrunid",children:"ScheduledWfRunId"})}),(0,r.jsxs)(s.td,{children:["Id of the ",(0,r.jsx)(s.code,{children:"ScheduledWfRun"})," to be deleted"]})]})})]}),"\n",(0,r.jsxs)(s.h3,{id:"deletetaskdefrequest",children:["Message ",(0,r.jsx)(s.code,{children:"DeleteTaskDefRequest"})]}),"\n",(0,r.jsx)(s.p,{children:"Deletes a TaskDef."}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Field"}),(0,r.jsx)(s.th,{children:"Label"}),(0,r.jsx)(s.th,{children:"Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsx)(s.tbody,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"id"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#taskdefid",children:"TaskDefId"})}),(0,r.jsx)(s.td,{children:"The ID of the TaskDef to delete."})]})})]}),"\n",(0,r.jsxs)(s.h3,{id:"deleteusertaskdefrequest",children:["Message ",(0,r.jsx)(s.code,{children:"DeleteUserTaskDefRequest"})]}),"\n",(0,r.jsx)(s.p,{children:"Deletes a UserTaskDef."}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Field"}),(0,r.jsx)(s.th,{children:"Label"}),(0,r.jsx)(s.th,{children:"Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsx)(s.tbody,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"id"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#usertaskdefid",children:"UserTaskDefId"})}),(0,r.jsx)(s.td,{children:"The ID of the UserTaskDef to delete."})]})})]}),"\n",(0,r.jsxs)(s.h3,{id:"deletewfrunrequest",children:["Message ",(0,r.jsx)(s.code,{children:"DeleteWfRunRequest"})]}),"\n",(0,r.jsx)(s.p,{children:"Deletes a WfRun."}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Field"}),(0,r.jsx)(s.th,{children:"Label"}),(0,r.jsx)(s.th,{children:"Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsx)(s.tbody,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"id"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#wfrunid",children:"WfRunId"})}),(0,r.jsx)(s.td,{children:"The ID of the WfRun to delete."})]})})]}),"\n",(0,r.jsxs)(s.h3,{id:"deletewfspecrequest",children:["Message ",(0,r.jsx)(s.code,{children:"DeleteWfSpecRequest"})]}),"\n",(0,r.jsx)(s.p,{children:"Deletes a WfSpec"}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Field"}),(0,r.jsx)(s.th,{children:"Label"}),(0,r.jsx)(s.th,{children:"Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsx)(s.tbody,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"id"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#wfspecid",children:"WfSpecId"})}),(0,r.jsx)(s.td,{children:"The ID of the WfSpec to delete"})]})})]}),"\n",(0,r.jsxs)(s.h3,{id:"externaleventdefidlist",children:["Message ",(0,r.jsx)(s.code,{children:"ExternalEventDefIdList"})]}),"\n",(0,r.jsx)(s.p,{children:"List of ExternalEventDef Id's."}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Field"}),(0,r.jsx)(s.th,{children:"Label"}),(0,r.jsx)(s.th,{children:"Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsxs)(s.tbody,{children:[(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"results"})}),(0,r.jsx)(s.td,{children:"repeated"}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#externaleventdefid",children:"ExternalEventDefId"})}),(0,r.jsx)(s.td,{children:"The resulting object id's."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"bookmark"})}),(0,r.jsx)(s.td,{children:"optional"}),(0,r.jsx)(s.td,{children:"bytes"}),(0,r.jsx)(s.td,{children:"The bookmark can be used for cursor-based pagination. If it is null, the server has returned all results. If it is set, you can pass it into your next request to resume searching where your previous request left off."})]})]})]}),"\n",(0,r.jsxs)(s.h3,{id:"externaleventidlist",children:["Message ",(0,r.jsx)(s.code,{children:"ExternalEventIdList"})]}),"\n",(0,r.jsx)(s.p,{children:"List of ExternalEvent Id's"}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Field"}),(0,r.jsx)(s.th,{children:"Label"}),(0,r.jsx)(s.th,{children:"Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsxs)(s.tbody,{children:[(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"results"})}),(0,r.jsx)(s.td,{children:"repeated"}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#externaleventid",children:"ExternalEventId"})}),(0,r.jsx)(s.td,{children:"The resulting object id's."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"bookmark"})}),(0,r.jsx)(s.td,{children:"optional"}),(0,r.jsx)(s.td,{children:"bytes"}),(0,r.jsx)(s.td,{children:"The bookmark can be used for cursor-based pagination. If it is null, the server has returned all results. If it is set, you can pass it into your next request to resume searching where your previous request left off."})]})]})]}),"\n",(0,r.jsxs)(s.h3,{id:"externaleventlist",children:["Message ",(0,r.jsx)(s.code,{children:"ExternalEventList"})]}),"\n",(0,r.jsx)(s.p,{children:"A list of ExternalEvents."}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Field"}),(0,r.jsx)(s.th,{children:"Label"}),(0,r.jsx)(s.th,{children:"Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsx)(s.tbody,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"results"})}),(0,r.jsx)(s.td,{children:"repeated"}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#externalevent",children:"ExternalEvent"})}),(0,r.jsx)(s.td,{children:"A list of ExternalEvent objects."})]})})]}),"\n",(0,r.jsxs)(s.h3,{id:"getlatestusertaskdefrequest",children:["Message ",(0,r.jsx)(s.code,{children:"GetLatestUserTaskDefRequest"})]}),"\n",(0,r.jsx)(s.p,{children:"Returns the UserTaskDef with a given name and the highest version number."}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Field"}),(0,r.jsx)(s.th,{children:"Label"}),(0,r.jsx)(s.th,{children:"Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsx)(s.tbody,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"name"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:"string"}),(0,r.jsx)(s.td,{children:"The name of the UserTaskDef to search for."})]})})]}),"\n",(0,r.jsxs)(s.h3,{id:"getlatestwfspecrequest",children:["Message ",(0,r.jsx)(s.code,{children:"GetLatestWfSpecRequest"})]}),"\n",(0,r.jsx)(s.p,{children:"Get the latest WfSpec with a given name and optionally majorVersion"}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Field"}),(0,r.jsx)(s.th,{children:"Label"}),(0,r.jsx)(s.th,{children:"Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsxs)(s.tbody,{children:[(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"name"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:"string"}),(0,r.jsx)(s.td,{children:"The name of the WfSpec to get. This is required."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"major_version"})}),(0,r.jsx)(s.td,{children:"optional"}),(0,r.jsx)(s.td,{children:"int32"}),(0,r.jsx)(s.td,{children:"Optionally get only WfSpec's that have the same major version. This can be useful if you want to guarantee that there have been no breaking changes to the API of the WfSpec, for example, to ensure that there have been no changes to searchable variables or required input variables."})]})]})]}),"\n",(0,r.jsxs)(s.h3,{id:"lhhostinfo",children:["Message ",(0,r.jsx)(s.code,{children:"LHHostInfo"})]}),"\n",(0,r.jsx)(s.p,{children:"Information about a specific LH Server to contact."}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Field"}),(0,r.jsx)(s.th,{children:"Label"}),(0,r.jsx)(s.th,{children:"Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsxs)(s.tbody,{children:[(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"host"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:"string"}),(0,r.jsx)(s.td,{children:"The host on the server"})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"port"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:"int32"}),(0,r.jsx)(s.td,{children:"The port for the specified listener."})]})]})]}),"\n",(0,r.jsxs)(s.h3,{id:"listexternaleventsrequest",children:["Message ",(0,r.jsx)(s.code,{children:"ListExternalEventsRequest"})]}),"\n",(0,r.jsx)(s.p,{children:"List all ExternalEvents for a specific WfRunId. Note that List Requests return actual\nExternalEvent objects, not ExternalEventId's."}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Field"}),(0,r.jsx)(s.th,{children:"Label"}),(0,r.jsx)(s.th,{children:"Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsx)(s.tbody,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"wf_run_id"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#wfrunid",children:"WfRunId"})}),(0,r.jsx)(s.td,{children:"The WfRunId for whom we list ExternalEvent's."})]})})]}),"\n",(0,r.jsxs)(s.h3,{id:"listnoderunsrequest",children:["Message ",(0,r.jsx)(s.code,{children:"ListNodeRunsRequest"})]}),"\n",(0,r.jsx)(s.p,{children:"List all NodeRun's for a given WfRun. Note that List requests return actual NodeRun Objects,\nnot NodeRunId's."}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Field"}),(0,r.jsx)(s.th,{children:"Label"}),(0,r.jsx)(s.th,{children:"Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsxs)(s.tbody,{children:[(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"wf_run_id"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#wfrunid",children:"WfRunId"})}),(0,r.jsx)(s.td,{children:"The WfRun for whom we list NodeRun's."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"thread_run_number"})}),(0,r.jsx)(s.td,{children:"optional"}),(0,r.jsx)(s.td,{children:"int32"}),(0,r.jsx)(s.td,{children:"Optionally specify the thread run number to filter NodeRun's by."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"bookmark"})}),(0,r.jsx)(s.td,{children:"optional"}),(0,r.jsx)(s.td,{children:"bytes"}),(0,r.jsx)(s.td,{children:"Bookmark for cursor-based pagination; pass if applicable."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"limit"})}),(0,r.jsx)(s.td,{children:"optional"}),(0,r.jsx)(s.td,{children:"int32"}),(0,r.jsx)(s.td,{children:"Maximum results to return in one request."})]})]})]}),"\n",(0,r.jsxs)(s.h3,{id:"listtaskmetricsrequest",children:["Message ",(0,r.jsx)(s.code,{children:"ListTaskMetricsRequest"})]}),"\n",(0,r.jsx)(s.p,{children:"Query to retrieve TaskDef Metrics over a period of time."}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Field"}),(0,r.jsx)(s.th,{children:"Label"}),(0,r.jsx)(s.th,{children:"Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsxs)(s.tbody,{children:[(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"task_def_id"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#taskdefid",children:"TaskDefId"})}),(0,r.jsx)(s.td,{children:"TaskDef id for whichwe retrieve metrics."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"last_window_start"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:"google.protobuf.Timestamp"}),(0,r.jsxs)(s.td,{children:["This parameter is a timestamp that is used to determine the ",(0,r.jsx)(s.em,{children:"last"})," window returned. The server will then return ",(0,r.jsx)(s.code,{children:"num_windows"})," worth of data from before this timestamp."]})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"window_length"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#metricswindowlength",children:"MetricsWindowLength"})}),(0,r.jsx)(s.td,{children:"Window size"})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"num_windows"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:"int32"}),(0,r.jsx)(s.td,{children:"Number of windows to retrieve."})]})]})]}),"\n",(0,r.jsxs)(s.h3,{id:"listtaskmetricsresponse",children:["Message ",(0,r.jsx)(s.code,{children:"ListTaskMetricsResponse"})]}),"\n",(0,r.jsx)(s.p,{children:"A list of TaskDef Metrics WIndows"}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Field"}),(0,r.jsx)(s.th,{children:"Label"}),(0,r.jsx)(s.th,{children:"Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsx)(s.tbody,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"results"})}),(0,r.jsx)(s.td,{children:"repeated"}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#taskdefmetrics",children:"TaskDefMetrics"})}),(0,r.jsx)(s.td,{children:"List of TaskDef Metrics Windows"})]})})]}),"\n",(0,r.jsxs)(s.h3,{id:"listtaskrunsrequest",children:["Message ",(0,r.jsx)(s.code,{children:"ListTaskRunsRequest"})]}),"\n",(0,r.jsx)(s.p,{children:"List TaskRun's for a specific WfRun"}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Field"}),(0,r.jsx)(s.th,{children:"Label"}),(0,r.jsx)(s.th,{children:"Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsx)(s.tbody,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"wf_run_id"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#wfrunid",children:"WfRunId"})}),(0,r.jsx)(s.td,{children:"The WfRun for which to list TaskRun's"})]})})]}),"\n",(0,r.jsxs)(s.h3,{id:"listusertaskrunrequest",children:["Message ",(0,r.jsx)(s.code,{children:"ListUserTaskRunRequest"})]}),"\n",(0,r.jsx)(s.p,{children:"List UserTaskRun's for a specific WfRun"}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Field"}),(0,r.jsx)(s.th,{children:"Label"}),(0,r.jsx)(s.th,{children:"Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsx)(s.tbody,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"wf_run_id"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#wfrunid",children:"WfRunId"})}),(0,r.jsx)(s.td,{children:"The WfRun for which to list UserTaskRuns"})]})})]}),"\n",(0,r.jsxs)(s.h3,{id:"listvariablesrequest",children:["Message ",(0,r.jsx)(s.code,{children:"ListVariablesRequest"})]}),"\n",(0,r.jsx)(s.p,{children:"List all Variables for a specific WfRun. Note that List requests return actual Variable Objects,\nnot VariableId's."}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Field"}),(0,r.jsx)(s.th,{children:"Label"}),(0,r.jsx)(s.th,{children:"Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsx)(s.tbody,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"wf_run_id"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#wfrunid",children:"WfRunId"})}),(0,r.jsx)(s.td,{children:"The WfRun for whom we will list Variables."})]})})]}),"\n",(0,r.jsxs)(s.h3,{id:"listwfmetricsrequest",children:["Message ",(0,r.jsx)(s.code,{children:"ListWfMetricsRequest"})]}),"\n",(0,r.jsx)(s.p,{children:"Query to retrieve WfSpec Metrics over a period of time."}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Field"}),(0,r.jsx)(s.th,{children:"Label"}),(0,r.jsx)(s.th,{children:"Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsxs)(s.tbody,{children:[(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"wf_spec_id"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#wfspecid",children:"WfSpecId"})}),(0,r.jsx)(s.td,{children:"WfSpecId of metrics to get."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"last_window_start"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:"google.protobuf.Timestamp"}),(0,r.jsxs)(s.td,{children:["This parameter is a timestamp that is used to determine the ",(0,r.jsx)(s.em,{children:"last"})," window returned. The server will then return ",(0,r.jsx)(s.code,{children:"num_windows"})," worth of data from before this timestamp."]})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"window_length"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#metricswindowlength",children:"MetricsWindowLength"})}),(0,r.jsx)(s.td,{children:"The window size"})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"num_windows"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:"int32"}),(0,r.jsx)(s.td,{children:"Number of windows to retrieve"})]})]})]}),"\n",(0,r.jsxs)(s.h3,{id:"listwfmetricsresponse",children:["Message ",(0,r.jsx)(s.code,{children:"ListWfMetricsResponse"})]}),"\n",(0,r.jsx)(s.p,{children:"A list of WfSpec Metrics Windows"}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Field"}),(0,r.jsx)(s.th,{children:"Label"}),(0,r.jsx)(s.th,{children:"Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsx)(s.tbody,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"results"})}),(0,r.jsx)(s.td,{children:"repeated"}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#wfspecmetrics",children:"WfSpecMetrics"})}),(0,r.jsx)(s.td,{children:"List of WfSpec Metrics Windows"})]})})]}),"\n",(0,r.jsxs)(s.h3,{id:"migratewfspecrequest",children:["Message ",(0,r.jsx)(s.code,{children:"MigrateWfSpecRequest"})]}),"\n",(0,r.jsx)(s.p,{children:"EXPERIMENTAL: migrate live WfRun's from one version of a WfSpec to another."}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Field"}),(0,r.jsx)(s.th,{children:"Label"}),(0,r.jsx)(s.th,{children:"Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsxs)(s.tbody,{children:[(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"old_wf_spec"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#wfspecid",children:"WfSpecId"})}),(0,r.jsx)(s.td,{})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"migration"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#wfspecversionmigration",children:"WfSpecVersionMigration"})}),(0,r.jsx)(s.td,{})]})]})]}),"\n",(0,r.jsxs)(s.h3,{id:"noderunidlist",children:["Message ",(0,r.jsx)(s.code,{children:"NodeRunIdList"})]}),"\n",(0,r.jsx)(s.p,{children:"List of NodeRun Id's."}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Field"}),(0,r.jsx)(s.th,{children:"Label"}),(0,r.jsx)(s.th,{children:"Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsxs)(s.tbody,{children:[(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"results"})}),(0,r.jsx)(s.td,{children:"repeated"}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#noderunid",children:"NodeRunId"})}),(0,r.jsx)(s.td,{children:"The resulting object id's."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"bookmark"})}),(0,r.jsx)(s.td,{children:"optional"}),(0,r.jsx)(s.td,{children:"bytes"}),(0,r.jsx)(s.td,{children:"The bookmark can be used for cursor-based pagination. If it is null, the server has returned all results. If it is set, you can pass it into your next request to resume searching where your previous request left off."})]})]})]}),"\n",(0,r.jsxs)(s.h3,{id:"noderunlist",children:["Message ",(0,r.jsx)(s.code,{children:"NodeRunList"})]}),"\n",(0,r.jsx)(s.p,{children:"A list of NodeRun Objects."}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Field"}),(0,r.jsx)(s.th,{children:"Label"}),(0,r.jsx)(s.th,{children:"Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsxs)(s.tbody,{children:[(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"results"})}),(0,r.jsx)(s.td,{children:"repeated"}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#noderun",children:"NodeRun"})}),(0,r.jsx)(s.td,{children:"A list of NodeRun Objects."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"bookmark"})}),(0,r.jsx)(s.td,{children:"optional"}),(0,r.jsx)(s.td,{children:"bytes"}),(0,r.jsx)(s.td,{children:"The bookmark can be used for cursor-based pagination. If it is null, the server has returned all results. If it is set, you can pass it into your next request to resume searching where your previous request left off."})]})]})]}),"\n",(0,r.jsxs)(s.h3,{id:"polltaskrequest",children:["Message ",(0,r.jsx)(s.code,{children:"PollTaskRequest"})]}),"\n",(0,r.jsx)(s.p,{children:"Request sent by the Task Worker SDK to tell the Server that the Task Worker is ready\nto execute a TaskRun. Generally used only by the Task Worker SDK."}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Field"}),(0,r.jsx)(s.th,{children:"Label"}),(0,r.jsx)(s.th,{children:"Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsxs)(s.tbody,{children:[(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"task_def_id"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#taskdefid",children:"TaskDefId"})}),(0,r.jsx)(s.td,{children:"Is the TaskDefId that the Task Worker wants to execute."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"client_id"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:"string"}),(0,r.jsx)(s.td,{children:"Is the ID of the Task Worker."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"task_worker_version"})}),(0,r.jsx)(s.td,{children:"optional"}),(0,r.jsx)(s.td,{children:"string"}),(0,r.jsx)(s.td,{children:"Optionally specifies the version of the Task Worker, so that it can be recorded for debugging purposes on the TaskRun itself."})]})]})]}),"\n",(0,r.jsxs)(s.h3,{id:"polltaskresponse",children:["Message ",(0,r.jsx)(s.code,{children:"PollTaskResponse"})]}),"\n",(0,r.jsx)(s.p,{children:"Response from the server for PollTaskRequest."}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Field"}),(0,r.jsx)(s.th,{children:"Label"}),(0,r.jsx)(s.th,{children:"Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsx)(s.tbody,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"result"})}),(0,r.jsx)(s.td,{children:"optional"}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#scheduledtask",children:"ScheduledTask"})}),(0,r.jsx)(s.td,{children:"If possible, a ScheduledTask is returned."})]})})]}),"\n",(0,r.jsxs)(s.h3,{id:"principalidlist",children:["Message ",(0,r.jsx)(s.code,{children:"PrincipalIdList"})]}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Field"}),(0,r.jsx)(s.th,{children:"Label"}),(0,r.jsx)(s.th,{children:"Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsxs)(s.tbody,{children:[(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"results"})}),(0,r.jsx)(s.td,{children:"repeated"}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#principalid",children:"PrincipalId"})}),(0,r.jsx)(s.td,{children:"The resulting object id's."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"bookmark"})}),(0,r.jsx)(s.td,{children:"optional"}),(0,r.jsx)(s.td,{children:"bytes"}),(0,r.jsx)(s.td,{children:"Bookmark for cursor-based pagination; pass if applicable."})]})]})]}),"\n",(0,r.jsxs)(s.h3,{id:"putexternaleventdefrequest",children:["Message ",(0,r.jsx)(s.code,{children:"PutExternalEventDefRequest"})]}),"\n",(0,r.jsx)(s.p,{children:"Field to create an ExternalEventDef."}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Field"}),(0,r.jsx)(s.th,{children:"Label"}),(0,r.jsx)(s.th,{children:"Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsxs)(s.tbody,{children:[(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"name"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:"string"}),(0,r.jsx)(s.td,{children:"The name of the resulting ExternalEventDef."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"retention_policy"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#externaleventretentionpolicy",children:"ExternalEventRetentionPolicy"})}),(0,r.jsxs)(s.td,{children:["Policy to determine how long an ExternalEvent is retained after creation if it is not yet claimed by a WfRun. Note that once a WfRun has been matched with the ExternalEvent, the ExternalEvent is deleted if/when that WfRun is deleted. If not set, then ExternalEvent's are not deleted if they are not matched with a WfRun.",(0,r.jsx)("br",{}),(0,r.jsx)("br",{}),"A future version of LittleHorse will allow changing the retention_policy, which will trigger a cleanup of old ",(0,r.jsx)(s.code,{children:"ExternalEvent"}),"s."]})]})]})]}),"\n",(0,r.jsxs)(s.h3,{id:"putexternaleventrequest",children:["Message ",(0,r.jsx)(s.code,{children:"PutExternalEventRequest"})]}),"\n",(0,r.jsx)(s.p,{children:"Request used to create an ExternalEvent."}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Field"}),(0,r.jsx)(s.th,{children:"Label"}),(0,r.jsx)(s.th,{children:"Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsxs)(s.tbody,{children:[(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"wf_run_id"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#wfrunid",children:"WfRunId"})}),(0,r.jsx)(s.td,{children:"The ID of the WfRun that this Event is sent to."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"external_event_def_id"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#externaleventdefid",children:"ExternalEventDefId"})}),(0,r.jsx)(s.td,{children:"The ID of the ExternalEventDef that this event implements."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"guid"})}),(0,r.jsx)(s.td,{children:"optional"}),(0,r.jsx)(s.td,{children:"string"}),(0,r.jsx)(s.td,{children:"Note that an ExternalEventDefId is a three-part ID: 1. WfRunId 2. ExternalEventDef Name 3. A guid The guid from part 3) can be optionally provided to the PutExternalEventRequest in order to make it idempotent. It is a best practice to do so."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"content"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#variablevalue",children:"VariableValue"})}),(0,r.jsx)(s.td,{children:"The content of this event."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"thread_run_number"})}),(0,r.jsx)(s.td,{children:"optional"}),(0,r.jsx)(s.td,{children:"int32"}),(0,r.jsx)(s.td,{children:"Optionally specify that this ExternalEvent may only be claimed by a specific ThreadRun."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"node_run_position"})}),(0,r.jsx)(s.td,{children:"optional"}),(0,r.jsx)(s.td,{children:"int32"}),(0,r.jsx)(s.td,{children:"Optionally specify that this ExternalEvent may only be claimed by a specific NodeRun. In order for this to be set, you must also set thread_run_number."})]})]})]}),"\n",(0,r.jsxs)(s.h3,{id:"puttaskdefrequest",children:["Message ",(0,r.jsx)(s.code,{children:"PutTaskDefRequest"})]}),"\n",(0,r.jsx)(s.p,{children:"Creates a TaskDef."}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Field"}),(0,r.jsx)(s.th,{children:"Label"}),(0,r.jsx)(s.th,{children:"Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsxs)(s.tbody,{children:[(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"name"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:"string"}),(0,r.jsx)(s.td,{children:"The name of the TaskDef to create."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"input_vars"})}),(0,r.jsx)(s.td,{children:"repeated"}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#variabledef",children:"VariableDef"})}),(0,r.jsx)(s.td,{children:"Variables required to execute the TaskDef. Normally, these are automatically generated by the Task Worker SDK."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"output_schema"})}),(0,r.jsx)(s.td,{children:"optional"}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#taskdefoutputschema",children:"TaskDefOutputSchema"})}),(0,r.jsx)(s.td,{children:"Schema that validates the TaskDef's output"})]})]})]}),"\n",(0,r.jsxs)(s.h3,{id:"putusertaskdefrequest",children:["Message ",(0,r.jsx)(s.code,{children:"PutUserTaskDefRequest"})]}),"\n",(0,r.jsx)(s.p,{children:"Creates a UserTaskDef."}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Field"}),(0,r.jsx)(s.th,{children:"Label"}),(0,r.jsx)(s.th,{children:"Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsxs)(s.tbody,{children:[(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"name"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:"string"}),(0,r.jsx)(s.td,{children:"The name of the UserTaskDef to create."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"fields"})}),(0,r.jsx)(s.td,{children:"repeated"}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#usertaskfield",children:"UserTaskField"})}),(0,r.jsx)(s.td,{children:"The fields that should be presented to the user on the screen in order to fill out the User Task. Note that these fields also define a data contract for the result of the UserTaskDef."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"description"})}),(0,r.jsx)(s.td,{children:"optional"}),(0,r.jsx)(s.td,{children:"string"}),(0,r.jsx)(s.td,{children:"Optional metadata field to store user-defined data. Does not impact workflow execution. Fine to store up to a few KB of text here."})]})]})]}),"\n",(0,r.jsxs)(s.h3,{id:"putwfspecrequest",children:["Message ",(0,r.jsx)(s.code,{children:"PutWfSpecRequest"})]}),"\n",(0,r.jsx)(s.p,{children:"Creates a WfSpec. Generally, this request is generated by the Workflow object in\nour various SDK's."}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Field"}),(0,r.jsx)(s.th,{children:"Label"}),(0,r.jsx)(s.th,{children:"Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsxs)(s.tbody,{children:[(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"name"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:"string"}),(0,r.jsx)(s.td,{children:"The name of the resulting WfSpec."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"thread_specs"})}),(0,r.jsx)(s.td,{children:"map"}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#putwfspecrequestthreadspecsentry",children:"PutWfSpecRequest.ThreadSpecsEntry"})}),(0,r.jsx)(s.td,{children:"Map from name the ThreadSpec."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"entrypoint_thread_name"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:"string"}),(0,r.jsx)(s.td,{children:"The name of the ThreadSpec to be used as the workflow entrypoint."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"retention_policy"})}),(0,r.jsx)(s.td,{children:"optional"}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#workflowretentionpolicy",children:"WorkflowRetentionPolicy"})}),(0,r.jsx)(s.td,{children:"Optional policy to determine how long a WfRun is retained in the data store after it is completed or terminated."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"parent_wf_spec"})}),(0,r.jsx)(s.td,{children:"optional"}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#wfspecparentwfspecreference",children:"WfSpec.ParentWfSpecReference"})}),(0,r.jsxs)(s.td,{children:["Parent WfSpec Reference. If this is set, then all WfRun's for this WfSpec ",(0,r.jsx)(s.em,{children:"MUST"})," be Child WfRun's of the specified WfSpec."]})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"allowed_updates"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#allowedupdatetype",children:"AllowedUpdateType"})}),(0,r.jsx)(s.td,{children:"Configures the behavior of this individual request. Can be used to prevent breaking changes to the WfSpec, prevent any changes to the WfSpec, or allow all changes to the WfSpec."})]})]})]}),"\n",(0,r.jsxs)(s.h3,{id:"putwfspecrequestthreadspecsentry",children:["Message ",(0,r.jsx)(s.code,{children:"PutWfSpecRequest.ThreadSpecsEntry"})]}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Field"}),(0,r.jsx)(s.th,{children:"Label"}),(0,r.jsx)(s.th,{children:"Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsxs)(s.tbody,{children:[(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"key"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:"string"}),(0,r.jsx)(s.td,{})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"value"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#threadspec",children:"ThreadSpec"})}),(0,r.jsx)(s.td,{})]})]})]}),"\n",(0,r.jsxs)(s.h3,{id:"putworkfloweventdefrequest",children:["Message ",(0,r.jsx)(s.code,{children:"PutWorkflowEventDefRequest"})]}),"\n",(0,r.jsx)(s.p,{children:"EXPERIMENTAL: Creates a WorkflowEventDef"}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Field"}),(0,r.jsx)(s.th,{children:"Label"}),(0,r.jsx)(s.th,{children:"Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsxs)(s.tbody,{children:[(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"name"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:"string"}),(0,r.jsx)(s.td,{})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"type"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#variabletype",children:"VariableType"})}),(0,r.jsx)(s.td,{})]})]})]}),"\n",(0,r.jsxs)(s.h3,{id:"registertaskworkerrequest",children:["Message ",(0,r.jsx)(s.code,{children:"RegisterTaskWorkerRequest"})]}),"\n",(0,r.jsx)(s.p,{children:"Message used by Task Worker to register itself to the server and ask for assignments of\nservers to poll."}),"\n",(0,r.jsx)(s.p,{children:"Used by the Task Worker SDK; generally, you shouldn't have to touch this manually."}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Field"}),(0,r.jsx)(s.th,{children:"Label"}),(0,r.jsx)(s.th,{children:"Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsxs)(s.tbody,{children:[(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"task_worker_id"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:"string"}),(0,r.jsx)(s.td,{children:"Is the ID of the Task Worker."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"task_def_id"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#taskdefid",children:"TaskDefId"})}),(0,r.jsx)(s.td,{children:"The TaskDef the worker wants to poll for."})]})]})]}),"\n",(0,r.jsxs)(s.h3,{id:"registertaskworkerresponse",children:["Message ",(0,r.jsx)(s.code,{children:"RegisterTaskWorkerResponse"})]}),"\n",(0,r.jsx)(s.p,{children:"Response containing list of Servers that the Task Worker should connect to and start polling from.\nOnly used internally by the Task Worker SDK."}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Field"}),(0,r.jsx)(s.th,{children:"Label"}),(0,r.jsx)(s.th,{children:"Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsxs)(s.tbody,{children:[(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"your_hosts"})}),(0,r.jsx)(s.td,{children:"repeated"}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#lhhostinfo",children:"LHHostInfo"})}),(0,r.jsx)(s.td,{children:"The list of LH Server hosts that the Task Worker should start polling."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"is_cluster_healthy"})}),(0,r.jsx)(s.td,{children:"optional"}),(0,r.jsx)(s.td,{children:"bool"}),(0,r.jsx)(s.td,{children:"Whether the LH Cluster is healthy."})]})]})]}),"\n",(0,r.jsxs)(s.h3,{id:"reporttaskrun",children:["Message ",(0,r.jsx)(s.code,{children:"ReportTaskRun"})]}),"\n",(0,r.jsx)(s.p,{children:"Request used by the Task Worker SDK to report the result of a TaskRun execution."}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Field"}),(0,r.jsx)(s.th,{children:"Label"}),(0,r.jsx)(s.th,{children:"Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsxs)(s.tbody,{children:[(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"task_run_id"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#taskrunid",children:"TaskRunId"})}),(0,r.jsx)(s.td,{children:"ID of the TaskRun"})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"time"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:"google.protobuf.Timestamp"}),(0,r.jsx)(s.td,{children:"When the TaskRun was executed"})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"status"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#taskstatus",children:"TaskStatus"})}),(0,r.jsx)(s.td,{children:"Status of the TaskRun"})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"log_output"})}),(0,r.jsx)(s.td,{children:"optional"}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#variablevalue",children:"VariableValue"})}),(0,r.jsx)(s.td,{children:"Optional information for logging or exceptions"})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"attempt_number"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:"int32"}),(0,r.jsx)(s.td,{children:"Attempt number of the TaskRun"})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"output"})}),(0,r.jsxs)(s.td,{children:["oneof ",(0,r.jsx)(s.code,{children:"result"})]}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#variablevalue",children:"VariableValue"})}),(0,r.jsx)(s.td,{children:"Successfully completed task"})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"error"})}),(0,r.jsxs)(s.td,{children:["oneof ",(0,r.jsx)(s.code,{children:"result"})]}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#lhtaskerror",children:"LHTaskError"})}),(0,r.jsx)(s.td,{children:"Technical error"})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"exception"})}),(0,r.jsxs)(s.td,{children:["oneof ",(0,r.jsx)(s.code,{children:"result"})]}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#lhtaskexception",children:"LHTaskException"})}),(0,r.jsx)(s.td,{children:"Business exception"})]})]})]}),"\n",(0,r.jsxs)(s.h3,{id:"rescuethreadrunrequest",children:["Message ",(0,r.jsx)(s.code,{children:"RescueThreadRunRequest"})]}),"\n",(0,r.jsx)(s.p,{children:"The request used to rescue a failed ThreadRun at a specific NodeRun."}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Field"}),(0,r.jsx)(s.th,{children:"Label"}),(0,r.jsx)(s.th,{children:"Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsxs)(s.tbody,{children:[(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"wf_run_id"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#wfrunid",children:"WfRunId"})}),(0,r.jsxs)(s.td,{children:["The id of the ",(0,r.jsx)(s.code,{children:"WfRun"})," which we are going to rescue."]})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"thread_run_number"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:"int32"}),(0,r.jsxs)(s.td,{children:["The number of the failed ",(0,r.jsx)(s.code,{children:"ThreadRun"})," that we will rescue. The specified ",(0,r.jsx)(s.code,{children:"ThreadRun"})," must be in a state where it's latest ",(0,r.jsx)(s.code,{children:"NodeRun"})," is: ",(0,r.jsx)("br",{})," - In the ",(0,r.jsx)(s.code,{children:"ERROR"})," state.",(0,r.jsx)("br",{})," - Has no ",(0,r.jsx)(s.code,{children:"FailureHandler"})," ",(0,r.jsx)(s.code,{children:"ThreadRun"}),"s ",(0,r.jsx)("br",{})," - The parent ",(0,r.jsx)(s.code,{children:"ThreadRun"}),", or any parent of the parent, has not handled the ",(0,r.jsx)(s.code,{children:"Failure"})," yet.",(0,r.jsx)("br",{}),(0,r.jsx)("br",{}),"If that is not true, then the ",(0,r.jsx)(s.code,{children:"ThreadRun"})," cannot be rescued and the request will return ",(0,r.jsx)(s.code,{children:"FAILED_PRECONDITION"}),"."]})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"skip_current_node"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:"bool"}),(0,r.jsxs)(s.td,{children:["If set to ",(0,r.jsx)(s.code,{children:"true"}),", then the ThreadRun will skip past the ",(0,r.jsx)(s.code,{children:"Node"})," of the current failed ",(0,r.jsx)(s.code,{children:"NodeRun"})," and advance according to the outgoing edges. If set to ",(0,r.jsx)(s.code,{children:"false"}),", then the ",(0,r.jsx)(s.code,{children:"ThreadRun"})," will schedule another ",(0,r.jsx)(s.code,{children:"NodeRun"})," for the current ",(0,r.jsx)(s.code,{children:"Node"})]})]})]})]}),"\n",(0,r.jsxs)(s.h3,{id:"resumewfrunrequest",children:["Message ",(0,r.jsx)(s.code,{children:"ResumeWfRunRequest"})]}),"\n",(0,r.jsx)(s.p,{children:"Resume a WfRun."}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Field"}),(0,r.jsx)(s.th,{children:"Label"}),(0,r.jsx)(s.th,{children:"Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsxs)(s.tbody,{children:[(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"wf_run_id"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#wfrunid",children:"WfRunId"})}),(0,r.jsx)(s.td,{children:"Is the WfRunId"})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"thread_run_number"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:"int32"}),(0,r.jsxs)(s.td,{children:["The number of the ThreadRun to resume. Note that resuming the entrypoint ThreadRun (which always has number ",(0,r.jsx)(s.code,{children:"0"}),") causes the whole WfRun to resume. If you do not manually set the thread_run_number field, it defaults to zero, so resuming the entire WfRun is the default behavior."]})]})]})]}),"\n",(0,r.jsxs)(s.h3,{id:"runwfrequest",children:["Message ",(0,r.jsx)(s.code,{children:"RunWfRequest"})]}),"\n",(0,r.jsx)(s.p,{children:"Create a Workflow Run."}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Field"}),(0,r.jsx)(s.th,{children:"Label"}),(0,r.jsx)(s.th,{children:"Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsxs)(s.tbody,{children:[(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"wf_spec_name"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:"string"}),(0,r.jsx)(s.td,{children:"The name of the WfSpec to run."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"major_version"})}),(0,r.jsx)(s.td,{children:"optional"}),(0,r.jsx)(s.td,{children:"int32"}),(0,r.jsx)(s.td,{children:'Optionally specify the major version of the WfSpec to run. This guarantees that the "signature" of the WfSpec (i.e. the required input variables, and searchable variables) will not change for this app.'})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"revision"})}),(0,r.jsx)(s.td,{children:"optional"}),(0,r.jsx)(s.td,{children:"int32"}),(0,r.jsx)(s.td,{children:"Optionally specify the specific revision of the WfSpec to run. It is not recommended to use this in practice, as the WfSpec logic should be de-coupled from the applications that run WfRun's."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"variables"})}),(0,r.jsx)(s.td,{children:"map"}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#runwfrequestvariablesentry",children:"RunWfRequest.VariablesEntry"})}),(0,r.jsx)(s.td,{children:"A map from Variable Name to Values for those variables. The provided variables are passed as input to the Entrypoint ThreadRun."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"id"})}),(0,r.jsx)(s.td,{children:"optional"}),(0,r.jsx)(s.td,{children:"string"}),(0,r.jsx)(s.td,{children:"You can optionally specify the ID of this WfRun. This is a recommended best practice as it also makes your request idempotent and allows you to easily find the WfRun at a later time."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"parent_wf_run_id"})}),(0,r.jsx)(s.td,{children:"optional"}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#wfrunid",children:"WfRunId"})}),(0,r.jsx)(s.td,{})]})]})]}),"\n",(0,r.jsxs)(s.h3,{id:"runwfrequestvariablesentry",children:["Message ",(0,r.jsx)(s.code,{children:"RunWfRequest.VariablesEntry"})]}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Field"}),(0,r.jsx)(s.th,{children:"Label"}),(0,r.jsx)(s.th,{children:"Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsxs)(s.tbody,{children:[(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"key"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:"string"}),(0,r.jsx)(s.td,{})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"value"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#variablevalue",children:"VariableValue"})}),(0,r.jsx)(s.td,{})]})]})]}),"\n",(0,r.jsxs)(s.h3,{id:"schedulewfrequest",children:["Message ",(0,r.jsx)(s.code,{children:"ScheduleWfRequest"})]}),"\n",(0,r.jsx)(s.p,{children:"Schedule WfRuns based on a specific cron UNIX expression"}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Field"}),(0,r.jsx)(s.th,{children:"Label"}),(0,r.jsx)(s.th,{children:"Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsxs)(s.tbody,{children:[(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"id"})}),(0,r.jsx)(s.td,{children:"optional"}),(0,r.jsx)(s.td,{children:"string"}),(0,r.jsx)(s.td,{children:"Specific ID"})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"wf_spec_name"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:"string"}),(0,r.jsx)(s.td,{children:"The name of the WfSpec to run."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"major_version"})}),(0,r.jsx)(s.td,{children:"optional"}),(0,r.jsx)(s.td,{children:"int32"}),(0,r.jsx)(s.td,{children:'Optionally specify the major version of the WfSpec to run. This guarantees that the "signature" of the WfSpec (i.e. the required input variables, and searchable variables) will not change for this app.'})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"revision"})}),(0,r.jsx)(s.td,{children:"optional"}),(0,r.jsx)(s.td,{children:"int32"}),(0,r.jsx)(s.td,{children:"Optionally specify the specific revision of the WfSpec to run. It is not recommended to use this in practice, as the WfSpec logic should be de-coupled from the applications that run WfRun's."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"variables"})}),(0,r.jsx)(s.td,{children:"map"}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#schedulewfrequestvariablesentry",children:"ScheduleWfRequest.VariablesEntry"})}),(0,r.jsx)(s.td,{children:"A map from Variable Name to Values for those variables. The provided variables are passed as input to the Entrypoint ThreadRun."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"parent_wf_run_id"})}),(0,r.jsx)(s.td,{children:"optional"}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#wfrunid",children:"WfRunId"})}),(0,r.jsx)(s.td,{children:"Parent WfRunId associated with all the generated WfRuns"})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"cron_expression"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:"string"}),(0,r.jsx)(s.td,{children:"UNIX expression used to specify the schedule for executing WfRuns"})]})]})]}),"\n",(0,r.jsxs)(s.h3,{id:"schedulewfrequestvariablesentry",children:["Message ",(0,r.jsx)(s.code,{children:"ScheduleWfRequest.VariablesEntry"})]}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Field"}),(0,r.jsx)(s.th,{children:"Label"}),(0,r.jsx)(s.th,{children:"Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsxs)(s.tbody,{children:[(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"key"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:"string"}),(0,r.jsx)(s.td,{})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"value"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#variablevalue",children:"VariableValue"})}),(0,r.jsx)(s.td,{})]})]})]}),"\n",(0,r.jsxs)(s.h3,{id:"scheduledtask",children:["Message ",(0,r.jsx)(s.code,{children:"ScheduledTask"})]}),"\n",(0,r.jsx)(s.p,{children:"Message sent by server to Task Worker SDK specifying a specific TaskRun to be executed.\nThis is used and handled internally by the Task Worker SDK."}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Field"}),(0,r.jsx)(s.th,{children:"Label"}),(0,r.jsx)(s.th,{children:"Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsxs)(s.tbody,{children:[(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"task_run_id"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#taskrunid",children:"TaskRunId"})}),(0,r.jsx)(s.td,{children:"Id of the TaskRun to execute."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"task_def_id"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#taskdefid",children:"TaskDefId"})}),(0,r.jsx)(s.td,{children:"ID of the TaskDef to which the TaskRun belongs."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"attempt_number"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:"int32"}),(0,r.jsxs)(s.td,{children:["Attempt number of the TaskRun, zero indexed. attempt_number of ",(0,r.jsx)(s.code,{children:"0"})," means this is the first attempt; ",(0,r.jsx)(s.code,{children:"1"})," means this is the first retry, etc."]})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"variables"})}),(0,r.jsx)(s.td,{children:"repeated"}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#varnameandval",children:"VarNameAndVal"})}),(0,r.jsx)(s.td,{children:"Input variables for this TaskRun."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"created_at"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:"google.protobuf.Timestamp"}),(0,r.jsx)(s.td,{})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"source"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#taskrunsource",children:"TaskRunSource"})}),(0,r.jsx)(s.td,{children:"Source of the TaskRun. Currently, there are two options: 1. A TASK node 2. A reminder task scheduled by a trigger on a User Task."})]})]})]}),"\n",(0,r.jsxs)(s.h3,{id:"scheduledwfrunidlist",children:["Message ",(0,r.jsx)(s.code,{children:"ScheduledWfRunIdList"})]}),"\n",(0,r.jsx)(s.p,{children:"List of ScheduledWfRun"}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Field"}),(0,r.jsx)(s.th,{children:"Label"}),(0,r.jsx)(s.th,{children:"Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsx)(s.tbody,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"results"})}),(0,r.jsx)(s.td,{children:"repeated"}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#scheduledwfrunid",children:"ScheduledWfRunId"})}),(0,r.jsx)(s.td,{children:"A list of ScheduledWfRun Objects"})]})})]}),"\n",(0,r.jsxs)(s.h3,{id:"searchexternaleventdefrequest",children:["Message ",(0,r.jsx)(s.code,{children:"SearchExternalEventDefRequest"})]}),"\n",(0,r.jsx)(s.p,{children:"Search for ExternalEventDefs based on certain criteria."}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Field"}),(0,r.jsx)(s.th,{children:"Label"}),(0,r.jsx)(s.th,{children:"Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsxs)(s.tbody,{children:[(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"bookmark"})}),(0,r.jsx)(s.td,{children:"optional"}),(0,r.jsx)(s.td,{children:"bytes"}),(0,r.jsx)(s.td,{children:"Bookmark for cursor-based pagination; pass if applicable."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"limit"})}),(0,r.jsx)(s.td,{children:"optional"}),(0,r.jsx)(s.td,{children:"int32"}),(0,r.jsx)(s.td,{children:"Maximum results to return in one request."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"prefix"})}),(0,r.jsx)(s.td,{children:"optional"}),(0,r.jsx)(s.td,{children:"string"}),(0,r.jsx)(s.td,{children:"Optionally search only for ExternalEventDef's whose name starts with this prefix."})]})]})]}),"\n",(0,r.jsxs)(s.h3,{id:"searchexternaleventrequest",children:["Message ",(0,r.jsx)(s.code,{children:"SearchExternalEventRequest"})]}),"\n",(0,r.jsx)(s.p,{children:"Search for ExternalEvents based on certain criteria."}),"\n",(0,r.jsx)(s.p,{children:"Required field ExternalEventDefId specifies which ExternalEventDef\nto search for ExternalEvents under."}),"\n",(0,r.jsx)(s.p,{children:"At this time, it is not possible to make a search for all ExternalEvents."}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Field"}),(0,r.jsx)(s.th,{children:"Label"}),(0,r.jsx)(s.th,{children:"Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsxs)(s.tbody,{children:[(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"bookmark"})}),(0,r.jsx)(s.td,{children:"optional"}),(0,r.jsx)(s.td,{children:"bytes"}),(0,r.jsx)(s.td,{children:"Bookmark for cursor-based pagination; pass if applicable."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"limit"})}),(0,r.jsx)(s.td,{children:"optional"}),(0,r.jsx)(s.td,{children:"int32"}),(0,r.jsx)(s.td,{children:"Maximum results to return in one request."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"earliest_start"})}),(0,r.jsx)(s.td,{children:"optional"}),(0,r.jsx)(s.td,{children:"google.protobuf.Timestamp"}),(0,r.jsx)(s.td,{children:"Specifies to return only ExternalEvents created after this time"})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"latest_start"})}),(0,r.jsx)(s.td,{children:"optional"}),(0,r.jsx)(s.td,{children:"google.protobuf.Timestamp"}),(0,r.jsx)(s.td,{children:"Specifies to return only ExternalEvents created before this time"})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"external_event_def_id"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#externaleventdefid",children:"ExternalEventDefId"})}),(0,r.jsxs)(s.td,{children:["Search for ExternalEvents by their ExternalEventDefId",(0,r.jsx)("br",{}),(0,r.jsx)("br",{}),"* Note: If ExternalEventDefId is not provided or does not exist, gRPC status code 'INVALID_ARGUMENT' will be returned."]})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"is_claimed"})}),(0,r.jsx)(s.td,{children:"optional"}),(0,r.jsx)(s.td,{children:"bool"}),(0,r.jsx)(s.td,{children:"Optionally search for only ExternalEvents that are claimed or not."})]})]})]}),"\n",(0,r.jsxs)(s.h3,{id:"searchnoderunrequest",children:["Message ",(0,r.jsx)(s.code,{children:"SearchNodeRunRequest"})]}),"\n",(0,r.jsx)(s.p,{children:"Search for NodeRun's by certain criteria."}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Field"}),(0,r.jsx)(s.th,{children:"Label"}),(0,r.jsx)(s.th,{children:"Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsxs)(s.tbody,{children:[(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"bookmark"})}),(0,r.jsx)(s.td,{children:"optional"}),(0,r.jsx)(s.td,{children:"bytes"}),(0,r.jsx)(s.td,{children:"Bookmark for cursor-based pagination; pass if applicable."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"limit"})}),(0,r.jsx)(s.td,{children:"optional"}),(0,r.jsx)(s.td,{children:"int32"}),(0,r.jsx)(s.td,{children:"Maximum results to return in one request."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"earliest_start"})}),(0,r.jsx)(s.td,{children:"optional"}),(0,r.jsx)(s.td,{children:"google.protobuf.Timestamp"}),(0,r.jsx)(s.td,{children:"Only return NodeRun's created after this time."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"latest_start"})}),(0,r.jsx)(s.td,{children:"optional"}),(0,r.jsx)(s.td,{children:"google.protobuf.Timestamp"}),(0,r.jsx)(s.td,{children:"Only return NodeRun's created before this time."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"node_type"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#searchnoderunrequestnodetype",children:"SearchNodeRunRequest.NodeType"})}),(0,r.jsx)(s.td,{children:"Specifies the type of NodeRun to search for."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"status"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#lhstatus",children:"LHStatus"})}),(0,r.jsx)(s.td,{children:"Specifies the status of NodeRun to search for."})]})]})]}),"\n",(0,r.jsxs)(s.h3,{id:"searchprincipalrequest",children:["Message ",(0,r.jsx)(s.code,{children:"SearchPrincipalRequest"})]}),"\n",(0,r.jsx)(s.p,{children:"Search for Principals based on certain criteria."}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Field"}),(0,r.jsx)(s.th,{children:"Label"}),(0,r.jsx)(s.th,{children:"Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsxs)(s.tbody,{children:[(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"bookmark"})}),(0,r.jsx)(s.td,{children:"optional"}),(0,r.jsx)(s.td,{children:"bytes"}),(0,r.jsx)(s.td,{children:"Bookmark for cursor-based pagination; pass if applicable."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"limit"})}),(0,r.jsx)(s.td,{children:"optional"}),(0,r.jsx)(s.td,{children:"int32"}),(0,r.jsx)(s.td,{children:"Maximum results to return in one request."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"earliest_start"})}),(0,r.jsx)(s.td,{children:"optional"}),(0,r.jsx)(s.td,{children:"google.protobuf.Timestamp"}),(0,r.jsx)(s.td,{children:"Specifies to return only Principals's created after this time"})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"latest_start"})}),(0,r.jsx)(s.td,{children:"optional"}),(0,r.jsx)(s.td,{children:"google.protobuf.Timestamp"}),(0,r.jsx)(s.td,{children:"Specifies to return only Principals's created before this time"})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"isAdmin"})}),(0,r.jsxs)(s.td,{children:["oneof ",(0,r.jsx)(s.code,{children:"principal_criteria"})]}),(0,r.jsx)(s.td,{children:"bool"}),(0,r.jsx)(s.td,{children:"List only Principals that are admins"})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"tenantId"})}),(0,r.jsxs)(s.td,{children:["oneof ",(0,r.jsx)(s.code,{children:"principal_criteria"})]}),(0,r.jsx)(s.td,{children:"string"}),(0,r.jsx)(s.td,{children:"List Principals associated with this Tenant ID"})]})]})]}),"\n",(0,r.jsxs)(s.h3,{id:"searchscheduledwfrunrequest",children:["Message ",(0,r.jsx)(s.code,{children:"SearchScheduledWfRunRequest"})]}),"\n",(0,r.jsx)(s.p,{children:"Search filters for ScheduledWfRun's"}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Field"}),(0,r.jsx)(s.th,{children:"Label"}),(0,r.jsx)(s.th,{children:"Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsxs)(s.tbody,{children:[(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"wf_spec_name"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:"string"}),(0,r.jsx)(s.td,{children:"The name of the WfSpec to filter"})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"major_version"})}),(0,r.jsx)(s.td,{children:"optional"}),(0,r.jsx)(s.td,{children:"int32"}),(0,r.jsx)(s.td,{children:"The major version of the WfSpec to filter"})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"revision"})}),(0,r.jsx)(s.td,{children:"optional"}),(0,r.jsx)(s.td,{children:"int32"}),(0,r.jsx)(s.td,{children:"The revision number of the WfSpec to filter"})]})]})]}),"\n",(0,r.jsxs)(s.h3,{id:"searchtaskdefrequest",children:["Message ",(0,r.jsx)(s.code,{children:"SearchTaskDefRequest"})]}),"\n",(0,r.jsx)(s.p,{children:"Search for TaskDef's based on certain criteria."}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Field"}),(0,r.jsx)(s.th,{children:"Label"}),(0,r.jsx)(s.th,{children:"Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsxs)(s.tbody,{children:[(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"bookmark"})}),(0,r.jsx)(s.td,{children:"optional"}),(0,r.jsx)(s.td,{children:"bytes"}),(0,r.jsx)(s.td,{children:"Bookmark for cursor-based pagination; pass if applicable."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"limit"})}),(0,r.jsx)(s.td,{children:"optional"}),(0,r.jsx)(s.td,{children:"int32"}),(0,r.jsx)(s.td,{children:"Maximum results to return in one request."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"prefix"})}),(0,r.jsx)(s.td,{children:"optional"}),(0,r.jsx)(s.td,{children:"string"}),(0,r.jsx)(s.td,{children:"Optionally specify to only return TaskDef's with a specific prefix."})]})]})]}),"\n",(0,r.jsxs)(s.h3,{id:"searchtaskrunrequest",children:["Message ",(0,r.jsx)(s.code,{children:"SearchTaskRunRequest"})]}),"\n",(0,r.jsx)(s.p,{children:"Searches for TaskRuns by various criteria."}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Field"}),(0,r.jsx)(s.th,{children:"Label"}),(0,r.jsx)(s.th,{children:"Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsxs)(s.tbody,{children:[(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"bookmark"})}),(0,r.jsx)(s.td,{children:"optional"}),(0,r.jsx)(s.td,{children:"bytes"}),(0,r.jsx)(s.td,{children:"Bookmark for cursor-based pagination; pass if applicable."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"limit"})}),(0,r.jsx)(s.td,{children:"optional"}),(0,r.jsx)(s.td,{children:"int32"}),(0,r.jsx)(s.td,{children:"Maximum results to return in one request."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"task_def_name"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:"string"}),(0,r.jsx)(s.td,{children:"Specifies the TaskDef of TaskRun's to return. This is required."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"status"})}),(0,r.jsx)(s.td,{children:"optional"}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#taskstatus",children:"TaskStatus"})}),(0,r.jsx)(s.td,{children:"Specifies to only return TaskRun's matching this status."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"earliest_start"})}),(0,r.jsx)(s.td,{children:"optional"}),(0,r.jsx)(s.td,{children:"google.protobuf.Timestamp"}),(0,r.jsx)(s.td,{children:"Specifies to only return TaskRun's that were scheduled after this time."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"latest_start"})}),(0,r.jsx)(s.td,{children:"optional"}),(0,r.jsx)(s.td,{children:"google.protobuf.Timestamp"}),(0,r.jsx)(s.td,{children:"Specifies to only return TaskRun's that were scheduled before this time."})]})]})]}),"\n",(0,r.jsxs)(s.h3,{id:"searchtenantrequest",children:["Message ",(0,r.jsx)(s.code,{children:"SearchTenantRequest"})]}),"\n",(0,r.jsx)(s.p,{children:"Search for all available TenantIds for current Principal"}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Field"}),(0,r.jsx)(s.th,{children:"Label"}),(0,r.jsx)(s.th,{children:"Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsxs)(s.tbody,{children:[(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"limit"})}),(0,r.jsx)(s.td,{children:"optional"}),(0,r.jsx)(s.td,{children:"int32"}),(0,r.jsx)(s.td,{children:"Maximum results to return in one request."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"bookmark"})}),(0,r.jsx)(s.td,{children:"optional"}),(0,r.jsx)(s.td,{children:"bytes"}),(0,r.jsx)(s.td,{children:"Bookmark for cursor-based pagination; pass if applicable."})]})]})]}),"\n",(0,r.jsxs)(s.h3,{id:"searchusertaskdefrequest",children:["Message ",(0,r.jsx)(s.code,{children:"SearchUserTaskDefRequest"})]}),"\n",(0,r.jsx)(s.p,{children:"Search for UserTaskDef's."}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Field"}),(0,r.jsx)(s.th,{children:"Label"}),(0,r.jsx)(s.th,{children:"Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsxs)(s.tbody,{children:[(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"bookmark"})}),(0,r.jsx)(s.td,{children:"optional"}),(0,r.jsx)(s.td,{children:"bytes"}),(0,r.jsx)(s.td,{children:"Bookmark for cursor-based pagination; pass if applicable."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"limit"})}),(0,r.jsx)(s.td,{children:"optional"}),(0,r.jsx)(s.td,{children:"int32"}),(0,r.jsx)(s.td,{children:"Maximum results to return in one request."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"prefix"})}),(0,r.jsxs)(s.td,{children:["oneof ",(0,r.jsx)(s.code,{children:"user_task_def_criteria"})]}),(0,r.jsx)(s.td,{children:"string"}),(0,r.jsx)(s.td,{children:"Return all UserTaskDef's with a specific prefix."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"name"})}),(0,r.jsxs)(s.td,{children:["oneof ",(0,r.jsx)(s.code,{children:"user_task_def_criteria"})]}),(0,r.jsx)(s.td,{children:"string"}),(0,r.jsx)(s.td,{children:"Return all UserTaskDef's with a specific name."})]})]})]}),"\n",(0,r.jsxs)(s.h3,{id:"searchusertaskrunrequest",children:["Message ",(0,r.jsx)(s.code,{children:"SearchUserTaskRunRequest"})]}),"\n",(0,r.jsx)(s.p,{children:"Search for UserTaskRun's matching certain criteria. The attributes are additive,\nyou may specify any combination of fields in this request. Only UserTaskRun's\nmatching all criteria will be returned."}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Field"}),(0,r.jsx)(s.th,{children:"Label"}),(0,r.jsx)(s.th,{children:"Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsxs)(s.tbody,{children:[(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"bookmark"})}),(0,r.jsx)(s.td,{children:"optional"}),(0,r.jsx)(s.td,{children:"bytes"}),(0,r.jsx)(s.td,{children:"Bookmark for cursor-based pagination; pass if applicable."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"limit"})}),(0,r.jsx)(s.td,{children:"optional"}),(0,r.jsx)(s.td,{children:"int32"}),(0,r.jsx)(s.td,{children:"Maximum results to return in one request."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"status"})}),(0,r.jsx)(s.td,{children:"optional"}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#usertaskrunstatus",children:"UserTaskRunStatus"})}),(0,r.jsx)(s.td,{children:"Status of UserTaskRun's to return."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"user_task_def_name"})}),(0,r.jsx)(s.td,{children:"optional"}),(0,r.jsx)(s.td,{children:"string"}),(0,r.jsx)(s.td,{children:"UserTaskDef name to search for."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"user_id"})}),(0,r.jsx)(s.td,{children:"optional"}),(0,r.jsx)(s.td,{children:"string"}),(0,r.jsx)(s.td,{children:"Search for UserTaskRun's assigned to this user id."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"user_group"})}),(0,r.jsx)(s.td,{children:"optional"}),(0,r.jsx)(s.td,{children:"string"}),(0,r.jsx)(s.td,{children:"Search for UserTaskRun's assigned to this user group."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"earliest_start"})}),(0,r.jsx)(s.td,{children:"optional"}),(0,r.jsx)(s.td,{children:"google.protobuf.Timestamp"}),(0,r.jsx)(s.td,{children:"Search for UserTaskRun's that were created after this time."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"latest_start"})}),(0,r.jsx)(s.td,{children:"optional"}),(0,r.jsx)(s.td,{children:"google.protobuf.Timestamp"}),(0,r.jsx)(s.td,{children:"Search for UserTaskRun's that were created before this time."})]})]})]}),"\n",(0,r.jsxs)(s.h3,{id:"searchvariablerequest",children:["Message ",(0,r.jsx)(s.code,{children:"SearchVariableRequest"})]}),"\n",(0,r.jsx)(s.p,{children:"Search for Variables by their value. This request is also highly useful to search for\nWfRun's based on the value of Variable's that are not in the Entrypoint ThreadRun,\nand also when you are using LittleHorse as a data store and need to perform a search."}),"\n",(0,r.jsxs)(s.p,{children:["You may only search for a Variable that has an index specified on it. This may be done\nvia th ",(0,r.jsx)(s.code,{children:".searchable()"})," method on our SDK's."]}),"\n",(0,r.jsx)(s.p,{children:"Note that we do not yet support searching JSON_OBJ or JSON_ARR fields, but you may\nstill mark those fields as searchable. We will soon add the ability to query those\nfields via the indices."}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Field"}),(0,r.jsx)(s.th,{children:"Label"}),(0,r.jsx)(s.th,{children:"Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsxs)(s.tbody,{children:[(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"bookmark"})}),(0,r.jsx)(s.td,{children:"optional"}),(0,r.jsx)(s.td,{children:"bytes"}),(0,r.jsx)(s.td,{children:"Bookmark for cursor-based pagination; pass if applicable."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"limit"})}),(0,r.jsx)(s.td,{children:"optional"}),(0,r.jsx)(s.td,{children:"int32"}),(0,r.jsx)(s.td,{children:"Maximum results to return in one request."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"value"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#variablevalue",children:"VariableValue"})}),(0,r.jsx)(s.td,{children:"Specifies the value that the variable must be. Exact match is required."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"wf_spec_major_version"})}),(0,r.jsx)(s.td,{children:"optional"}),(0,r.jsx)(s.td,{children:"int32"}),(0,r.jsx)(s.td,{children:"Specifies major version of the WfSpec for the associated WfRun."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"wf_spec_revision"})}),(0,r.jsx)(s.td,{children:"optional"}),(0,r.jsx)(s.td,{children:"int32"}),(0,r.jsx)(s.td,{children:"Specifies the revision of the WfSpec for the associated WfRun."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"var_name"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:"string"}),(0,r.jsx)(s.td,{children:"Specifies the name of the variable to search for. This is required."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"wf_spec_name"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:"string"}),(0,r.jsx)(s.td,{children:"Specifies the name of the WfSpec for the associated WfRun's. This is required."})]})]})]}),"\n",(0,r.jsxs)(s.h3,{id:"searchwfrunrequest",children:["Message ",(0,r.jsx)(s.code,{children:"SearchWfRunRequest"})]}),"\n",(0,r.jsx)(s.p,{children:"A request used to retrieve a list of WfRunId's by certain criteria."}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Field"}),(0,r.jsx)(s.th,{children:"Label"}),(0,r.jsx)(s.th,{children:"Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsxs)(s.tbody,{children:[(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"bookmark"})}),(0,r.jsx)(s.td,{children:"optional"}),(0,r.jsx)(s.td,{children:"bytes"}),(0,r.jsx)(s.td,{children:"Bookmark for cursor-based pagination; pass if applicable."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"limit"})}),(0,r.jsx)(s.td,{children:"optional"}),(0,r.jsx)(s.td,{children:"int32"}),(0,r.jsx)(s.td,{children:"Maximum results to return in one request."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"wf_spec_name"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:"string"}),(0,r.jsx)(s.td,{children:"The WfSpec whose WfRun's we are searching for. This is required."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"wf_spec_major_version"})}),(0,r.jsx)(s.td,{children:"optional"}),(0,r.jsx)(s.td,{children:"int32"}),(0,r.jsx)(s.td,{children:"Specifies to return only WfRun's from this WfSpec Major Version."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"wf_spec_revision"})}),(0,r.jsx)(s.td,{children:"optional"}),(0,r.jsx)(s.td,{children:"int32"}),(0,r.jsx)(s.td,{children:"Specifies to return only WfRun's from this WfSpec Revision. Can only be set if wf_spec_major_version is also set."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"status"})}),(0,r.jsx)(s.td,{children:"optional"}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#lhstatus",children:"LHStatus"})}),(0,r.jsx)(s.td,{children:"Specifies to return only WfRun's matching this status."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"earliest_start"})}),(0,r.jsx)(s.td,{children:"optional"}),(0,r.jsx)(s.td,{children:"google.protobuf.Timestamp"}),(0,r.jsx)(s.td,{children:"Specifies to return only WfRun's that started after this time"})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"latest_start"})}),(0,r.jsx)(s.td,{children:"optional"}),(0,r.jsx)(s.td,{children:"google.protobuf.Timestamp"}),(0,r.jsx)(s.td,{children:"Specifies to return only WfRun's that started before this time"})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"variable_filters"})}),(0,r.jsx)(s.td,{children:"repeated"}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#variablematch",children:"VariableMatch"})}),(0,r.jsx)(s.td,{children:"Allows filtering WfRun's based on the value of the Variables. This ONLY works for the Variables in the entrypiont threadrun (that is, variables where the threadRunNumber == 0)."})]})]})]}),"\n",(0,r.jsxs)(s.h3,{id:"searchwfspecrequest",children:["Message ",(0,r.jsx)(s.code,{children:"SearchWfSpecRequest"})]}),"\n",(0,r.jsx)(s.p,{children:"Search for WfSpec's."}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Field"}),(0,r.jsx)(s.th,{children:"Label"}),(0,r.jsx)(s.th,{children:"Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsxs)(s.tbody,{children:[(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"bookmark"})}),(0,r.jsx)(s.td,{children:"optional"}),(0,r.jsx)(s.td,{children:"bytes"}),(0,r.jsx)(s.td,{children:"Bookmark for cursor-based pagination; pass if applicable."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"limit"})}),(0,r.jsx)(s.td,{children:"optional"}),(0,r.jsx)(s.td,{children:"int32"}),(0,r.jsx)(s.td,{children:"Maximum results to return in one request."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"name"})}),(0,r.jsxs)(s.td,{children:["oneof ",(0,r.jsx)(s.code,{children:"wf_spec_criteria"})]}),(0,r.jsx)(s.td,{children:"string"}),(0,r.jsx)(s.td,{children:"Return WfSpec's with a specific name."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"prefix"})}),(0,r.jsxs)(s.td,{children:["oneof ",(0,r.jsx)(s.code,{children:"wf_spec_criteria"})]}),(0,r.jsx)(s.td,{children:"string"}),(0,r.jsx)(s.td,{children:"Return WfSpec's with a specific prefix."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"task_def_name"})}),(0,r.jsxs)(s.td,{children:["oneof ",(0,r.jsx)(s.code,{children:"wf_spec_criteria"})]}),(0,r.jsx)(s.td,{children:"string"}),(0,r.jsx)(s.td,{children:"Return all WfSpec's that make use of a given TaskDef."})]})]})]}),"\n",(0,r.jsxs)(s.h3,{id:"serverversionresponse",children:["Message ",(0,r.jsx)(s.code,{children:"ServerVersionResponse"})]}),"\n",(0,r.jsx)(s.p,{children:"The version of the LH Server according to Semantic Versioning"}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Field"}),(0,r.jsx)(s.th,{children:"Label"}),(0,r.jsx)(s.th,{children:"Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsxs)(s.tbody,{children:[(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"major_version"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:"int32"}),(0,r.jsx)(s.td,{children:"Server Major Version"})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"minor_version"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:"int32"}),(0,r.jsx)(s.td,{children:"Server Minor Version"})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"patch_version"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:"int32"}),(0,r.jsx)(s.td,{children:"Server Patch Version"})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"pre_release_identifier"})}),(0,r.jsx)(s.td,{children:"optional"}),(0,r.jsx)(s.td,{children:"string"}),(0,r.jsx)(s.td,{children:"Prerelease Identifier. If this is set, then the server is NOT a production release but rather a release candidate or experimental pre-release."})]})]})]}),"\n",(0,r.jsxs)(s.h3,{id:"stopwfrunrequest",children:["Message ",(0,r.jsx)(s.code,{children:"StopWfRunRequest"})]}),"\n",(0,r.jsx)(s.p,{children:"Message to HALT a WfRun."}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Field"}),(0,r.jsx)(s.th,{children:"Label"}),(0,r.jsx)(s.th,{children:"Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsxs)(s.tbody,{children:[(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"wf_run_id"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#wfrunid",children:"WfRunId"})}),(0,r.jsx)(s.td,{children:"Is the WfRunId"})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"thread_run_number"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:"int32"}),(0,r.jsxs)(s.td,{children:["The number of the ThreadRun to halt. Note that halting the entrypoint ThreadRun (which always has number ",(0,r.jsx)(s.code,{children:"0"}),") causes the whole WfRun to halt. If you do not manually set the thread_run_number field, it defaults to zero, so stopping the entire WfRun is the default behavior."]})]})]})]}),"\n",(0,r.jsxs)(s.h3,{id:"taskdefidlist",children:["Message ",(0,r.jsx)(s.code,{children:"TaskDefIdList"})]}),"\n",(0,r.jsx)(s.p,{children:"List of TaskDef Id's."}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Field"}),(0,r.jsx)(s.th,{children:"Label"}),(0,r.jsx)(s.th,{children:"Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsxs)(s.tbody,{children:[(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"results"})}),(0,r.jsx)(s.td,{children:"repeated"}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#taskdefid",children:"TaskDefId"})}),(0,r.jsx)(s.td,{children:"The resulting object id's."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"bookmark"})}),(0,r.jsx)(s.td,{children:"optional"}),(0,r.jsx)(s.td,{children:"bytes"}),(0,r.jsx)(s.td,{children:"The bookmark can be used for cursor-based pagination. If it is null, the server has returned all results. If it is set, you can pass it into your next request to resume searching where your previous request left off."})]})]})]}),"\n",(0,r.jsxs)(s.h3,{id:"taskdefmetrics",children:["Message ",(0,r.jsx)(s.code,{children:"TaskDefMetrics"})]}),"\n",(0,r.jsx)(s.p,{children:"Metrics for a TaskDef in a certain time period."}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Field"}),(0,r.jsx)(s.th,{children:"Label"}),(0,r.jsx)(s.th,{children:"Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsxs)(s.tbody,{children:[(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"task_def_id"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#taskdefid",children:"TaskDefId"})}),(0,r.jsx)(s.td,{children:"TaskDef that the metrics apply to."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"window_start"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:"google.protobuf.Timestamp"}),(0,r.jsx)(s.td,{children:"When the window started."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"type"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#metricswindowlength",children:"MetricsWindowLength"})}),(0,r.jsx)(s.td,{children:"Length of the window."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"schedule_to_start_max"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:"int64"}),(0,r.jsx)(s.td,{children:"Longest time that a TaskRun was in the TASK_SCHEDULED state"})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"schedule_to_start_avg"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:"int64"}),(0,r.jsx)(s.td,{children:"Average time that a TaskRun was in the TASK_SCHEDULED state"})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"start_to_complete_max"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:"int64"}),(0,r.jsx)(s.td,{children:"Longest time between a TaskRun being started and completed"})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"start_to_complete_avg"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:"int64"}),(0,r.jsx)(s.td,{children:"Average time between a TaskRun being started and completed"})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"total_completed"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:"int64"}),(0,r.jsx)(s.td,{children:"Total number of TaskRun's that reached the TASK_SUCCESS state"})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"total_errored"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:"int64"}),(0,r.jsx)(s.td,{children:"Total number of TaskRun's that reached the TASK_ERROR state"})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"total_started"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:"int64"}),(0,r.jsx)(s.td,{children:"Total number of TaskRun's that transitioned to the TASK_RUNNING state"})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"total_scheduled"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:"int64"}),(0,r.jsx)(s.td,{children:"Total number of TaskRun's that were scheduled"})]})]})]}),"\n",(0,r.jsxs)(s.h3,{id:"taskdefmetricsqueryrequest",children:["Message ",(0,r.jsx)(s.code,{children:"TaskDefMetricsQueryRequest"})]}),"\n",(0,r.jsx)(s.p,{children:"Query to retrieve a specific TaskDef Metrics Window."}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Field"}),(0,r.jsx)(s.th,{children:"Label"}),(0,r.jsx)(s.th,{children:"Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsxs)(s.tbody,{children:[(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"window_start"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:"google.protobuf.Timestamp"}),(0,r.jsxs)(s.td,{children:["Return the window ",(0,r.jsx)(s.em,{children:"containing"})," this timestamp. The window start is not guaranteed to align perfectly with the request."]})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"window_type"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#metricswindowlength",children:"MetricsWindowLength"})}),(0,r.jsx)(s.td,{children:"The window size"})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"task_def_name"})}),(0,r.jsx)(s.td,{children:"optional"}),(0,r.jsx)(s.td,{children:"string"}),(0,r.jsx)(s.td,{children:"The name of the specific TaskDef for which we are calculating metrics."})]})]})]}),"\n",(0,r.jsxs)(s.h3,{id:"taskrunidlist",children:["Message ",(0,r.jsx)(s.code,{children:"TaskRunIdList"})]}),"\n",(0,r.jsx)(s.p,{children:"List of TaskRun ID's."}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Field"}),(0,r.jsx)(s.th,{children:"Label"}),(0,r.jsx)(s.th,{children:"Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsxs)(s.tbody,{children:[(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"results"})}),(0,r.jsx)(s.td,{children:"repeated"}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#taskrunid",children:"TaskRunId"})}),(0,r.jsx)(s.td,{children:"The resulting object id's."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"bookmark"})}),(0,r.jsx)(s.td,{children:"optional"}),(0,r.jsx)(s.td,{children:"bytes"}),(0,r.jsx)(s.td,{children:"The bookmark can be used for cursor-based pagination. If it is null, the server has returned all results. If it is set, you can pass it into your next request to resume searching where your previous request left off."})]})]})]}),"\n",(0,r.jsxs)(s.h3,{id:"taskrunlist",children:["Message ",(0,r.jsx)(s.code,{children:"TaskRunList"})]}),"\n",(0,r.jsx)(s.p,{children:"A list of TaskRun's"}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Field"}),(0,r.jsx)(s.th,{children:"Label"}),(0,r.jsx)(s.th,{children:"Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsx)(s.tbody,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"results"})}),(0,r.jsx)(s.td,{children:"repeated"}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#taskrun",children:"TaskRun"})}),(0,r.jsx)(s.td,{children:"A list of TaskRun Objects"})]})})]}),"\n",(0,r.jsxs)(s.h3,{id:"taskworkergroup",children:["Message ",(0,r.jsx)(s.code,{children:"TaskWorkerGroup"})]}),"\n",(0,r.jsx)(s.p,{children:"Describes all workers registered for a specific TaskDef."}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Field"}),(0,r.jsx)(s.th,{children:"Label"}),(0,r.jsx)(s.th,{children:"Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsxs)(s.tbody,{children:[(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"id"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#taskworkergroupid",children:"TaskWorkerGroupId"})}),(0,r.jsx)(s.td,{children:"Identifier for the group."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"created_at"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:"google.protobuf.Timestamp"}),(0,r.jsx)(s.td,{children:"Timestamp indicating when the worker group was initially registered."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"task_workers"})}),(0,r.jsx)(s.td,{children:"map"}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#taskworkergrouptaskworkersentry",children:"TaskWorkerGroup.TaskWorkersEntry"})}),(0,r.jsx)(s.td,{children:"Metadata grouped by ClientId string."})]})]})]}),"\n",(0,r.jsxs)(s.h3,{id:"taskworkergrouptaskworkersentry",children:["Message ",(0,r.jsx)(s.code,{children:"TaskWorkerGroup.TaskWorkersEntry"})]}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Field"}),(0,r.jsx)(s.th,{children:"Label"}),(0,r.jsx)(s.th,{children:"Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsxs)(s.tbody,{children:[(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"key"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:"string"}),(0,r.jsx)(s.td,{})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"value"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#taskworkermetadata",children:"TaskWorkerMetadata"})}),(0,r.jsx)(s.td,{})]})]})]}),"\n",(0,r.jsxs)(s.h3,{id:"taskworkerheartbeatrequest",children:["Message ",(0,r.jsx)(s.code,{children:"TaskWorkerHeartBeatRequest"})]}),"\n",(0,r.jsx)(s.p,{children:"Message used by Task Worker to register itself to the server and ask for assignments of\nservers to poll."}),"\n",(0,r.jsx)(s.p,{children:"Used by the Task Worker SDK; generally, you shouldn't have to touch this manually."}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Field"}),(0,r.jsx)(s.th,{children:"Label"}),(0,r.jsx)(s.th,{children:"Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsxs)(s.tbody,{children:[(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"client_id"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:"string"}),(0,r.jsx)(s.td,{})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"task_def_id"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#taskdefid",children:"TaskDefId"})}),(0,r.jsx)(s.td,{})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"listener_name"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:"string"}),(0,r.jsx)(s.td,{})]})]})]}),"\n",(0,r.jsxs)(s.h3,{id:"taskworkermetadata",children:["Message ",(0,r.jsx)(s.code,{children:"TaskWorkerMetadata"})]}),"\n",(0,r.jsx)(s.p,{children:"Describes a specific task worker"}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Field"}),(0,r.jsx)(s.th,{children:"Label"}),(0,r.jsx)(s.th,{children:"Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsxs)(s.tbody,{children:[(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"task_worker_id"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:"string"}),(0,r.jsx)(s.td,{children:"User-defined identifier for the worker."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"latest_heartbeat"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:"google.protobuf.Timestamp"}),(0,r.jsx)(s.td,{children:"Timestamp indicating the last heartbeat sent by the worker."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"hosts"})}),(0,r.jsx)(s.td,{children:"repeated"}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#lhhostinfo",children:"LHHostInfo"})}),(0,r.jsx)(s.td,{children:"The host(s) where the worker is polling tasks"})]})]})]}),"\n",(0,r.jsxs)(s.h3,{id:"tenantidlist",children:["Message ",(0,r.jsx)(s.code,{children:"TenantIdList"})]}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Field"}),(0,r.jsx)(s.th,{children:"Label"}),(0,r.jsx)(s.th,{children:"Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsxs)(s.tbody,{children:[(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"results"})}),(0,r.jsx)(s.td,{children:"repeated"}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#tenantid",children:"TenantId"})}),(0,r.jsx)(s.td,{children:"The resulting object id's."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"bookmark"})}),(0,r.jsx)(s.td,{children:"optional"}),(0,r.jsx)(s.td,{children:"bytes"}),(0,r.jsx)(s.td,{children:"Bookmark for cursor-based pagination; pass if applicable."})]})]})]}),"\n",(0,r.jsxs)(s.h3,{id:"usertaskdefidlist",children:["Message ",(0,r.jsx)(s.code,{children:"UserTaskDefIdList"})]}),"\n",(0,r.jsx)(s.p,{children:"List of UserTaskDef Id's."}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Field"}),(0,r.jsx)(s.th,{children:"Label"}),(0,r.jsx)(s.th,{children:"Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsxs)(s.tbody,{children:[(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"results"})}),(0,r.jsx)(s.td,{children:"repeated"}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#usertaskdefid",children:"UserTaskDefId"})}),(0,r.jsx)(s.td,{children:"The resulting object id's."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"bookmark"})}),(0,r.jsx)(s.td,{children:"optional"}),(0,r.jsx)(s.td,{children:"bytes"}),(0,r.jsx)(s.td,{children:"The bookmark can be used for cursor-based pagination. If it is null, the server has returned all results. If it is set, you can pass it into your next request to resume searching where your previous request left off."})]})]})]}),"\n",(0,r.jsxs)(s.h3,{id:"usertaskrunidlist",children:["Message ",(0,r.jsx)(s.code,{children:"UserTaskRunIdList"})]}),"\n",(0,r.jsx)(s.p,{children:"A list of UserTaskRun Id's"}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Field"}),(0,r.jsx)(s.th,{children:"Label"}),(0,r.jsx)(s.th,{children:"Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsxs)(s.tbody,{children:[(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"results"})}),(0,r.jsx)(s.td,{children:"repeated"}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#usertaskrunid",children:"UserTaskRunId"})}),(0,r.jsx)(s.td,{children:"The resulting object id's."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"bookmark"})}),(0,r.jsx)(s.td,{children:"optional"}),(0,r.jsx)(s.td,{children:"bytes"}),(0,r.jsx)(s.td,{children:"The bookmark can be used for cursor-based pagination. If it is null, the server has returned all results. If it is set, you can pass it into your next request to resume searching where your previous request left off."})]})]})]}),"\n",(0,r.jsxs)(s.h3,{id:"usertaskrunlist",children:["Message ",(0,r.jsx)(s.code,{children:"UserTaskRunList"})]}),"\n",(0,r.jsx)(s.p,{children:"List of UserTaskRuns"}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Field"}),(0,r.jsx)(s.th,{children:"Label"}),(0,r.jsx)(s.th,{children:"Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsx)(s.tbody,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"results"})}),(0,r.jsx)(s.td,{children:"repeated"}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#usertaskrun",children:"UserTaskRun"})}),(0,r.jsx)(s.td,{children:"A list of UserTaskRun Objects"})]})})]}),"\n",(0,r.jsxs)(s.h3,{id:"variableidlist",children:["Message ",(0,r.jsx)(s.code,{children:"VariableIdList"})]}),"\n",(0,r.jsx)(s.p,{children:"This is a list of Variable ID's."}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Field"}),(0,r.jsx)(s.th,{children:"Label"}),(0,r.jsx)(s.th,{children:"Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsxs)(s.tbody,{children:[(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"results"})}),(0,r.jsx)(s.td,{children:"repeated"}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#variableid",children:"VariableId"})}),(0,r.jsx)(s.td,{children:"The resulting object id's."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"bookmark"})}),(0,r.jsx)(s.td,{children:"optional"}),(0,r.jsx)(s.td,{children:"bytes"}),(0,r.jsx)(s.td,{children:"The bookmark can be used for cursor-based pagination. If it is null, the server has returned all results. If it is set, you can pass it into your next request to resume searching where your previous request left off."})]})]})]}),"\n",(0,r.jsxs)(s.h3,{id:"variablelist",children:["Message ",(0,r.jsx)(s.code,{children:"VariableList"})]}),"\n",(0,r.jsx)(s.p,{children:"A list of Variables."}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Field"}),(0,r.jsx)(s.th,{children:"Label"}),(0,r.jsx)(s.th,{children:"Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsx)(s.tbody,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"results"})}),(0,r.jsx)(s.td,{children:"repeated"}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#variable",children:"Variable"})}),(0,r.jsx)(s.td,{children:"A list of Variable objects."})]})})]}),"\n",(0,r.jsxs)(s.h3,{id:"variablematch",children:["Message ",(0,r.jsx)(s.code,{children:"VariableMatch"})]}),"\n",(0,r.jsx)(s.p,{children:"Used by a SearchWfRunRequest to filter WfRun's and only return those whose Variable's\nmatch a certain filter."}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Field"}),(0,r.jsx)(s.th,{children:"Label"}),(0,r.jsx)(s.th,{children:"Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsxs)(s.tbody,{children:[(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"var_name"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:"string"}),(0,r.jsx)(s.td,{children:"The name of the variable to inspect."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"value"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#variablevalue",children:"VariableValue"})}),(0,r.jsx)(s.td,{children:"The value that the Variable must have in order to satisfy this VariableMatch"})]})]})]}),"\n",(0,r.jsxs)(s.h3,{id:"wfrunidlist",children:["Message ",(0,r.jsx)(s.code,{children:"WfRunIdList"})]}),"\n",(0,r.jsx)(s.p,{children:"List of WfRun Id's"}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Field"}),(0,r.jsx)(s.th,{children:"Label"}),(0,r.jsx)(s.th,{children:"Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsxs)(s.tbody,{children:[(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"results"})}),(0,r.jsx)(s.td,{children:"repeated"}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#wfrunid",children:"WfRunId"})}),(0,r.jsx)(s.td,{children:"The resulting object id's."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"bookmark"})}),(0,r.jsx)(s.td,{children:"optional"}),(0,r.jsx)(s.td,{children:"bytes"}),(0,r.jsx)(s.td,{children:"The bookmark can be used for cursor-based pagination. If it is null, the server has returned all results. If it is set, you can pass it into your next request to resume searching where your previous request left off."})]})]})]}),"\n",(0,r.jsxs)(s.h3,{id:"wfspecidlist",children:["Message ",(0,r.jsx)(s.code,{children:"WfSpecIdList"})]}),"\n",(0,r.jsx)(s.p,{children:"List of WfSpec Id's."}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Field"}),(0,r.jsx)(s.th,{children:"Label"}),(0,r.jsx)(s.th,{children:"Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsxs)(s.tbody,{children:[(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"results"})}),(0,r.jsx)(s.td,{children:"repeated"}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#wfspecid",children:"WfSpecId"})}),(0,r.jsx)(s.td,{children:"The resulting object id's."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"bookmark"})}),(0,r.jsx)(s.td,{children:"optional"}),(0,r.jsx)(s.td,{children:"bytes"}),(0,r.jsx)(s.td,{children:"The bookmark can be used for cursor-based pagination. If it is null, the server has returned all results. If it is set, you can pass it into your next request to resume searching where your previous request left off."})]})]})]}),"\n",(0,r.jsxs)(s.h3,{id:"wfspecmetrics",children:["Message ",(0,r.jsx)(s.code,{children:"WfSpecMetrics"})]}),"\n",(0,r.jsx)(s.p,{children:"Metrics for a WfSpec in a specific time window"}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Field"}),(0,r.jsx)(s.th,{children:"Label"}),(0,r.jsx)(s.th,{children:"Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsxs)(s.tbody,{children:[(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"wf_spec_id"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#wfspecid",children:"WfSpecId"})}),(0,r.jsx)(s.td,{children:"The WfSpecId that these metrics analyze"})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"window_start"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:"google.protobuf.Timestamp"}),(0,r.jsx)(s.td,{children:"The time that the window started"})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"type"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#metricswindowlength",children:"MetricsWindowLength"})}),(0,r.jsx)(s.td,{children:"The length of the window"})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"total_started"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:"int64"}),(0,r.jsx)(s.td,{children:"Total number of WfRun's created for this WfSpec"})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"total_completed"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:"int64"}),(0,r.jsx)(s.td,{children:"Total number of WfRun's that reached the COMPLETED state"})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"total_errored"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:"int64"}),(0,r.jsx)(s.td,{children:"Total number of WfRun's that reached the ERROR state"})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"start_to_complete_max"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:"int64"}),(0,r.jsx)(s.td,{children:"Longest time between a WfRun being started and reaching the COMPLETED state"})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"start_to_complete_avg"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:"int64"}),(0,r.jsx)(s.td,{children:"Average time that a WfRun took to reach the COMPLETED state"})]})]})]}),"\n",(0,r.jsxs)(s.h3,{id:"wfspecmetricsqueryrequest",children:["Message ",(0,r.jsx)(s.code,{children:"WfSpecMetricsQueryRequest"})]}),"\n",(0,r.jsx)(s.p,{children:"Query to retrieve a specific WfSpec Metrics Window."}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Field"}),(0,r.jsx)(s.th,{children:"Label"}),(0,r.jsx)(s.th,{children:"Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsxs)(s.tbody,{children:[(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"wf_spec_id"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#wfspecid",children:"WfSpecId"})}),(0,r.jsx)(s.td,{children:"WfSpecId of metrics to get."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"window_start"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:"google.protobuf.Timestamp"}),(0,r.jsxs)(s.td,{children:["Return the window ",(0,r.jsx)(s.em,{children:"containing"})," this timestamp. The window start is not guaranteed to align perfectly with the request."]})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"window_length"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#metricswindowlength",children:"MetricsWindowLength"})}),(0,r.jsx)(s.td,{children:"The window size"})]})]})]}),"\n",(0,r.jsxs)(s.h3,{id:"taskdef",children:["Message ",(0,r.jsx)(s.code,{children:"TaskDef"})]}),"\n",(0,r.jsx)(s.p,{children:"A TaskDef defines a blueprint for a TaskRun that can be dispatched to Task Workers."}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Field"}),(0,r.jsx)(s.th,{children:"Label"}),(0,r.jsx)(s.th,{children:"Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsxs)(s.tbody,{children:[(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"id"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#taskdefid",children:"TaskDefId"})}),(0,r.jsx)(s.td,{children:"The ID of this TaskDef."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"input_vars"})}),(0,r.jsx)(s.td,{children:"repeated"}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#variabledef",children:"VariableDef"})}),(0,r.jsx)(s.td,{children:"The input variables required to execute this TaskDef."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"created_at"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:"google.protobuf.Timestamp"}),(0,r.jsx)(s.td,{children:"The time at which this TaskDef was created."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"schema_output"})}),(0,r.jsx)(s.td,{children:"optional"}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#taskdefoutputschema",children:"TaskDefOutputSchema"})}),(0,r.jsx)(s.td,{children:"Schema that validates the TaskDef's output"})]})]})]}),"\n",(0,r.jsxs)(s.h3,{id:"taskdefoutputschema",children:["Message ",(0,r.jsx)(s.code,{children:"TaskDefOutputSchema"})]}),"\n",(0,r.jsx)(s.p,{children:"Schema that validates the TaskDef's output"}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Field"}),(0,r.jsx)(s.th,{children:"Label"}),(0,r.jsx)(s.th,{children:"Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsx)(s.tbody,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"value_def"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#variabledef",children:"VariableDef"})}),(0,r.jsx)(s.td,{children:"The definition for the output content"})]})})]}),"\n",(0,r.jsxs)(s.h3,{id:"lhtaskerror",children:["Message ",(0,r.jsx)(s.code,{children:"LHTaskError"})]}),"\n",(0,r.jsx)(s.p,{children:"Message denoting a TaskRun failed for technical reasons."}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Field"}),(0,r.jsx)(s.th,{children:"Label"}),(0,r.jsx)(s.th,{children:"Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsxs)(s.tbody,{children:[(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"type"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#lherrortype",children:"LHErrorType"})}),(0,r.jsx)(s.td,{children:"The technical error code."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"message"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:"string"}),(0,r.jsx)(s.td,{children:"Human readable message for debugging."})]})]})]}),"\n",(0,r.jsxs)(s.h3,{id:"lhtaskexception",children:["Message ",(0,r.jsx)(s.code,{children:"LHTaskException"})]}),"\n",(0,r.jsx)(s.p,{children:"Message denoting a TaskRun's execution signaled that something went wrong in the\nbusiness process, throwing a littlehorse 'EXCEPTION'."}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Field"}),(0,r.jsx)(s.th,{children:"Label"}),(0,r.jsx)(s.th,{children:"Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsxs)(s.tbody,{children:[(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"name"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:"string"}),(0,r.jsx)(s.td,{children:'The user-defined Failure name, for example, "credit-card-declined"'})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"message"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:"string"}),(0,r.jsx)(s.td,{children:"Human readadble description of the failure."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"content"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#variablevalue",children:"VariableValue"})}),(0,r.jsx)(s.td,{})]})]})]}),"\n",(0,r.jsxs)(s.h3,{id:"taskattempt",children:["Message ",(0,r.jsx)(s.code,{children:"TaskAttempt"})]}),"\n",(0,r.jsx)(s.p,{children:"A single time that a TaskRun was scheduled for execution on a Task Queue."}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Field"}),(0,r.jsx)(s.th,{children:"Label"}),(0,r.jsx)(s.th,{children:"Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsxs)(s.tbody,{children:[(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"log_output"})}),(0,r.jsx)(s.td,{children:"optional"}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#variablevalue",children:"VariableValue"})}),(0,r.jsxs)(s.td,{children:["Optional information provided by the Task Worker SDK for debugging. Usually, if set it contains a stacktrace or it contains information logged via ",(0,r.jsx)(s.code,{children:"WorkerContext#log()"}),"."]})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"schedule_time"})}),(0,r.jsx)(s.td,{children:"optional"}),(0,r.jsx)(s.td,{children:"google.protobuf.Timestamp"}),(0,r.jsx)(s.td,{children:"The time the TaskAttempt was scheduled on the Task Queue. Not set for a TaskAttempt that is in the TASK_PENDING status; for example, when waiting between retries with exponential backoff."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"start_time"})}),(0,r.jsx)(s.td,{children:"optional"}),(0,r.jsx)(s.td,{children:"google.protobuf.Timestamp"}),(0,r.jsx)(s.td,{children:"The time the TaskAttempt was pulled off the queue and sent to a TaskWorker."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"end_time"})}),(0,r.jsx)(s.td,{children:"optional"}),(0,r.jsx)(s.td,{children:"google.protobuf.Timestamp"}),(0,r.jsx)(s.td,{children:"The time the TaskAttempt was finished (either completed, reported as failed, or timed out)"})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"task_worker_id"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:"string"}),(0,r.jsx)(s.td,{children:"EXPERIMENTAL: the ID of the Task Worker who executed this TaskRun."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"task_worker_version"})}),(0,r.jsx)(s.td,{children:"optional"}),(0,r.jsx)(s.td,{children:"string"}),(0,r.jsx)(s.td,{children:"The version of the Task Worker that executed the TaskAttempt."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"status"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#taskstatus",children:"TaskStatus"})}),(0,r.jsx)(s.td,{children:"The status of this TaskAttempt."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"output"})}),(0,r.jsxs)(s.td,{children:["oneof ",(0,r.jsx)(s.code,{children:"result"})]}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#variablevalue",children:"VariableValue"})}),(0,r.jsx)(s.td,{children:"Denotes the Task Function executed properly and returned an output."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"error"})}),(0,r.jsxs)(s.td,{children:["oneof ",(0,r.jsx)(s.code,{children:"result"})]}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#lhtaskerror",children:"LHTaskError"})}),(0,r.jsx)(s.td,{children:"An unexpected technical error was encountered. May or may not be retriable."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"exception"})}),(0,r.jsxs)(s.td,{children:["oneof ",(0,r.jsx)(s.code,{children:"result"})]}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#lhtaskexception",children:"LHTaskException"})}),(0,r.jsx)(s.td,{children:"The Task Function encountered a business problem and threw a technical exception."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"masked_value"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:"bool"}),(0,r.jsx)(s.td,{children:"Indicates whether the result of the attempt field has been masked"})]})]})]}),"\n",(0,r.jsxs)(s.h3,{id:"tasknodereference",children:["Message ",(0,r.jsx)(s.code,{children:"TaskNodeReference"})]}),"\n",(0,r.jsx)(s.p,{children:"Reference to a NodeRun of type TASK which caused a TaskRun to be scheduled."}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Field"}),(0,r.jsx)(s.th,{children:"Label"}),(0,r.jsx)(s.th,{children:"Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsx)(s.tbody,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"node_run_id"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#noderunid",children:"NodeRunId"})}),(0,r.jsx)(s.td,{children:"The ID of the NodeRun which caused this TASK to be scheduled."})]})})]}),"\n",(0,r.jsxs)(s.h3,{id:"taskrun",children:["Message ",(0,r.jsx)(s.code,{children:"TaskRun"})]}),"\n",(0,r.jsx)(s.p,{children:"A TaskRun resents a single instance of a TaskDef being executed."}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Field"}),(0,r.jsx)(s.th,{children:"Label"}),(0,r.jsx)(s.th,{children:"Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsxs)(s.tbody,{children:[(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"id"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#taskrunid",children:"TaskRunId"})}),(0,r.jsx)(s.td,{children:"The ID of the TaskRun. Note that the TaskRunId contains the WfRunId."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"task_def_id"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#taskdefid",children:"TaskDefId"})}),(0,r.jsx)(s.td,{children:"The ID of the TaskDef being executed."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"attempts"})}),(0,r.jsx)(s.td,{children:"repeated"}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#taskattempt",children:"TaskAttempt"})}),(0,r.jsx)(s.td,{children:"All attempts scheduled for this TaskRun. A TaskAttempt represents an occurrence of the TaskRun being put on a Task Queue to be executed by the Task Workers."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"input_variables"})}),(0,r.jsx)(s.td,{children:"repeated"}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#varnameandval",children:"VarNameAndVal"})}),(0,r.jsx)(s.td,{children:"The input variables to pass into this TaskRun. Note that this is a list and not a map, because ordering matters. Depending on the language implementation, not every LittleHorse Task Worker SDK has the ability to determine the names of the variables from the method signature, so we provide both names and ordering."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"source"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#taskrunsource",children:"TaskRunSource"})}),(0,r.jsx)(s.td,{children:"The source (in the WfRun) that caused this TaskRun to be created. Currently, this can be either a TASK node, or a User Task Action Task Trigger in a USER_TASK node (such as a task used to send reminders)."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"scheduled_at"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:"google.protobuf.Timestamp"}),(0,r.jsx)(s.td,{children:"When the TaskRun was scheduled."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"status"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#taskstatus",children:"TaskStatus"})}),(0,r.jsx)(s.td,{children:"The status of the TaskRun."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"timeout_seconds"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:"int32"}),(0,r.jsx)(s.td,{children:"The timeout before LH considers a TaskAttempt to be timed out."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"total_attempts"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:"int32"}),(0,r.jsx)(s.td,{children:"The maximum number of attempts that may be scheduled for this TaskRun. NOTE: setting total_attempts to 1 means that there are no retries."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"exponential_backoff"})}),(0,r.jsx)(s.td,{children:"optional"}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#exponentialbackoffretrypolicy",children:"ExponentialBackoffRetryPolicy"})}),(0,r.jsx)(s.td,{children:"Optional backoff policy ."})]})]})]}),"\n",(0,r.jsxs)(s.h3,{id:"taskrunsource",children:["Message ",(0,r.jsx)(s.code,{children:"TaskRunSource"})]}),"\n",(0,r.jsx)(s.p,{children:"The source of a TaskRun; i.e. why it was scheduled."}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Field"}),(0,r.jsx)(s.th,{children:"Label"}),(0,r.jsx)(s.th,{children:"Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsxs)(s.tbody,{children:[(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"task_node"})}),(0,r.jsxs)(s.td,{children:["oneof ",(0,r.jsx)(s.code,{children:"task_run_source"})]}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#tasknodereference",children:"TaskNodeReference"})}),(0,r.jsx)(s.td,{children:"Reference to a NodeRun of type TASK which scheduled this TaskRun."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"user_task_trigger"})}),(0,r.jsxs)(s.td,{children:["oneof ",(0,r.jsx)(s.code,{children:"task_run_source"})]}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#usertasktriggerreference",children:"UserTaskTriggerReference"})}),(0,r.jsx)(s.td,{children:"Reference to the specific UserTaskRun trigger action which scheduled this TaskRun"})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"wf_spec_id"})}),(0,r.jsx)(s.td,{children:"optional"}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#wfspecid",children:"WfSpecId"})}),(0,r.jsx)(s.td,{children:"The ID of the WfSpec that is being executed. Always set in ScheduledTask.source so that the WorkerContext can know this information."})]})]})]}),"\n",(0,r.jsxs)(s.h3,{id:"varnameandval",children:["Message ",(0,r.jsx)(s.code,{children:"VarNameAndVal"})]}),"\n",(0,r.jsx)(s.p,{children:"A key-value pair of variable name and value."}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Field"}),(0,r.jsx)(s.th,{children:"Label"}),(0,r.jsx)(s.th,{children:"Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsxs)(s.tbody,{children:[(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"var_name"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:"string"}),(0,r.jsx)(s.td,{children:"The variable name."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"value"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#variablevalue",children:"VariableValue"})}),(0,r.jsx)(s.td,{children:"The value of the variable for this TaskRun."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"masked"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:"bool"}),(0,r.jsxs)(s.td,{children:["Indicates whether the content of the ",(0,r.jsx)(s.code,{children:"value"})," field has been masked"]})]})]})]}),"\n",(0,r.jsxs)(s.h3,{id:"assignusertaskrunrequest",children:["Message ",(0,r.jsx)(s.code,{children:"AssignUserTaskRunRequest"})]}),"\n",(0,r.jsx)(s.p,{children:"Re-Assigns a UserTaskRun to a specific userId or userGroup."}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Field"}),(0,r.jsx)(s.th,{children:"Label"}),(0,r.jsx)(s.th,{children:"Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsxs)(s.tbody,{children:[(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"user_task_run_id"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#usertaskrunid",children:"UserTaskRunId"})}),(0,r.jsx)(s.td,{children:"The UserTaskRun to assign to a new user_id or user_group."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"override_claim"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:"bool"}),(0,r.jsx)(s.td,{children:"If override_claim is set to false and the UserTaskRun is already assigned to a user_id, then the request throws a FAILED_PRECONDITION error. If set to true, then the old claim is overriden and the UserTaskRun is assigned to the new user."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"user_group"})}),(0,r.jsx)(s.td,{children:"optional"}),(0,r.jsx)(s.td,{children:"string"}),(0,r.jsx)(s.td,{children:"The new user_group to which the UserTaskRun is assigned. If not set, then the user_group of the UserTaskRun is actively unset by this request. At least one of the user_group and user_id must be set."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"user_id"})}),(0,r.jsx)(s.td,{children:"optional"}),(0,r.jsx)(s.td,{children:"string"}),(0,r.jsx)(s.td,{children:"The new user_id to which the UserTaskRun is assigned. If not set, then the user_id of the UserTaskRun is actively unset by this request. At least one of the user_group and user_id must be set."})]})]})]}),"\n",(0,r.jsxs)(s.h3,{id:"cancelusertaskrunrequest",children:["Message ",(0,r.jsx)(s.code,{children:"CancelUserTaskRunRequest"})]}),"\n",(0,r.jsx)(s.p,{children:"Cancels a UserTaskRun."}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Field"}),(0,r.jsx)(s.th,{children:"Label"}),(0,r.jsx)(s.th,{children:"Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsx)(s.tbody,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"user_task_run_id"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#usertaskrunid",children:"UserTaskRunId"})}),(0,r.jsx)(s.td,{children:"The id of the UserTaskRun to cancel."})]})})]}),"\n",(0,r.jsxs)(s.h3,{id:"completeusertaskrunrequest",children:["Message ",(0,r.jsx)(s.code,{children:"CompleteUserTaskRunRequest"})]}),"\n",(0,r.jsx)(s.p,{children:"Completes a UserTaskRun with provided values."}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Field"}),(0,r.jsx)(s.th,{children:"Label"}),(0,r.jsx)(s.th,{children:"Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsxs)(s.tbody,{children:[(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"user_task_run_id"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#usertaskrunid",children:"UserTaskRunId"})}),(0,r.jsx)(s.td,{children:"The id of UserTaskRun to complete."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"results"})}),(0,r.jsx)(s.td,{children:"map"}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#completeusertaskrunrequestresultsentry",children:"CompleteUserTaskRunRequest.ResultsEntry"})}),(0,r.jsx)(s.td,{children:"A map from UserTaskField.name to a VariableValue containing the results of the user filling out the form."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"user_id"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:"string"}),(0,r.jsx)(s.td,{children:"The ID of the user who executed the task."})]})]})]}),"\n",(0,r.jsxs)(s.h3,{id:"completeusertaskrunrequestresultsentry",children:["Message ",(0,r.jsx)(s.code,{children:"CompleteUserTaskRunRequest.ResultsEntry"})]}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Field"}),(0,r.jsx)(s.th,{children:"Label"}),(0,r.jsx)(s.th,{children:"Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsxs)(s.tbody,{children:[(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"key"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:"string"}),(0,r.jsx)(s.td,{})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"value"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#variablevalue",children:"VariableValue"})}),(0,r.jsx)(s.td,{})]})]})]}),"\n",(0,r.jsxs)(s.h3,{id:"saveusertaskrunprogressrequest",children:["Message ",(0,r.jsx)(s.code,{children:"SaveUserTaskRunProgressRequest"})]}),"\n",(0,r.jsxs)(s.p,{children:["Saves the results of a UserTaskRun and logs who saved the content.",(0,r.jsx)("br",{})]}),"\n",(0,r.jsxs)("li",{children:[" Throws FAILED_PRECONDITION if the UserTaskRun is in the ",(0,r.jsx)(s.code,{children:"DONE"})," or ",(0,r.jsx)(s.code,{children:"CANCELLED"})," state."]}),"\n",(0,r.jsxs)("li",{children:[" If ",(0,r.jsx)(s.code,{children:"policy"})," is set to ",(0,r.jsx)(s.code,{children:"FAIL_IF_CLAIMED_BY_OTHER"}),", returns ",(0,r.jsx)(s.code,{children:"FAILED_PRECONDITION"})," if the\n",(0,r.jsx)(s.code,{children:"user_id"})," field of the ",(0,r.jsx)(s.code,{children:"UserTaskRun"})," does not match the ",(0,r.jsx)(s.code,{children:"user_id"})," of the request."]}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Field"}),(0,r.jsx)(s.th,{children:"Label"}),(0,r.jsx)(s.th,{children:"Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsxs)(s.tbody,{children:[(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"user_task_run_id"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#usertaskrunid",children:"UserTaskRunId"})}),(0,r.jsx)(s.td,{children:"The id of UserTaskRun to save."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"results"})}),(0,r.jsx)(s.td,{children:"map"}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#saveusertaskrunprogressrequestresultsentry",children:"SaveUserTaskRunProgressRequest.ResultsEntry"})}),(0,r.jsx)(s.td,{children:"A map from UserTaskField.name to a VariableValue containing the results of the user filling out the form."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"user_id"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:"string"}),(0,r.jsx)(s.td,{children:"The ID of the user who saved the task."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"policy"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#saveusertaskrunprogressrequestsaveusertaskrunassignmentpolicy",children:"SaveUserTaskRunProgressRequest.SaveUserTaskRunAssignmentPolicy"})}),(0,r.jsxs)(s.td,{children:["Configures how to handle ",(0,r.jsx)(s.code,{children:"UserTaskRun"})," ownership when saving it."]})]})]})]}),"\n",(0,r.jsxs)(s.h3,{id:"saveusertaskrunprogressrequestresultsentry",children:["Message ",(0,r.jsx)(s.code,{children:"SaveUserTaskRunProgressRequest.ResultsEntry"})]}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Field"}),(0,r.jsx)(s.th,{children:"Label"}),(0,r.jsx)(s.th,{children:"Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsxs)(s.tbody,{children:[(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"key"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:"string"}),(0,r.jsx)(s.td,{})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"value"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#variablevalue",children:"VariableValue"})}),(0,r.jsx)(s.td,{})]})]})]}),"\n",(0,r.jsxs)(s.h3,{id:"usertaskdef",children:["Message ",(0,r.jsx)(s.code,{children:"UserTaskDef"})]}),"\n",(0,r.jsx)(s.p,{children:"UserTaskDef is the metadata blueprint for UserTaskRuns."}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Field"}),(0,r.jsx)(s.th,{children:"Label"}),(0,r.jsx)(s.th,{children:"Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsxs)(s.tbody,{children:[(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"name"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:"string"}),(0,r.jsxs)(s.td,{children:["The name of the ",(0,r.jsx)(s.code,{children:"UserTaskDef"})]})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"version"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:"int32"}),(0,r.jsxs)(s.td,{children:["The version of the ",(0,r.jsx)(s.code,{children:"UserTaskDef"}),". Only simple versioning is supported."]})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"description"})}),(0,r.jsx)(s.td,{children:"optional"}),(0,r.jsx)(s.td,{children:"string"}),(0,r.jsx)(s.td,{children:"Metadata field that does not impact WfRun execution. Useful for providing context on the UserTaskRun, for example when displaying it on a general-purpose task manager application."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"fields"})}),(0,r.jsx)(s.td,{children:"repeated"}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#usertaskfield",children:"UserTaskField"})}),(0,r.jsx)(s.td,{children:"These are the fields comprise the User Task. A User Task Manager application, or any application used to complete a UserTaskRun, should inspect these fields and display form entries for each one."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"created_at"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:"google.protobuf.Timestamp"}),(0,r.jsx)(s.td,{children:"The time the UserTaskRun was created."})]})]})]}),"\n",(0,r.jsxs)(s.h3,{id:"usertaskevent",children:["Message ",(0,r.jsx)(s.code,{children:"UserTaskEvent"})]}),"\n",(0,r.jsxs)(s.p,{children:["This is an event stored in the audit log of a ",(0,r.jsx)(s.code,{children:"UserTaskRun"})," purely for observability\npurposes."]}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Field"}),(0,r.jsx)(s.th,{children:"Label"}),(0,r.jsx)(s.th,{children:"Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsxs)(s.tbody,{children:[(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"time"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:"google.protobuf.Timestamp"}),(0,r.jsx)(s.td,{children:"the time the event occurred."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"task_executed"})}),(0,r.jsxs)(s.td,{children:["oneof ",(0,r.jsx)(s.code,{children:"event"})]}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#usertaskeventutetaskexecuted",children:"UserTaskEvent.UTETaskExecuted"})}),(0,r.jsx)(s.td,{children:"Denotes that a TaskRun was scheduled via a trigger."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"assigned"})}),(0,r.jsxs)(s.td,{children:["oneof ",(0,r.jsx)(s.code,{children:"event"})]}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#usertaskeventuteassigned",children:"UserTaskEvent.UTEAssigned"})}),(0,r.jsx)(s.td,{children:"Denotes that the UserTaskRun was assigned."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"cancelled"})}),(0,r.jsxs)(s.td,{children:["oneof ",(0,r.jsx)(s.code,{children:"event"})]}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#usertaskeventutecancelled",children:"UserTaskEvent.UTECancelled"})}),(0,r.jsx)(s.td,{children:"Denotes that the UserTaskRun was cancelled."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"saved"})}),(0,r.jsxs)(s.td,{children:["oneof ",(0,r.jsx)(s.code,{children:"event"})]}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#usertaskeventutesaved",children:"UserTaskEvent.UTESaved"})}),(0,r.jsxs)(s.td,{children:["Denotes that the ",(0,r.jsx)(s.code,{children:"UserTaskRun"})," was saved."]})]})]})]}),"\n",(0,r.jsxs)(s.h3,{id:"usertaskeventuteassigned",children:["Message ",(0,r.jsx)(s.code,{children:"UserTaskEvent.UTEAssigned"})]}),"\n",(0,r.jsx)(s.p,{children:"Message denoting that the UserTaskRun was assigned."}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Field"}),(0,r.jsx)(s.th,{children:"Label"}),(0,r.jsx)(s.th,{children:"Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsxs)(s.tbody,{children:[(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"old_user_id"})}),(0,r.jsx)(s.td,{children:"optional"}),(0,r.jsx)(s.td,{children:"string"}),(0,r.jsx)(s.td,{children:"The user_id before the ownership change, if set."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"old_user_group"})}),(0,r.jsx)(s.td,{children:"optional"}),(0,r.jsx)(s.td,{children:"string"}),(0,r.jsx)(s.td,{children:"The user_group before the ownership change, if set."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"new_user_id"})}),(0,r.jsx)(s.td,{children:"optional"}),(0,r.jsx)(s.td,{children:"string"}),(0,r.jsx)(s.td,{children:"The user_id after the ownership change, if set."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"new_user_group"})}),(0,r.jsx)(s.td,{children:"optional"}),(0,r.jsx)(s.td,{children:"string"}),(0,r.jsx)(s.td,{children:"The user_group after the ownership change, if set."})]})]})]}),"\n",(0,r.jsxs)(s.h3,{id:"usertaskeventutecancelled",children:["Message ",(0,r.jsx)(s.code,{children:"UserTaskEvent.UTECancelled"})]}),"\n",(0,r.jsxs)(s.p,{children:["Empty message used to denote that the ",(0,r.jsx)(s.code,{children:"UserTaskRun"})," was cancelled."]}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Field"}),(0,r.jsx)(s.th,{children:"Label"}),(0,r.jsx)(s.th,{children:"Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsx)(s.tbody,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"message"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:"string"}),(0,r.jsx)(s.td,{})]})})]}),"\n",(0,r.jsxs)(s.h3,{id:"usertaskeventutesaved",children:["Message ",(0,r.jsx)(s.code,{children:"UserTaskEvent.UTESaved"})]}),"\n",(0,r.jsxs)(s.p,{children:["Message to denote that the ",(0,r.jsx)(s.code,{children:"UserTaskRun"})," was saved."]}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Field"}),(0,r.jsx)(s.th,{children:"Label"}),(0,r.jsx)(s.th,{children:"Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsxs)(s.tbody,{children:[(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"user_id"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:"string"}),(0,r.jsx)(s.td,{children:"The user_id of the user who saved the UserTaskRun."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"results"})}),(0,r.jsx)(s.td,{children:"map"}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#usertaskeventutesavedresultsentry",children:"UserTaskEvent.UTESaved.ResultsEntry"})}),(0,r.jsx)(s.td,{children:"The results that were saved."})]})]})]}),"\n",(0,r.jsxs)(s.h3,{id:"usertaskeventutesavedresultsentry",children:["Message ",(0,r.jsx)(s.code,{children:"UserTaskEvent.UTESaved.ResultsEntry"})]}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Field"}),(0,r.jsx)(s.th,{children:"Label"}),(0,r.jsx)(s.th,{children:"Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsxs)(s.tbody,{children:[(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"key"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:"string"}),(0,r.jsx)(s.td,{})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"value"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#variablevalue",children:"VariableValue"})}),(0,r.jsx)(s.td,{})]})]})]}),"\n",(0,r.jsxs)(s.h3,{id:"usertaskeventutetaskexecuted",children:["Message ",(0,r.jsx)(s.code,{children:"UserTaskEvent.UTETaskExecuted"})]}),"\n",(0,r.jsxs)(s.p,{children:["Message to denote that a ",(0,r.jsx)(s.code,{children:"TaskRun"})," was scheduled by a trigger for this UserTaskRun."]}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Field"}),(0,r.jsx)(s.th,{children:"Label"}),(0,r.jsx)(s.th,{children:"Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsx)(s.tbody,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"task_run"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#taskrunid",children:"TaskRunId"})}),(0,r.jsxs)(s.td,{children:["The ",(0,r.jsx)(s.code,{children:"TaskRunId"})," of the scheduled ",(0,r.jsx)(s.code,{children:"TaskRun"})]})]})})]}),"\n",(0,r.jsxs)(s.h3,{id:"usertaskfield",children:["Message ",(0,r.jsx)(s.code,{children:"UserTaskField"})]}),"\n",(0,r.jsx)(s.p,{children:"A UserTaskField is a specific field of data to be entered into a UserTaskRun."}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Field"}),(0,r.jsx)(s.th,{children:"Label"}),(0,r.jsx)(s.th,{children:"Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsxs)(s.tbody,{children:[(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"name"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:"string"}),(0,r.jsx)(s.td,{children:"The name of the field. When a UserTaskRun is completed, the NodeOutput is a single-level JSON_OBJ. Each key is the name of the field. Must be unique."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"type"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#variabletype",children:"VariableType"})}),(0,r.jsx)(s.td,{children:"The type of the output. Must be a primitive type (STR, BOOL, INT, DOUBLE)."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"description"})}),(0,r.jsx)(s.td,{children:"optional"}),(0,r.jsx)(s.td,{children:"string"}),(0,r.jsx)(s.td,{children:"Optional description which can be displayed by the User Task UI application. Does not affect WfRun execution."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"display_name"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:"string"}),(0,r.jsx)(s.td,{children:"The name to be displayed by the User Task UI application. Does not affect WfRun execution."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"required"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:"bool"}),(0,r.jsx)(s.td,{children:"Whether this field is required for UserTaskRun completion."})]})]})]}),"\n",(0,r.jsxs)(s.h3,{id:"usertaskrun",children:["Message ",(0,r.jsx)(s.code,{children:"UserTaskRun"})]}),"\n",(0,r.jsxs)(s.p,{children:["A UserTaskRun is a running instance of a UserTaskDef. It is created when a\nThreadRun arrives at a Node of type ",(0,r.jsx)(s.code,{children:"USER_TASK"}),"."]}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Field"}),(0,r.jsx)(s.th,{children:"Label"}),(0,r.jsx)(s.th,{children:"Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsxs)(s.tbody,{children:[(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"id"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#usertaskrunid",children:"UserTaskRunId"})}),(0,r.jsx)(s.td,{children:"The ID of the UserTaskRun."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"user_task_def_id"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#usertaskdefid",children:"UserTaskDefId"})}),(0,r.jsx)(s.td,{children:"The ID of the UserTaskDef that this UserTaskRun comes from."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"user_group"})}),(0,r.jsx)(s.td,{children:"optional"}),(0,r.jsx)(s.td,{children:"string"}),(0,r.jsxs)(s.td,{children:["Denotes the UserTaskRun as belonging to a specific User Group.",(0,r.jsx)("br",{}),(0,r.jsx)("br",{}),"The ",(0,r.jsx)(s.code,{children:"user_group"})," does not refer to a group that is stored in LittleHorse; rather, it is the responsibility of the application to keep track of user/group identity and ensure that the user_group does indeed exist.",(0,r.jsx)("br",{}),(0,r.jsx)("br",{}),"Either ",(0,r.jsx)(s.code,{children:"user_id"})," or ",(0,r.jsx)(s.code,{children:"user_group"})," or both are set at any time."]})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"user_id"})}),(0,r.jsx)(s.td,{children:"optional"}),(0,r.jsx)(s.td,{children:"string"}),(0,r.jsxs)(s.td,{children:["Denotes the UserTaskRun as assigned to a specific User ID. If this is set, then the UserTaskRun is either in the ASSIGNED, DONE, or CANCELLED status.",(0,r.jsx)("br",{}),(0,r.jsx)("br",{}),"The ",(0,r.jsx)(s.code,{children:"user_id"})," does not refer to a User that is stored in LittleHorse; rather, it is the responsibility of the application to keep track of user identity and ensure that the user_id does indeed exist.",(0,r.jsx)("br",{}),(0,r.jsx)("br",{}),"Either ",(0,r.jsx)(s.code,{children:"user_id"})," or ",(0,r.jsx)(s.code,{children:"user_group"})," or both are set at any time."]})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"results"})}),(0,r.jsx)(s.td,{children:"map"}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#usertaskrunresultsentry",children:"UserTaskRun.ResultsEntry"})}),(0,r.jsxs)(s.td,{children:["The results of the UserTaskRun. Empty if the UserTaskRun has not yet been completed. Each key in this map is the ",(0,r.jsx)(s.code,{children:"name"})," of a corresponding ",(0,r.jsx)(s.code,{children:"UserTaskField"})," on the UserTaskDef."]})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"status"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#usertaskrunstatus",children:"UserTaskRunStatus"})}),(0,r.jsx)(s.td,{children:"Status of the UserTaskRun. Can be UNASSIGNED, ASSIGNED, DONE, or CANCELLED."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"events"})}),(0,r.jsx)(s.td,{children:"repeated"}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#usertaskevent",children:"UserTaskEvent"})}),(0,r.jsx)(s.td,{children:"A list of events that have happened. Used for auditing information."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"notes"})}),(0,r.jsx)(s.td,{children:"optional"}),(0,r.jsx)(s.td,{children:"string"}),(0,r.jsxs)(s.td,{children:["Notes about this UserTaskRun that are ",(0,r.jsx)(s.strong,{children:"specific to the WfRun"}),". These notes are set by the WfSpec based on variables inside the specific ",(0,r.jsx)(s.code,{children:"WfRun"})," and are intended to be displayed on the User Task Manager application. They do not affect WfRun execution."]})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"scheduled_time"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:"google.protobuf.Timestamp"}),(0,r.jsx)(s.td,{children:"The time that the UserTaskRun was created/scheduled."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"node_run_id"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#noderunid",children:"NodeRunId"})}),(0,r.jsx)(s.td,{children:"The NodeRun with which the UserTaskRun is associated."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"epoch"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:"int32"}),(0,r.jsx)(s.td,{children:"Current observed epoch of the UserTaskRun, related to the number of times it has been updated or re-assigned. Used internally to implement automated reassignment and reminder tasks."})]})]})]}),"\n",(0,r.jsxs)(s.h3,{id:"usertaskrunresultsentry",children:["Message ",(0,r.jsx)(s.code,{children:"UserTaskRun.ResultsEntry"})]}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Field"}),(0,r.jsx)(s.th,{children:"Label"}),(0,r.jsx)(s.th,{children:"Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsxs)(s.tbody,{children:[(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"key"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:"string"}),(0,r.jsx)(s.td,{})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"value"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#variablevalue",children:"VariableValue"})}),(0,r.jsx)(s.td,{})]})]})]}),"\n",(0,r.jsxs)(s.h3,{id:"usertasktriggerreference",children:["Message ",(0,r.jsx)(s.code,{children:"UserTaskTriggerReference"})]}),"\n",(0,r.jsx)(s.p,{children:'All TaskRun\'s have a "trigger reference" which refers to the WfRun Element that\ncaused the TaskRun to be scheduled. For example, a TaskRun on a regular TASK_NODE\nhas a TaskNodeReference.'}),"\n",(0,r.jsx)(s.p,{children:'The UserTaskTriggerReference serves as the "Trigger Reference" for a TaskRun that\nwas scheduled by a lifecycle hook on a UserTaskRun (eg. a reminder task).'}),"\n",(0,r.jsx)(s.p,{children:"The UserTaskTriggerReference is most useful in the WorkerContext of the Task Worker\nSDK, which allows the Task Method to determine where the TaskRun comes from."}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Field"}),(0,r.jsx)(s.th,{children:"Label"}),(0,r.jsx)(s.th,{children:"Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsxs)(s.tbody,{children:[(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"node_run_id"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#noderunid",children:"NodeRunId"})}),(0,r.jsx)(s.td,{children:"Is the NodeRun that the UserTaskRun belongs to."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"user_task_event_number"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:"int32"}),(0,r.jsxs)(s.td,{children:["Is the index in the ",(0,r.jsx)(s.code,{children:"events"})," field of the UserTaskRun that the TaskRun corresponds to."]})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"user_id"})}),(0,r.jsx)(s.td,{children:"optional"}),(0,r.jsx)(s.td,{children:"string"}),(0,r.jsx)(s.td,{children:"Is the user_id that the UserTaskRun is assigned to. Unset if UserTaskRun is not asigned to a specific user_id."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"user_group"})}),(0,r.jsx)(s.td,{children:"optional"}),(0,r.jsx)(s.td,{children:"string"}),(0,r.jsx)(s.td,{children:"Is the user_id that the UserTaskRun is assigned to. Unset if UserTaskRun is not asigned to a specific user_id."})]})]})]}),"\n",(0,r.jsxs)(s.h3,{id:"variable",children:["Message ",(0,r.jsx)(s.code,{children:"Variable"})]}),"\n",(0,r.jsx)(s.p,{children:"A Variable is an instance of a variable assigned to a WfRun."}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Field"}),(0,r.jsx)(s.th,{children:"Label"}),(0,r.jsx)(s.th,{children:"Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsxs)(s.tbody,{children:[(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"id"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#variableid",children:"VariableId"})}),(0,r.jsx)(s.td,{children:"ID of this Variable. Note that the VariableId contains the relevant WfRunId inside it, the threadRunNumber, and the name of the Variabe."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"value"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#variablevalue",children:"VariableValue"})}),(0,r.jsx)(s.td,{children:"The value of this Variable."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"created_at"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:"google.protobuf.Timestamp"}),(0,r.jsx)(s.td,{children:"When the Variable was created."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"wf_spec_id"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#wfspecid",children:"WfSpecId"})}),(0,r.jsx)(s.td,{children:"The ID of the WfSpec that this Variable belongs to."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"masked"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:"bool"}),(0,r.jsx)(s.td,{children:"Marks a variable to show masked values"})]})]})]}),"\n",(0,r.jsxs)(s.h3,{id:"variablevalue",children:["Message ",(0,r.jsx)(s.code,{children:"VariableValue"})]}),"\n",(0,r.jsx)(s.p,{children:"VariableValue is a structure containing a value in LittleHorse. It can be\nused to pass input variables into a WfRun/ThreadRun/TaskRun/etc, as output\nfrom a TaskRun, as the value of a WfRun's Variable, etc."}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Field"}),(0,r.jsx)(s.th,{children:"Label"}),(0,r.jsx)(s.th,{children:"Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsxs)(s.tbody,{children:[(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"json_obj"})}),(0,r.jsxs)(s.td,{children:["oneof ",(0,r.jsx)(s.code,{children:"value"})]}),(0,r.jsx)(s.td,{children:"string"}),(0,r.jsx)(s.td,{children:"A String representing a serialized json object."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"json_arr"})}),(0,r.jsxs)(s.td,{children:["oneof ",(0,r.jsx)(s.code,{children:"value"})]}),(0,r.jsx)(s.td,{children:"string"}),(0,r.jsx)(s.td,{children:"A String representing a serialized json list."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"double"})}),(0,r.jsxs)(s.td,{children:["oneof ",(0,r.jsx)(s.code,{children:"value"})]}),(0,r.jsx)(s.td,{children:"double"}),(0,r.jsx)(s.td,{children:"A 64-bit floating point number."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"bool"})}),(0,r.jsxs)(s.td,{children:["oneof ",(0,r.jsx)(s.code,{children:"value"})]}),(0,r.jsx)(s.td,{children:"bool"}),(0,r.jsx)(s.td,{children:"A boolean."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"str"})}),(0,r.jsxs)(s.td,{children:["oneof ",(0,r.jsx)(s.code,{children:"value"})]}),(0,r.jsx)(s.td,{children:"string"}),(0,r.jsx)(s.td,{children:"A string."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"int"})}),(0,r.jsxs)(s.td,{children:["oneof ",(0,r.jsx)(s.code,{children:"value"})]}),(0,r.jsx)(s.td,{children:"int64"}),(0,r.jsxs)(s.td,{children:["The ",(0,r.jsx)(s.code,{children:"INT"})," variable type is stored as a 64-bit integer. The ",(0,r.jsx)(s.code,{children:"INT"})," can be cast to a ",(0,r.jsx)(s.code,{children:"DOUBLE"}),"."]})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"bytes"})}),(0,r.jsxs)(s.td,{children:["oneof ",(0,r.jsx)(s.code,{children:"value"})]}),(0,r.jsx)(s.td,{children:"bytes"}),(0,r.jsx)(s.td,{children:"An arbitrary String of bytes."})]})]})]}),"\n",(0,r.jsxs)(s.h3,{id:"failurebeinghandled",children:["Message ",(0,r.jsx)(s.code,{children:"FailureBeingHandled"})]}),"\n",(0,r.jsx)(s.p,{children:"Points to the Failure that is currently being handled in the ThreadRun."}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Field"}),(0,r.jsx)(s.th,{children:"Label"}),(0,r.jsx)(s.th,{children:"Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsxs)(s.tbody,{children:[(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"thread_run_number"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:"int32"}),(0,r.jsx)(s.td,{children:"The thread run number."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"node_run_position"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:"int32"}),(0,r.jsx)(s.td,{children:"The position of the NodeRun causing the failure."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"failure_number"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:"int32"}),(0,r.jsx)(s.td,{children:"The number of the failure."})]})]})]}),"\n",(0,r.jsxs)(s.h3,{id:"handlingfailurehaltreason",children:["Message ",(0,r.jsx)(s.code,{children:"HandlingFailureHaltReason"})]}),"\n",(0,r.jsx)(s.p,{children:"A Halt Reason denoting that a ThreadRun is halted while a Failure Handler is being run."}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Field"}),(0,r.jsx)(s.th,{children:"Label"}),(0,r.jsx)(s.th,{children:"Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsx)(s.tbody,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"handler_thread_id"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:"int32"}),(0,r.jsx)(s.td,{children:"The ID of the Failure Handler ThreadRun."})]})})]}),"\n",(0,r.jsxs)(s.h3,{id:"interrupted",children:["Message ",(0,r.jsx)(s.code,{children:"Interrupted"})]}),"\n",(0,r.jsx)(s.p,{children:"A Halt Reason denoting that a ThreadRun is halted because it is waiting for the\ninterrupt handler threadRun to run."}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Field"}),(0,r.jsx)(s.th,{children:"Label"}),(0,r.jsx)(s.th,{children:"Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsx)(s.tbody,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"interrupt_thread_id"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:"int32"}),(0,r.jsx)(s.td,{children:"The ID of the Interrupt Handler ThreadRun."})]})})]}),"\n",(0,r.jsxs)(s.h3,{id:"manualhalt",children:["Message ",(0,r.jsx)(s.code,{children:"ManualHalt"})]}),"\n",(0,r.jsxs)(s.p,{children:["A Halt Reason denoting that a ThreadRun was halted manually, via the ",(0,r.jsx)(s.code,{children:"rpc StopWfRun"})," request."]}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Field"}),(0,r.jsx)(s.th,{children:"Label"}),(0,r.jsx)(s.th,{children:"Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsx)(s.tbody,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"meaning_of_life"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:"bool"}),(0,r.jsx)(s.td,{children:"Nothing to store."})]})})]}),"\n",(0,r.jsxs)(s.h3,{id:"parenthalted",children:["Message ",(0,r.jsx)(s.code,{children:"ParentHalted"})]}),"\n",(0,r.jsx)(s.p,{children:"A Halt Reason denoting that a ThreadRun is halted because its parent is also HALTED."}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Field"}),(0,r.jsx)(s.th,{children:"Label"}),(0,r.jsx)(s.th,{children:"Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsx)(s.tbody,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"parent_thread_id"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:"int32"}),(0,r.jsx)(s.td,{children:"The ID of the halted parent."})]})})]}),"\n",(0,r.jsxs)(s.h3,{id:"pendingfailurehandler",children:["Message ",(0,r.jsx)(s.code,{children:"PendingFailureHandler"})]}),"\n",(0,r.jsx)(s.p,{children:"Represents a Failure Handler that is pending to be run."}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Field"}),(0,r.jsx)(s.th,{children:"Label"}),(0,r.jsx)(s.th,{children:"Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsxs)(s.tbody,{children:[(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"failed_thread_run"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:"int32"}),(0,r.jsx)(s.td,{children:"The ThreadRun that failed."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"handler_spec_name"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:"string"}),(0,r.jsx)(s.td,{children:"The name of the ThreadSpec to run to handle the failure."})]})]})]}),"\n",(0,r.jsxs)(s.h3,{id:"pendingfailurehandlerhaltreason",children:["Message ",(0,r.jsx)(s.code,{children:"PendingFailureHandlerHaltReason"})]}),"\n",(0,r.jsxs)(s.p,{children:["A Halt Reason denoting that a ThreadRun is halted while a Failure Handler is ",(0,r.jsx)(s.em,{children:"enqueued"})," to be\nrun."]}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Field"}),(0,r.jsx)(s.th,{children:"Label"}),(0,r.jsx)(s.th,{children:"Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsx)(s.tbody,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"node_run_position"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:"int32"}),(0,r.jsx)(s.td,{children:"The position of the NodeRun which threw the failure."})]})})]}),"\n",(0,r.jsxs)(s.h3,{id:"pendinginterrupt",children:["Message ",(0,r.jsx)(s.code,{children:"PendingInterrupt"})]}),"\n",(0,r.jsx)(s.p,{children:"Represents an ExternalEvent that has a registered Interrupt Handler for it\nand which is pending to be sent to the relevant ThreadRun's."}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Field"}),(0,r.jsx)(s.th,{children:"Label"}),(0,r.jsx)(s.th,{children:"Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsxs)(s.tbody,{children:[(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"external_event_id"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#externaleventid",children:"ExternalEventId"})}),(0,r.jsx)(s.td,{children:"The ID of the ExternalEvent triggering the Interrupt."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"handler_spec_name"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:"string"}),(0,r.jsx)(s.td,{children:"The name of the ThreadSpec to run to handle the Interrupt."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"interrupted_thread_id"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:"int32"}),(0,r.jsx)(s.td,{children:"The ID of the ThreadRun to interrupt. Must wait for this ThreadRun to be HALTED before running the Interrupt Handler."})]})]})]}),"\n",(0,r.jsxs)(s.h3,{id:"pendinginterrupthaltreason",children:["Message ",(0,r.jsx)(s.code,{children:"PendingInterruptHaltReason"})]}),"\n",(0,r.jsx)(s.p,{children:"A Halt Reason denoting that a ThreadRun is halted while waiting for an Interrupt handler\nto be run."}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Field"}),(0,r.jsx)(s.th,{children:"Label"}),(0,r.jsx)(s.th,{children:"Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsx)(s.tbody,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"external_event_id"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#externaleventid",children:"ExternalEventId"})}),(0,r.jsx)(s.td,{children:"The ExternalEventId that caused the Interrupt."})]})})]}),"\n",(0,r.jsxs)(s.h3,{id:"threadhaltreason",children:["Message ",(0,r.jsx)(s.code,{children:"ThreadHaltReason"})]}),"\n",(0,r.jsxs)(s.p,{children:["Denotes a reason why a ThreadRun is halted. See ",(0,r.jsx)(s.code,{children:"ThreadRun.halt_reasons"})," for context."]}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Field"}),(0,r.jsx)(s.th,{children:"Label"}),(0,r.jsx)(s.th,{children:"Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsxs)(s.tbody,{children:[(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"parent_halted"})}),(0,r.jsxs)(s.td,{children:["oneof ",(0,r.jsx)(s.code,{children:"reason"})]}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#parenthalted",children:"ParentHalted"})}),(0,r.jsx)(s.td,{children:"Parent threadRun halted."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"interrupted"})}),(0,r.jsxs)(s.td,{children:["oneof ",(0,r.jsx)(s.code,{children:"reason"})]}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#interrupted",children:"Interrupted"})}),(0,r.jsx)(s.td,{children:"Handling an Interrupt."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"pending_interrupt"})}),(0,r.jsxs)(s.td,{children:["oneof ",(0,r.jsx)(s.code,{children:"reason"})]}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#pendinginterrupthaltreason",children:"PendingInterruptHaltReason"})}),(0,r.jsx)(s.td,{children:"Waiting to handle Interrupt."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"pending_failure"})}),(0,r.jsxs)(s.td,{children:["oneof ",(0,r.jsx)(s.code,{children:"reason"})]}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#pendingfailurehandlerhaltreason",children:"PendingFailureHandlerHaltReason"})}),(0,r.jsx)(s.td,{children:"Waiting to handle a failure."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"handling_failure"})}),(0,r.jsxs)(s.td,{children:["oneof ",(0,r.jsx)(s.code,{children:"reason"})]}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#handlingfailurehaltreason",children:"HandlingFailureHaltReason"})}),(0,r.jsx)(s.td,{children:"Handling a failure."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"manual_halt"})}),(0,r.jsxs)(s.td,{children:["oneof ",(0,r.jsx)(s.code,{children:"reason"})]}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#manualhalt",children:"ManualHalt"})}),(0,r.jsx)(s.td,{children:"Manually stopped the WfRun."})]})]})]}),"\n",(0,r.jsxs)(s.h3,{id:"threadrun",children:["Message ",(0,r.jsx)(s.code,{children:"ThreadRun"})]}),"\n",(0,r.jsx)(s.p,{children:"A ThreadRun is a running thread of execution within a WfRun."}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Field"}),(0,r.jsx)(s.th,{children:"Label"}),(0,r.jsx)(s.th,{children:"Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsxs)(s.tbody,{children:[(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"wf_spec_id"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#wfspecid",children:"WfSpecId"})}),(0,r.jsx)(s.td,{children:"The current WfSpecId of this ThreadRun. This must be set explicitly because during a WfSpec Version Migration, it is possible for different ThreadSpec's to have different WfSpec versions."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"number"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:"int32"}),(0,r.jsxs)(s.td,{children:["The number of the ThreadRun. This is an auto-incremented integer corresponding to the chronological ordering of when the ThreadRun's were created. If you have not configured any retention policy for the ThreadRun's (i.e. never clean them up), then this also corresponds to the position of the ThreadRun in the WfRun's ",(0,r.jsx)(s.code,{children:"thread_runs"})," list."]})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"status"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#lhstatus",children:"LHStatus"})}),(0,r.jsx)(s.td,{children:"The status of the ThreadRun."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"thread_spec_name"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:"string"}),(0,r.jsx)(s.td,{children:"The name of the ThreadSpec being run."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"start_time"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:"google.protobuf.Timestamp"}),(0,r.jsx)(s.td,{children:"The time the ThreadRun was started."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"end_time"})}),(0,r.jsx)(s.td,{children:"optional"}),(0,r.jsx)(s.td,{children:"google.protobuf.Timestamp"}),(0,r.jsx)(s.td,{children:"The time the ThreadRun was completed or failed. Unset if still active."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"error_message"})}),(0,r.jsx)(s.td,{children:"optional"}),(0,r.jsx)(s.td,{children:"string"}),(0,r.jsx)(s.td,{children:"Human-readable error message detailing what went wrong in the case of a failure."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"child_thread_ids"})}),(0,r.jsx)(s.td,{children:"repeated"}),(0,r.jsx)(s.td,{children:"int32"}),(0,r.jsx)(s.td,{children:"List of thread_run_number's for all child thread_runs."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"parent_thread_id"})}),(0,r.jsx)(s.td,{children:"optional"}),(0,r.jsx)(s.td,{children:"int32"}),(0,r.jsx)(s.td,{children:"Set for every ThreadRun except the ENTRYPOINT. This is the id of the parent thread."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"halt_reasons"})}),(0,r.jsx)(s.td,{children:"repeated"}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#threadhaltreason",children:"ThreadHaltReason"})}),(0,r.jsx)(s.td,{children:'If the ThreadRun is HALTED, this contains a list of every reason for which the ThreadRun is HALTED. Once every reason is "resolved" (and thus removed from the list), then the ThreadRun will return to the RUNNING state.'})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"interrupt_trigger_id"})}),(0,r.jsx)(s.td,{children:"optional"}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#externaleventid",children:"ExternalEventId"})}),(0,r.jsx)(s.td,{children:"If this ThreadRun is of type INTERRUPT_HANDLER, this field is set to the ID of the ExternalEvent that caused the Interrupt."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"failure_being_handled"})}),(0,r.jsx)(s.td,{children:"optional"}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#failurebeinghandled",children:"FailureBeingHandled"})}),(0,r.jsx)(s.td,{children:"If this ThreadRun is of type FAILURE_HANDLER, this field is set to the exact Failure that is being handled by this ThreadRun."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"current_node_position"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:"int32"}),(0,r.jsxs)(s.td,{children:["This is the current ",(0,r.jsx)(s.code,{children:"position"})," of the current NodeRun being run. This is an auto-incremented field that gets incremented every time we run a new NodeRun."]})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"handled_failed_children"})}),(0,r.jsx)(s.td,{children:"repeated"}),(0,r.jsx)(s.td,{children:"int32"}),(0,r.jsxs)(s.td,{children:["List of every child ThreadRun which both a) failed, and b) was properly handled by a Failure Handler.",(0,r.jsx)("br",{}),(0,r.jsx)("br",{}),'This is important because at the EXIT node, if a Child ThreadRun was discovered to have failed, then this ThreadRun (the parent) also fails with the same failure as the child. If, however, a Failure Handler had previously "handled" the Child Failure, that ThreadRun\'s number is appended to this list, and then the EXIT node ignores that ThreadRun.']})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"type"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#threadtype",children:"ThreadType"})}),(0,r.jsx)(s.td,{children:"The Type of this ThreadRun."})]})]})]}),"\n",(0,r.jsxs)(s.h3,{id:"wfrun",children:["Message ",(0,r.jsx)(s.code,{children:"WfRun"})]}),"\n",(0,r.jsx)(s.p,{children:"A WfRun is a running instance of a WfSpec."}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Field"}),(0,r.jsx)(s.th,{children:"Label"}),(0,r.jsx)(s.th,{children:"Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsxs)(s.tbody,{children:[(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"id"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#wfrunid",children:"WfRunId"})}),(0,r.jsx)(s.td,{children:"The ID of the WfRun."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"wf_spec_id"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#wfspecid",children:"WfSpecId"})}),(0,r.jsx)(s.td,{children:"The ID of the WfSpec that this WfRun belongs to."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"old_wf_spec_versions"})}),(0,r.jsx)(s.td,{children:"repeated"}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#wfspecid",children:"WfSpecId"})}),(0,r.jsx)(s.td,{children:"When a WfRun is migrated from an old verison of a WfSpec to a newer one, we add the old WfSpecId to this list for historical auditing and debugging purposes."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"status"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#lhstatus",children:"LHStatus"})}),(0,r.jsx)(s.td,{children:"The status of this WfRun."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"greatest_threadrun_number"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:"int32"}),(0,r.jsxs)(s.td,{children:["The ID number of the greatest ThreadRUn in this WfRun. The total number of ThreadRuns is given by greatest_thread_run_number + 1.",(0,r.jsx)("br",{}),(0,r.jsx)("br",{}),"Introduced now since with ThreadRun-level retention, we can't rely upon thread_runs.size() to determine the number of ThreadRuns, as a ThreadRun is removed from the thread_runs list once its retention period expires."]})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"start_time"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:"google.protobuf.Timestamp"}),(0,r.jsx)(s.td,{children:"The time the WfRun was started."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"end_time"})}),(0,r.jsx)(s.td,{children:"optional"}),(0,r.jsx)(s.td,{children:"google.protobuf.Timestamp"}),(0,r.jsx)(s.td,{children:"The time the WfRun failed or completed."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"thread_runs"})}),(0,r.jsx)(s.td,{children:"repeated"}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#threadrun",children:"ThreadRun"})}),(0,r.jsx)(s.td,{children:"A list of all active ThreadRun's and terminated ThreadRun's whose retention periods have not yet expired."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"pending_interrupts"})}),(0,r.jsx)(s.td,{children:"repeated"}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#pendinginterrupt",children:"PendingInterrupt"})}),(0,r.jsx)(s.td,{children:"A list of Interrupt events that will fire once their appropriate ThreadRun's finish halting."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"pending_failures"})}),(0,r.jsx)(s.td,{children:"repeated"}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#pendingfailurehandler",children:"PendingFailureHandler"})}),(0,r.jsx)(s.td,{children:"A list of pending failure handlers which will fire once their appropriate ThreadRun's finish halting."})]})]})]}),"\n",(0,r.jsxs)(s.h3,{id:"edge",children:["Message ",(0,r.jsx)(s.code,{children:"Edge"})]}),"\n",(0,r.jsx)(s.p,{children:"The Edge is the line in the workflow that connects one Node to another."}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Field"}),(0,r.jsx)(s.th,{children:"Label"}),(0,r.jsx)(s.th,{children:"Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsxs)(s.tbody,{children:[(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"sink_node_name"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:"string"}),(0,r.jsx)(s.td,{children:"The name of the Node that the Edge points to."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"condition"})}),(0,r.jsx)(s.td,{children:"optional"}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#edgecondition",children:"EdgeCondition"})}),(0,r.jsxs)(s.td,{children:["The Condition on which this Edge will be traversed. When choosing an Edge to travel after the completion of a NodeRun, the Edges are evaluated in order. The first one to either have no condition or have a condition which evaluates to ",(0,r.jsx)(s.code,{children:"true"})," is taken."]})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"variable_mutations"})}),(0,r.jsx)(s.td,{children:"repeated"}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#variablemutation",children:"VariableMutation"})}),(0,r.jsx)(s.td,{children:"Ordered list of Variable Mutations to execute when traversing this Edge."})]})]})]}),"\n",(0,r.jsxs)(s.h3,{id:"edgecondition",children:["Message ",(0,r.jsx)(s.code,{children:"EdgeCondition"})]}),"\n",(0,r.jsx)(s.p,{children:"This is a boolean expression used to evaluate whether an Edge is valid."}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Field"}),(0,r.jsx)(s.th,{children:"Label"}),(0,r.jsx)(s.th,{children:"Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsxs)(s.tbody,{children:[(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"comparator"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#comparator",children:"Comparator"})}),(0,r.jsx)(s.td,{children:"The Operator used to evaluate the left versus the right."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"left"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#variableassignment",children:"VariableAssignment"})}),(0,r.jsx)(s.td,{children:"The left side of the boolean expression."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"right"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#variableassignment",children:"VariableAssignment"})}),(0,r.jsx)(s.td,{children:"The right side of the Boolean Expression."})]})]})]}),"\n",(0,r.jsxs)(s.h3,{id:"entrypointnode",children:["Message ",(0,r.jsx)(s.code,{children:"EntrypointNode"})]}),"\n",(0,r.jsx)(s.p,{children:"Defines the beginning of the ThreadRun execution."}),"\n",(0,r.jsx)(s.p,{children:"Output is NULL"}),"\n",(0,r.jsxs)(s.h3,{id:"exitnode",children:["Message ",(0,r.jsx)(s.code,{children:"ExitNode"})]}),"\n",(0,r.jsx)(s.p,{children:"Defines the end of the ThreadRun execution."}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Field"}),(0,r.jsx)(s.th,{children:"Label"}),(0,r.jsx)(s.th,{children:"Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsx)(s.tbody,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"failure_def"})}),(0,r.jsx)(s.td,{children:"optional"}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#failuredef",children:"FailureDef"})}),(0,r.jsxs)(s.td,{children:["If set, this ExitNode throws the specified Failure upon arrival. Note that Failures are propagated up to the parent ThreadRun (or cause the entire WfRun to fail if sent by the entrypoint ThreadRun).",(0,r.jsx)("br",{}),(0,r.jsx)("br",{}),"If this is not set, then a ThreadRun arriving at this Exit Node will be COMPLETED."]})]})})]}),"\n",(0,r.jsxs)(s.h3,{id:"externaleventnode",children:["Message ",(0,r.jsx)(s.code,{children:"ExternalEventNode"})]}),"\n",(0,r.jsx)(s.p,{children:"An ExternalEventNode causes the WfRun to stop and wait for an ExternalEvent\nto arrive before continuing onwards."}),"\n",(0,r.jsx)(s.p,{children:"The output is just the content of the ExternalEvent."}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Field"}),(0,r.jsx)(s.th,{children:"Label"}),(0,r.jsx)(s.th,{children:"Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsxs)(s.tbody,{children:[(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"external_event_def_id"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#externaleventdefid",children:"ExternalEventDefId"})}),(0,r.jsx)(s.td,{children:"The ID of the ExternalEventDef that we are waiting for."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"timeout_seconds"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#variableassignment",children:"VariableAssignment"})}),(0,r.jsx)(s.td,{children:"Determines the maximum amount of time that the NodeRun will wait for the ExternalEvent to arrive."})]})]})]}),"\n",(0,r.jsxs)(s.h3,{id:"failuredef",children:["Message ",(0,r.jsx)(s.code,{children:"FailureDef"})]}),"\n",(0,r.jsx)(s.p,{children:"Defines a Failure that can be thrown."}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Field"}),(0,r.jsx)(s.th,{children:"Label"}),(0,r.jsx)(s.th,{children:"Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsxs)(s.tbody,{children:[(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"failure_name"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:"string"}),(0,r.jsx)(s.td,{children:"The code for the failure. If in UPPER_CASE, it must be one of the LHErrorType enums, and represents an ERROR. If it is in kebab-case, then it is a user-defined EXCEPTION."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"message"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:"string"}),(0,r.jsx)(s.td,{children:"Human-readable message denoting why the Failure occurred."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"content"})}),(0,r.jsx)(s.td,{children:"optional"}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#variableassignment",children:"VariableAssignment"})}),(0,r.jsx)(s.td,{children:"If specified, the thrown Failure will have this content."})]})]})]}),"\n",(0,r.jsxs)(s.h3,{id:"failurehandlerdef",children:["Message ",(0,r.jsx)(s.code,{children:"FailureHandlerDef"})]}),"\n",(0,r.jsx)(s.p,{children:"Specifies a Failure Handler which can run in case of a certain Failure to allow\nthe ThreadRun to run compensatory logic and gracefully continue rather than\nfailing immediately."}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Field"}),(0,r.jsx)(s.th,{children:"Label"}),(0,r.jsx)(s.th,{children:"Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsxs)(s.tbody,{children:[(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"handler_spec_name"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:"string"}),(0,r.jsx)(s.td,{children:"The name of the ThreadSpec to run as a"})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"specific_failure"})}),(0,r.jsxs)(s.td,{children:["oneof ",(0,r.jsx)(s.code,{children:"failure_to_catch"})]}),(0,r.jsx)(s.td,{children:"string"}),(0,r.jsxs)(s.td,{children:["Specifies that this FailureHandlerDef will be triggered for a Failure with this exact name.",(0,r.jsx)("br",{}),(0,r.jsx)("br",{}),"If this and ",(0,r.jsx)(s.code,{children:"specific_failure"})," are both unset, then any failure is caught."]})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"any_failure_of_type"})}),(0,r.jsxs)(s.td,{children:["oneof ",(0,r.jsx)(s.code,{children:"failure_to_catch"})]}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#failurehandlerdeflhfailuretype",children:"FailureHandlerDef.LHFailureType"})}),(0,r.jsx)(s.td,{children:"Specifies that this FailureHandlerDef will be triggered for any failure matching this type (ERROR or EXCEPTION)."})]})]})]}),"\n",(0,r.jsxs)(s.h3,{id:"interruptdef",children:["Message ",(0,r.jsx)(s.code,{children:"InterruptDef"})]}),"\n",(0,r.jsx)(s.p,{children:"Defines an Interrupt for a ThreadSpec. An Interrupt means that when an ExternalEvent\nof a certain type is registered to the WfRun, then the affected ThreadRun is HALTED\nand a handler ThreadRun is run as an interrupt handler. The interrupted ThreadRun\nis resumed once the interrupt handler completes."}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Field"}),(0,r.jsx)(s.th,{children:"Label"}),(0,r.jsx)(s.th,{children:"Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsxs)(s.tbody,{children:[(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"external_event_def_id"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#externaleventdefid",children:"ExternalEventDefId"})}),(0,r.jsx)(s.td,{children:"The ID of the ExternalEventDef which triggers an Interrupt for this ThreadSpec. Note that as of 0.9.0, you cannot use an ExternalEventDefId for both an InterruptDef and an ExternalEventNode in the same WfSpec."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"handler_spec_name"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:"string"}),(0,r.jsx)(s.td,{children:"The name of the ThreadSpec that we run as the interrupt handler."})]})]})]}),"\n",(0,r.jsxs)(s.h3,{id:"jsonindex",children:["Message ",(0,r.jsx)(s.code,{children:"JsonIndex"})]}),"\n",(0,r.jsx)(s.p,{children:"Defines an index to make a JSON_OBJ or JSON_ARR variable searchable over a specific\nJSON Path."}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Field"}),(0,r.jsx)(s.th,{children:"Label"}),(0,r.jsx)(s.th,{children:"Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsxs)(s.tbody,{children:[(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"field_path"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:"string"}),(0,r.jsx)(s.td,{children:"Denotes the path in JSONPath format (according to the Java Jayway library) that has a field we should index."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"field_type"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#variabletype",children:"VariableType"})}),(0,r.jsx)(s.td,{children:"Is the type of the field we are indexing."})]})]})]}),"\n",(0,r.jsxs)(s.h3,{id:"node",children:["Message ",(0,r.jsx)(s.code,{children:"Node"})]}),"\n",(0,r.jsx)(s.p,{children:"A Node is a step in a ThreadRun."}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Field"}),(0,r.jsx)(s.th,{children:"Label"}),(0,r.jsx)(s.th,{children:"Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsxs)(s.tbody,{children:[(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"outgoing_edges"})}),(0,r.jsx)(s.td,{children:"repeated"}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#edge",children:"Edge"})}),(0,r.jsx)(s.td,{children:"Defines the flow of execution and determines where the ThreadRun goes next."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"failure_handlers"})}),(0,r.jsx)(s.td,{children:"repeated"}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#failurehandlerdef",children:"FailureHandlerDef"})}),(0,r.jsx)(s.td,{children:"Specifies handlers for failures (EXCEPTION or ERROR or both) which might be thrown by the NodeRun. If a Failure is thrown by the Node execution, then the first matching Failure Handler (if present) is run. If there is a matching Failure Handler and it runs to completion, then the ThreadRun advances from the Node; else, it fails."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"entrypoint"})}),(0,r.jsxs)(s.td,{children:["oneof ",(0,r.jsx)(s.code,{children:"node"})]}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#entrypointnode",children:"EntrypointNode"})}),(0,r.jsx)(s.td,{children:"Creates an EntrypointRun. Every ThreadRun has one Entrypoint node."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"exit"})}),(0,r.jsxs)(s.td,{children:["oneof ",(0,r.jsx)(s.code,{children:"node"})]}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#exitnode",children:"ExitNode"})}),(0,r.jsx)(s.td,{children:"Creates an `ExitRun``. Every ThreadSpec has at least one Exit Node."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"task"})}),(0,r.jsxs)(s.td,{children:["oneof ",(0,r.jsx)(s.code,{children:"node"})]}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#tasknode",children:"TaskNode"})}),(0,r.jsx)(s.td,{children:"Creates a TaskNodeRUn"})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"external_event"})}),(0,r.jsxs)(s.td,{children:["oneof ",(0,r.jsx)(s.code,{children:"node"})]}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#externaleventnode",children:"ExternalEventNode"})}),(0,r.jsx)(s.td,{children:"Creates an ExternalEventNodeRun"})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"start_thread"})}),(0,r.jsxs)(s.td,{children:["oneof ",(0,r.jsx)(s.code,{children:"node"})]}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#startthreadnode",children:"StartThreadNode"})}),(0,r.jsx)(s.td,{children:"Creates a StartThreadNodeRun"})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"wait_for_threads"})}),(0,r.jsxs)(s.td,{children:["oneof ",(0,r.jsx)(s.code,{children:"node"})]}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#waitforthreadsnode",children:"WaitForThreadsNode"})}),(0,r.jsx)(s.td,{children:"Creates a WaitForThreadsNodeRun"})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"nop"})}),(0,r.jsxs)(s.td,{children:["oneof ",(0,r.jsx)(s.code,{children:"node"})]}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#nopnode",children:"NopNode"})}),(0,r.jsx)(s.td,{children:"Creates a NopNodeRun"})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"sleep"})}),(0,r.jsxs)(s.td,{children:["oneof ",(0,r.jsx)(s.code,{children:"node"})]}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#sleepnode",children:"SleepNode"})}),(0,r.jsx)(s.td,{children:"Creates a SleepNodeRun"})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"user_task"})}),(0,r.jsxs)(s.td,{children:["oneof ",(0,r.jsx)(s.code,{children:"node"})]}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#usertasknode",children:"UserTaskNode"})}),(0,r.jsx)(s.td,{children:"Creates a UserTaskNodeRun"})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"start_multiple_threads"})}),(0,r.jsxs)(s.td,{children:["oneof ",(0,r.jsx)(s.code,{children:"node"})]}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#startmultiplethreadsnode",children:"StartMultipleThreadsNode"})}),(0,r.jsx)(s.td,{children:"Creates a StartMultipleThreadsNodeRun"})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"throw_event"})}),(0,r.jsxs)(s.td,{children:["oneof ",(0,r.jsx)(s.code,{children:"node"})]}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#throweventnode",children:"ThrowEventNode"})}),(0,r.jsx)(s.td,{children:"Creates a ThrowEventNodeRun"})]})]})]}),"\n",(0,r.jsxs)(s.h3,{id:"nodemigration",children:["Message ",(0,r.jsx)(s.code,{children:"NodeMigration"})]}),"\n",(0,r.jsx)(s.p,{children:"EXPERIMENTAL: Specification for migrating a WfRun from a Node in one WfSpec\nto a Node in another WfSpec version."}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Field"}),(0,r.jsx)(s.th,{children:"Label"}),(0,r.jsx)(s.th,{children:"Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsx)(s.tbody,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"new_node_name"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:"string"}),(0,r.jsx)(s.td,{children:"The name of the Node on the new WfSpec to move to."})]})})]}),"\n",(0,r.jsxs)(s.h3,{id:"nopnode",children:["Message ",(0,r.jsx)(s.code,{children:"NopNode"})]}),"\n",(0,r.jsx)(s.p,{children:"NOP node has no operations and is used for conditional branching."}),"\n",(0,r.jsxs)(s.h3,{id:"sleepnode",children:["Message ",(0,r.jsx)(s.code,{children:"SleepNode"})]}),"\n",(0,r.jsx)(s.p,{children:"Sleep Node causes the WfRun to wait a specified time and then resume."}),"\n",(0,r.jsx)(s.p,{children:"There is no output."}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Field"}),(0,r.jsx)(s.th,{children:"Label"}),(0,r.jsx)(s.th,{children:"Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsxs)(s.tbody,{children:[(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"raw_seconds"})}),(0,r.jsxs)(s.td,{children:["oneof ",(0,r.jsx)(s.code,{children:"sleep_length"})]}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#variableassignment",children:"VariableAssignment"})}),(0,r.jsx)(s.td,{children:"Sleeps the specified number of seconds."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"timestamp"})}),(0,r.jsxs)(s.td,{children:["oneof ",(0,r.jsx)(s.code,{children:"sleep_length"})]}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#variableassignment",children:"VariableAssignment"})}),(0,r.jsxs)(s.td,{children:["Sleeps until the ",(0,r.jsx)(s.code,{children:"long"})," timestamp (epoch millis) specified here."]})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"iso_date"})}),(0,r.jsxs)(s.td,{children:["oneof ",(0,r.jsx)(s.code,{children:"sleep_length"})]}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#variableassignment",children:"VariableAssignment"})}),(0,r.jsx)(s.td,{children:"Sleeps until the ISO-formatted date specified here."})]})]})]}),"\n",(0,r.jsxs)(s.h3,{id:"startmultiplethreadsnode",children:["Message ",(0,r.jsx)(s.code,{children:"StartMultipleThreadsNode"})]}),"\n",(0,r.jsx)(s.p,{children:"Iterates over a JSON_ARR and starts a Child ThreadRun for each element in the\nlist."}),"\n",(0,r.jsx)(s.p,{children:"Returns a JSON_ARR containing the thread_run_number of each spawned child."}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Field"}),(0,r.jsx)(s.th,{children:"Label"}),(0,r.jsx)(s.th,{children:"Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsxs)(s.tbody,{children:[(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"thread_spec_name"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:"string"}),(0,r.jsx)(s.td,{children:"The name of the ThreadSpec to spawn."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"variables"})}),(0,r.jsx)(s.td,{children:"map"}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#startmultiplethreadsnodevariablesentry",children:"StartMultipleThreadsNode.VariablesEntry"})}),(0,r.jsx)(s.td,{children:"Variables which are passed into the child ThreadRuns. These assignments are the same for all spawned threads."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"iterable"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#variableassignment",children:"VariableAssignment"})}),(0,r.jsxs)(s.td,{children:["Assignment that resolves to a JSON_ARR. For each element in the list, a child ThreadRun is started. The reserved ",(0,r.jsx)(s.code,{children:"INPUT"})," variable for each Child is set to the corresponding item in the list."]})]})]})]}),"\n",(0,r.jsxs)(s.h3,{id:"startmultiplethreadsnodevariablesentry",children:["Message ",(0,r.jsx)(s.code,{children:"StartMultipleThreadsNode.VariablesEntry"})]}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Field"}),(0,r.jsx)(s.th,{children:"Label"}),(0,r.jsx)(s.th,{children:"Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsxs)(s.tbody,{children:[(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"key"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:"string"}),(0,r.jsx)(s.td,{})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"value"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#variableassignment",children:"VariableAssignment"})}),(0,r.jsx)(s.td,{})]})]})]}),"\n",(0,r.jsxs)(s.h3,{id:"startthreadnode",children:["Message ",(0,r.jsx)(s.code,{children:"StartThreadNode"})]}),"\n",(0,r.jsx)(s.p,{children:"Starts a Child ThreadRun with a specific ThreadSpec."}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Field"}),(0,r.jsx)(s.th,{children:"Label"}),(0,r.jsx)(s.th,{children:"Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsxs)(s.tbody,{children:[(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"thread_spec_name"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:"string"}),(0,r.jsx)(s.td,{children:"The name of the ThreadSpec to spawn."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"variables"})}),(0,r.jsx)(s.td,{children:"map"}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#startthreadnodevariablesentry",children:"StartThreadNode.VariablesEntry"})}),(0,r.jsx)(s.td,{children:"The input variables to pass into the Child ThreadRun."})]})]})]}),"\n",(0,r.jsxs)(s.h3,{id:"startthreadnodevariablesentry",children:["Message ",(0,r.jsx)(s.code,{children:"StartThreadNode.VariablesEntry"})]}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Field"}),(0,r.jsx)(s.th,{children:"Label"}),(0,r.jsx)(s.th,{children:"Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsxs)(s.tbody,{children:[(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"key"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:"string"}),(0,r.jsx)(s.td,{})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"value"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#variableassignment",children:"VariableAssignment"})}),(0,r.jsx)(s.td,{})]})]})]}),"\n",(0,r.jsxs)(s.h3,{id:"threadretentionpolicy",children:["Message ",(0,r.jsx)(s.code,{children:"ThreadRetentionPolicy"})]}),"\n",(0,r.jsx)(s.p,{children:"ThreadRetentionPolicy specifies how long to keep record of a ThreadRun and its associated\nNodeRun's and TaskRun's and Variables after the ThreadRun has been completed."}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Field"}),(0,r.jsx)(s.th,{children:"Label"}),(0,r.jsx)(s.th,{children:"Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsx)(s.tbody,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"seconds_after_thread_termination"})}),(0,r.jsxs)(s.td,{children:["oneof ",(0,r.jsx)(s.code,{children:"thread_gc_policy"})]}),(0,r.jsx)(s.td,{children:"int64"}),(0,r.jsx)(s.td,{children:"Delete associated ThreadRun's X seconds after they terminate, regardless of status."})]})})]}),"\n",(0,r.jsxs)(s.h3,{id:"threadspec",children:["Message ",(0,r.jsx)(s.code,{children:"ThreadSpec"})]}),"\n",(0,r.jsx)(s.p,{children:"Defines a blueprint for a ThreadRun, which is a thread of execution inside a\nWfRun."}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Field"}),(0,r.jsx)(s.th,{children:"Label"}),(0,r.jsx)(s.th,{children:"Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsxs)(s.tbody,{children:[(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"nodes"})}),(0,r.jsx)(s.td,{children:"map"}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#threadspecnodesentry",children:"ThreadSpec.NodesEntry"})}),(0,r.jsx)(s.td,{children:"The Nodes inside this ThreadSpec. Maps from name to Node."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"variable_defs"})}),(0,r.jsx)(s.td,{children:"repeated"}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#threadvardef",children:"ThreadVarDef"})}),(0,r.jsx)(s.td,{children:"Defines Variables that are local to ThreadRun's of this ThreadSpec."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"interrupt_defs"})}),(0,r.jsx)(s.td,{children:"repeated"}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#interruptdef",children:"InterruptDef"})}),(0,r.jsx)(s.td,{children:"Defines all interrupts for this ThreadSpec."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"retention_policy"})}),(0,r.jsx)(s.td,{children:"optional"}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#threadretentionpolicy",children:"ThreadRetentionPolicy"})}),(0,r.jsx)(s.td,{children:"Optional retention policy to clean up ThreadRun's of this ThreadSpec after they have been completed. This is important for long-lived WfRun's that could have hundreds of ThreadRun's, because a ThreadRun has a record inside the WfRun itself."})]})]})]}),"\n",(0,r.jsxs)(s.h3,{id:"threadspecnodesentry",children:["Message ",(0,r.jsx)(s.code,{children:"ThreadSpec.NodesEntry"})]}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Field"}),(0,r.jsx)(s.th,{children:"Label"}),(0,r.jsx)(s.th,{children:"Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsxs)(s.tbody,{children:[(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"key"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:"string"}),(0,r.jsx)(s.td,{})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"value"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#node",children:"Node"})}),(0,r.jsx)(s.td,{})]})]})]}),"\n",(0,r.jsxs)(s.h3,{id:"threadspecmigration",children:["Message ",(0,r.jsx)(s.code,{children:"ThreadSpecMigration"})]}),"\n",(0,r.jsx)(s.p,{children:"EXPERIMENTAL: Specification for how to migrate a ThreadRun of a specific ThreadSpec\nfrom one WfSpec to another WfSpec version."}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Field"}),(0,r.jsx)(s.th,{children:"Label"}),(0,r.jsx)(s.th,{children:"Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsxs)(s.tbody,{children:[(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"new_thread_spec_name"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:"string"}),(0,r.jsx)(s.td,{children:"The name of the ThreadSpec in the new WfSpec that this ThreadSpec should migrate to."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"node_migrations"})}),(0,r.jsx)(s.td,{children:"map"}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#threadspecmigrationnodemigrationsentry",children:"ThreadSpecMigration.NodeMigrationsEntry"})}),(0,r.jsx)(s.td,{children:"Map from name of the nodes on the current ThreadSpec to the migration to perform on it to move it to a new WfSpec."})]})]})]}),"\n",(0,r.jsxs)(s.h3,{id:"threadspecmigrationnodemigrationsentry",children:["Message ",(0,r.jsx)(s.code,{children:"ThreadSpecMigration.NodeMigrationsEntry"})]}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Field"}),(0,r.jsx)(s.th,{children:"Label"}),(0,r.jsx)(s.th,{children:"Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsxs)(s.tbody,{children:[(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"key"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:"string"}),(0,r.jsx)(s.td,{})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"value"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#nodemigration",children:"NodeMigration"})}),(0,r.jsx)(s.td,{})]})]})]}),"\n",(0,r.jsxs)(s.h3,{id:"threadvardef",children:["Message ",(0,r.jsx)(s.code,{children:"ThreadVarDef"})]}),"\n",(0,r.jsx)(s.p,{children:"Denotes a variable declaration at the ThreadSpec level."}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Field"}),(0,r.jsx)(s.th,{children:"Label"}),(0,r.jsx)(s.th,{children:"Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsxs)(s.tbody,{children:[(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"var_def"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#variabledef",children:"VariableDef"})}),(0,r.jsx)(s.td,{children:"Is the actual VariableDefinition containing name and type."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"required"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:"bool"}),(0,r.jsx)(s.td,{children:"Whether the variable is required as input to the threadRun."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"searchable"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:"bool"}),(0,r.jsx)(s.td,{children:"Whether this variable has an index configured."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"json_indexes"})}),(0,r.jsx)(s.td,{children:"repeated"}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#jsonindex",children:"JsonIndex"})}),(0,r.jsx)(s.td,{children:"Valid for JSON_OBJ and JSON_ARR variables only. List of JSON fields to index."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"access_level"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#wfrunvariableaccesslevel",children:"WfRunVariableAccessLevel"})}),(0,r.jsx)(s.td,{children:"The Access Level of this variable."})]})]})]}),"\n",(0,r.jsxs)(s.h3,{id:"throweventnode",children:["Message ",(0,r.jsx)(s.code,{children:"ThrowEventNode"})]}),"\n",(0,r.jsx)(s.p,{children:"A SubNode that throws a WorkflowEvent of a specific type. There is no output."}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Field"}),(0,r.jsx)(s.th,{children:"Label"}),(0,r.jsx)(s.th,{children:"Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsxs)(s.tbody,{children:[(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"event_def_id"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#workfloweventdefid",children:"WorkflowEventDefId"})}),(0,r.jsx)(s.td,{children:"The WorkflowEventDefId of the WorkflowEvent that is thrown"})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"content"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#variableassignment",children:"VariableAssignment"})}),(0,r.jsx)(s.td,{children:"A VariableAssignment defining the content of the WorkflowEvent that is thrown"})]})]})]}),"\n",(0,r.jsxs)(s.h3,{id:"usertasknode",children:["Message ",(0,r.jsx)(s.code,{children:"UserTaskNode"})]}),"\n",(0,r.jsx)(s.p,{children:"The UserTaskNode creates a UserTaskRun, which is used to get input from a human\nuser into the workflow."}),"\n",(0,r.jsx)(s.p,{children:"The output is a JSON_OBJ variable with one key/value pair for each UserTaskField."}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Field"}),(0,r.jsx)(s.th,{children:"Label"}),(0,r.jsx)(s.th,{children:"Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsxs)(s.tbody,{children:[(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"user_task_def_name"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:"string"}),(0,r.jsxs)(s.td,{children:["Denotes the name of the ",(0,r.jsx)(s.code,{children:"UserTaskDef"})," that should create the ",(0,r.jsx)(s.code,{children:"UserTaskRun"}),"."]})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"user_group"})}),(0,r.jsx)(s.td,{children:"optional"}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#variableassignment",children:"VariableAssignment"})}),(0,r.jsx)(s.td,{children:"Denotes the user_group to which the UserTaskRun is assigned upon creation."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"user_id"})}),(0,r.jsx)(s.td,{children:"optional"}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#variableassignment",children:"VariableAssignment"})}),(0,r.jsx)(s.td,{children:"Denotes the user_id to which the UserTaskRun is assigned upon creation."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"actions"})}),(0,r.jsx)(s.td,{children:"repeated"}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#utactiontrigger",children:"UTActionTrigger"})}),(0,r.jsx)(s.td,{children:'Specifies a list of actions that happen on various time-based triggers. Actions include reassigning the UserTaskRun, cancelling the UserTaskRun, or executing a "reminder" TaskRun.'})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"user_task_def_version"})}),(0,r.jsx)(s.td,{children:"optional"}),(0,r.jsx)(s.td,{children:"int32"}),(0,r.jsx)(s.td,{children:"If set, then the UserTaskRun will always have this specific version of the UserTaskDef. Otherwise, the UserTaskRun will have the latest version."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"notes"})}),(0,r.jsx)(s.td,{children:"optional"}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#variableassignment",children:"VariableAssignment"})}),(0,r.jsxs)(s.td,{children:["Specifies the value to be displayed on the ",(0,r.jsx)(s.code,{children:"notes"})," field of the UserTaskRun."]})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"on_cancellation_exception_name"})}),(0,r.jsx)(s.td,{children:"optional"}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#variableassignment",children:"VariableAssignment"})}),(0,r.jsx)(s.td,{children:"Specifies the name of the exception thrown when the User Task is canceled. If not set, then the cancellation or timeout of a User Task Run throws an ERROR rather than an EXCEPTION."})]})]})]}),"\n",(0,r.jsxs)(s.h3,{id:"waitforthreadsnode",children:["Message ",(0,r.jsx)(s.code,{children:"WaitForThreadsNode"})]}),"\n",(0,r.jsxs)(s.p,{children:["Specifies that a ThreadRun will wait for certain specified Child ThreadRun's to\ncomplete or fail before the WfRun continues. If one of the Child ThreadRun's\nthrows a Failure that is not caught by the ",(0,r.jsx)(s.code,{children:"per_thread_failure_handlers"}),",\nthen the Child ThreadRun's Failure is thrown by the WaitForThreadsRun."]}),"\n",(0,r.jsx)(s.p,{children:"No output."}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Field"}),(0,r.jsx)(s.th,{children:"Label"}),(0,r.jsx)(s.th,{children:"Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsxs)(s.tbody,{children:[(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"threads"})}),(0,r.jsxs)(s.td,{children:["oneof ",(0,r.jsx)(s.code,{children:"threads_to_wait_for"})]}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#waitforthreadsnodethreadstowaitfor",children:"WaitForThreadsNode.ThreadsToWaitFor"})}),(0,r.jsx)(s.td,{children:"Specifies that the WaitForThreadsRun will wait for the threads specified here."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"thread_list"})}),(0,r.jsxs)(s.td,{children:["oneof ",(0,r.jsx)(s.code,{children:"threads_to_wait_for"})]}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#variableassignment",children:"VariableAssignment"})}),(0,r.jsxs)(s.td,{children:["Specifies that the WaitForThreadsRun will wait for a list of ThreadRun's contained in the JSON_ARR value specified here. Each element in the list must be an INT representing the ",(0,r.jsx)(s.code,{children:"number"})," of a ThreadRun that we're waiting for."]})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"per_thread_failure_handlers"})}),(0,r.jsx)(s.td,{children:"repeated"}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#failurehandlerdef",children:"FailureHandlerDef"})}),(0,r.jsxs)(s.td,{children:["If any of the child ThreadRun's that we are waiting for throw a Failure, we will evaluate it against these FailureHandlerDef's and run the first matching FailureHandler (if any). The FailureHandler will be a child of the child, which means that it has access to all of the variables in the scope of the failed Child ThreadRun.",(0,r.jsx)("br",{}),(0,r.jsx)("br",{}),"This is different from Node-level Failure Handlers, which would be ",(0,r.jsx)(s.em,{children:"siblings"})," of the ThreadRuns that we're waiting for, and would run only when the overall nodeRun has failed."]})]})]})]}),"\n",(0,r.jsxs)(s.h3,{id:"waitforthreadsnodethreadtowaitfor",children:["Message ",(0,r.jsx)(s.code,{children:"WaitForThreadsNode.ThreadToWaitFor"})]}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Field"}),(0,r.jsx)(s.th,{children:"Label"}),(0,r.jsx)(s.th,{children:"Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsx)(s.tbody,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"thread_run_number"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#variableassignment",children:"VariableAssignment"})}),(0,r.jsx)(s.td,{children:"Causes the WaitForThreadsNodeRun to wait for the ThreadRun whose number matches the value specified here. Must resolve to an INT."})]})})]}),"\n",(0,r.jsxs)(s.h3,{id:"waitforthreadsnodethreadstowaitfor",children:["Message ",(0,r.jsx)(s.code,{children:"WaitForThreadsNode.ThreadsToWaitFor"})]}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Field"}),(0,r.jsx)(s.th,{children:"Label"}),(0,r.jsx)(s.th,{children:"Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsx)(s.tbody,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"threads"})}),(0,r.jsx)(s.td,{children:"repeated"}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#waitforthreadsnodethreadtowaitfor",children:"WaitForThreadsNode.ThreadToWaitFor"})}),(0,r.jsx)(s.td,{children:"Wait for one or more ThreadRun's"})]})})]}),"\n",(0,r.jsxs)(s.h3,{id:"wfspec",children:["Message ",(0,r.jsx)(s.code,{children:"WfSpec"})]}),"\n",(0,r.jsxs)(s.p,{children:["A ",(0,r.jsx)(s.code,{children:"WfSpec"})," defines the logic for a workflow in LittleHorse. It is a metadata object\nand is a blueprint for a ",(0,r.jsx)(s.code,{children:"WfRun"})," execution."]}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Field"}),(0,r.jsx)(s.th,{children:"Label"}),(0,r.jsx)(s.th,{children:"Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsxs)(s.tbody,{children:[(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"id"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#wfspecid",children:"WfSpecId"})}),(0,r.jsxs)(s.td,{children:["The ID of the ",(0,r.jsx)(s.code,{children:"WfSpec"}),". Note that this ID is versioned with both a major version and a minor revision. Creating new WfSpec's with the same name and different specifications results in a completely new ",(0,r.jsx)(s.code,{children:"WfSpec"})," object whose ",(0,r.jsx)(s.code,{children:"id.name"})," is the same but with different version."]})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"created_at"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:"google.protobuf.Timestamp"}),(0,r.jsxs)(s.td,{children:["The timestamp at which the ",(0,r.jsx)(s.code,{children:"WfSpec"})," was created."]})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"frozen_variables"})}),(0,r.jsx)(s.td,{children:"repeated"}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#threadvardef",children:"ThreadVarDef"})}),(0,r.jsx)(s.td,{children:"Variables whose types cannot be changed without causing a Breaking Change between the versions."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"status"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#metadatastatus",children:"MetadataStatus"})}),(0,r.jsxs)(s.td,{children:["The Status of the ",(0,r.jsx)(s.code,{children:"WfSpec"}),". Currently, only ",(0,r.jsx)(s.code,{children:"ACTIVE"})," exists. This field will be used in the future when de-commissioning a WfSpec gracefully."]})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"thread_specs"})}),(0,r.jsx)(s.td,{children:"map"}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#wfspecthreadspecsentry",children:"WfSpec.ThreadSpecsEntry"})}),(0,r.jsxs)(s.td,{children:["The various ThreadSpec's in this ",(0,r.jsx)(s.code,{children:"WfSpec"}),". Each ",(0,r.jsx)(s.code,{children:"ThreadSpec"})," defines a blueprint for a parallel thread of execution (a ",(0,r.jsx)(s.code,{children:"ThreadRun"}),"). They are referred to by their names."]})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"entrypoint_thread_name"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:"string"}),(0,r.jsxs)(s.td,{children:["The name of the ",(0,r.jsx)(s.code,{children:"ENTRYPOINT"})," ThreadSpec. The Entrypoint is the ",(0,r.jsx)(s.code,{children:"ThreadSpec"})," for the Entrypoint ThreadRun, which is the ",(0,r.jsx)(s.code,{children:"ThreadRun"})," that is created upon starting the ",(0,r.jsx)(s.code,{children:"WfRun"}),"."]})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"retention_policy"})}),(0,r.jsx)(s.td,{children:"optional"}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#workflowretentionpolicy",children:"WorkflowRetentionPolicy"})}),(0,r.jsxs)(s.td,{children:["Optional policy that configures cleaning up old ",(0,r.jsx)(s.code,{children:"WfRun"}),"'s after they are completed or failed. Recommended for production settings to avoid running out of disk space; unless you are using a ",(0,r.jsx)(s.code,{children:"WfRun"})," as a data record, in which case the application should clean up ",(0,r.jsx)(s.code,{children:"WfRun"}),"'s as appropriate."]})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"migration"})}),(0,r.jsx)(s.td,{children:"optional"}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#wfspecversionmigration",children:"WfSpecVersionMigration"})}),(0,r.jsxs)(s.td,{children:["EXPERIMENTAL: ongoing migration from one version of a ",(0,r.jsx)(s.code,{children:"WfSpec"})," to another."]})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"parent_wf_spec"})}),(0,r.jsx)(s.td,{children:"optional"}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#wfspecparentwfspecreference",children:"WfSpec.ParentWfSpecReference"})}),(0,r.jsx)(s.td,{children:"Reference to the parent WfSpec. If this is set, all WfRun's for this WfSpec must be the child of a WfRun belonging to the referenced WfSpec."})]})]})]}),"\n",(0,r.jsxs)(s.h3,{id:"wfspecparentwfspecreference",children:["Message ",(0,r.jsx)(s.code,{children:"WfSpec.ParentWfSpecReference"})]}),"\n",(0,r.jsxs)(s.p,{children:["Reference to another WfSpec. If a WfSpec has a ParentWfSpecReference, then all\nWfRun's for that WfSpec ",(0,r.jsx)(s.em,{children:"MUST"})," be the child of a WfRun of the provided WfSpec; meaning\nthat the RunWf RPC must provide a ",(0,r.jsx)(s.code,{children:"parent_wf_run_id"})," that belongs to the specified\nWfSpec."]}),"\n",(0,r.jsx)(s.p,{children:"Currently, only reference by names is supported."}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Field"}),(0,r.jsx)(s.th,{children:"Label"}),(0,r.jsx)(s.th,{children:"Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsxs)(s.tbody,{children:[(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"wf_spec_name"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:"string"}),(0,r.jsx)(s.td,{children:"Name of the Parent WfSpec"})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"wf_spec_major_version"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:"int32"}),(0,r.jsx)(s.td,{children:"FOR NOW: no validation of variables on parent. In the future we will pass wf_spec_major_version, but we should probably examine the rules for evolution in the future."})]})]})]}),"\n",(0,r.jsxs)(s.h3,{id:"wfspecthreadspecsentry",children:["Message ",(0,r.jsx)(s.code,{children:"WfSpec.ThreadSpecsEntry"})]}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Field"}),(0,r.jsx)(s.th,{children:"Label"}),(0,r.jsx)(s.th,{children:"Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsxs)(s.tbody,{children:[(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"key"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:"string"}),(0,r.jsx)(s.td,{})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"value"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#threadspec",children:"ThreadSpec"})}),(0,r.jsx)(s.td,{})]})]})]}),"\n",(0,r.jsxs)(s.h3,{id:"wfspecversionmigration",children:["Message ",(0,r.jsx)(s.code,{children:"WfSpecVersionMigration"})]}),"\n",(0,r.jsx)(s.p,{children:"EXPERIMENTAL: Specification for how to migrate an in-flight WfRun from one WfSpec\nto another WfSpec version."}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Field"}),(0,r.jsx)(s.th,{children:"Label"}),(0,r.jsx)(s.th,{children:"Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsxs)(s.tbody,{children:[(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"new_major_version"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:"int32"}),(0,r.jsx)(s.td,{children:"The major version of the WfSpec that we are migrating to."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"new_revision"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:"int32"}),(0,r.jsx)(s.td,{children:"The revision of the WfSpec that we are migrating to."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"thread_spec_migrations"})}),(0,r.jsx)(s.td,{children:"map"}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#wfspecversionmigrationthreadspecmigrationsentry",children:"WfSpecVersionMigration.ThreadSpecMigrationsEntry"})}),(0,r.jsx)(s.td,{children:"Map from ThreadSpec name to a specifier determining how to migrate ThreadRun's to the new version of the WfSpec."})]})]})]}),"\n",(0,r.jsxs)(s.h3,{id:"wfspecversionmigrationthreadspecmigrationsentry",children:["Message ",(0,r.jsx)(s.code,{children:"WfSpecVersionMigration.ThreadSpecMigrationsEntry"})]}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Field"}),(0,r.jsx)(s.th,{children:"Label"}),(0,r.jsx)(s.th,{children:"Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsxs)(s.tbody,{children:[(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"key"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:"string"}),(0,r.jsx)(s.td,{})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"value"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#threadspecmigration",children:"ThreadSpecMigration"})}),(0,r.jsx)(s.td,{})]})]})]}),"\n",(0,r.jsxs)(s.h3,{id:"workflowretentionpolicy",children:["Message ",(0,r.jsx)(s.code,{children:"WorkflowRetentionPolicy"})]}),"\n",(0,r.jsx)(s.p,{children:"A WorkflowRetentionPolicy configures how long a WfRun is retained in the data store before\nbeing deleted after it is completed or failed."}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Field"}),(0,r.jsx)(s.th,{children:"Label"}),(0,r.jsx)(s.th,{children:"Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsx)(s.tbody,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"seconds_after_wf_termination"})}),(0,r.jsxs)(s.td,{children:["oneof ",(0,r.jsx)(s.code,{children:"wf_gc_policy"})]}),(0,r.jsx)(s.td,{children:"int64"}),(0,r.jsx)(s.td,{children:"Delete all WfRun's X seconds after they terminate, regardless of status."})]})})]}),"\n",(0,r.jsxs)(s.h3,{id:"workflowevent",children:["Message ",(0,r.jsx)(s.code,{children:"WorkflowEvent"})]}),"\n",(0,r.jsxs)(s.p,{children:['A WorkflowEvent represents a "Thing That Happened" ',(0,r.jsx)(s.em,{children:"INSIDE"})," a WfRun. It is DIFFERENT from\nan ExternalEvent, because an ExternalEvent represents something that happened OUTSIDE the WfRun,\nand is used to send information to the WfRun."]}),"\n",(0,r.jsx)(s.p,{children:"In contrast, a WorkflowEvent is thrown by the WfRun and is used to send information to the outside\nworld."}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Field"}),(0,r.jsx)(s.th,{children:"Label"}),(0,r.jsx)(s.th,{children:"Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsxs)(s.tbody,{children:[(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"id"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#workfloweventid",children:"WorkflowEventId"})}),(0,r.jsx)(s.td,{children:"The ID of the WorkflowEvent. Contains WfRunId and WorkflowEventDefId."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"content"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#variablevalue",children:"VariableValue"})}),(0,r.jsx)(s.td,{children:"The content of the WorkflowEvent."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"created_at"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:"google.protobuf.Timestamp"}),(0,r.jsx)(s.td,{children:"The time that the WorkflowEvent was created."})]})]})]}),"\n",(0,r.jsxs)(s.h3,{id:"workfloweventdef",children:["Message ",(0,r.jsx)(s.code,{children:"WorkflowEventDef"})]}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Field"}),(0,r.jsx)(s.th,{children:"Label"}),(0,r.jsx)(s.th,{children:"Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsxs)(s.tbody,{children:[(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"id"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#workfloweventdefid",children:"WorkflowEventDefId"})}),(0,r.jsx)(s.td,{})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"created_at"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:"google.protobuf.Timestamp"}),(0,r.jsx)(s.td,{})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"type"})}),(0,r.jsx)(s.td,{}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"#variabletype",children:"VariableType"})}),(0,r.jsx)(s.td,{})]})]})]}),"\n",(0,r.jsx)(s.h2,{id:"littlehorse-enums",children:"LittleHorse Enums"}),"\n",(0,r.jsx)(s.p,{children:"This section contains the enums defined by the LittleHorse API."}),"\n",(0,r.jsx)(s.h3,{id:"aclaction",children:"Enum ACLAction"}),"\n",(0,r.jsx)(s.p,{children:"Describes an Action that can be taken over a specific set of resources."}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Name"}),(0,r.jsx)(s.th,{children:"Number"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsxs)(s.tbody,{children:[(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:"READ"}),(0,r.jsx)(s.td,{children:"0"}),(0,r.jsxs)(s.td,{children:["Allows all RPC's that start with ",(0,r.jsx)(s.code,{children:"Get"}),", ",(0,r.jsx)(s.code,{children:"List"}),", and ",(0,r.jsx)(s.code,{children:"Search"})," in relation to the metadata (eg. ",(0,r.jsx)(s.code,{children:"TaskDef"})," for ",(0,r.jsx)(s.code,{children:"ACL_TASK"}),") or run data (eg. ",(0,r.jsx)(s.code,{children:"TaskRun"})," for ",(0,r.jsx)(s.code,{children:"ACL_TASK"}),")"]})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:"RUN"}),(0,r.jsx)(s.td,{children:"1"}),(0,r.jsxs)(s.td,{children:["Allows RPC's that are needed for mutating the ",(0,r.jsx)(s.em,{children:"runs"})," of the resource. For example, ",(0,r.jsx)(s.code,{children:"RUN"})," over ",(0,r.jsx)(s.code,{children:"ACL_TASK"})," allows the ",(0,r.jsx)(s.code,{children:"ReportTask"})," and ",(0,r.jsx)(s.code,{children:"PollTask"})," RPC's, and ",(0,r.jsx)(s.code,{children:"RUN"})," over ",(0,r.jsx)(s.code,{children:"ACL_WORKFLOW"})," allows the ",(0,r.jsx)(s.code,{children:"RunWf"}),", ",(0,r.jsx)(s.code,{children:"DeleteWfRun"}),", ",(0,r.jsx)(s.code,{children:"StopWfRun"}),", and ",(0,r.jsx)(s.code,{children:"ResumeWfRun"})," RPC's."]})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:"WRITE_METADATA"}),(0,r.jsx)(s.td,{children:"2"}),(0,r.jsxs)(s.td,{children:["Allows mutating metadata. For example, ",(0,r.jsx)(s.code,{children:"WRITE_METADATA"})," over ",(0,r.jsx)(s.code,{children:"ACL_WORKFLOW"})," allows mutating ",(0,r.jsx)(s.code,{children:"WfSpec"}),"s, and ",(0,r.jsx)(s.code,{children:"WRITE_METADATA"})," over ",(0,r.jsx)(s.code,{children:"ACL_TASK"})," allows mutating ",(0,r.jsx)(s.code,{children:"TaskDef"}),"s."]})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:"ALL_ACTIONS"}),(0,r.jsx)(s.td,{children:"3"}),(0,r.jsx)(s.td,{children:"Allows all actions related to a resource."})]})]})]}),"\n",(0,r.jsx)(s.h3,{id:"aclresource",children:"Enum ACLResource"}),"\n",(0,r.jsx)(s.p,{children:"Defines a resource type for ACL's."}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Name"}),(0,r.jsx)(s.th,{children:"Number"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsxs)(s.tbody,{children:[(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:"ACL_WORKFLOW"}),(0,r.jsx)(s.td,{children:"0"}),(0,r.jsxs)(s.td,{children:["Refers to ",(0,r.jsx)(s.code,{children:"WfSpec"})," and ",(0,r.jsx)(s.code,{children:"WfRun"})]})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:"ACL_TASK"}),(0,r.jsx)(s.td,{children:"1"}),(0,r.jsxs)(s.td,{children:["Refers to ",(0,r.jsx)(s.code,{children:"TaskDef"})," and ",(0,r.jsx)(s.code,{children:"TaskRun"})]})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:"ACL_EXTERNAL_EVENT"}),(0,r.jsx)(s.td,{children:"2"}),(0,r.jsxs)(s.td,{children:["Refers to ",(0,r.jsx)(s.code,{children:"ExternalEventDef"})," and ",(0,r.jsx)(s.code,{children:"ExternalEvent"})]})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:"ACL_USER_TASK"}),(0,r.jsx)(s.td,{children:"3"}),(0,r.jsxs)(s.td,{children:["Refers to ",(0,r.jsx)(s.code,{children:"UserTaskDef"})," and ",(0,r.jsx)(s.code,{children:"UserTaskRun"})]})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:"ACL_PRINCIPAL"}),(0,r.jsx)(s.td,{children:"4"}),(0,r.jsxs)(s.td,{children:["Refers to the ",(0,r.jsx)(s.code,{children:"Principal"})," resource. Currently, the ",(0,r.jsx)(s.code,{children:"ACL_PRINCIPAL"})," permission is only valid in the ",(0,r.jsx)(s.code,{children:"global_acls"})," field of the ",(0,r.jsx)(s.code,{children:"Principal"}),". A ",(0,r.jsx)(s.code,{children:"Principal"})," who only has access to a specific Tenant cannot create othe Principals because a Principal is scoped to the Cluster, and not to a Tenant."]})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:"ACL_TENANT"}),(0,r.jsx)(s.td,{children:"5"}),(0,r.jsxs)(s.td,{children:["Refers to the ",(0,r.jsx)(s.code,{children:"Tenant"})," resource. The ",(0,r.jsx)(s.code,{children:"ACL_TENANT"})," permission is only valid in the ",(0,r.jsx)(s.code,{children:"global_acls"})," field of the ",(0,r.jsx)(s.code,{children:"Principal"}),". This is because the ",(0,r.jsx)(s.code,{children:"Tenant"})," resource is cluste-rscoped."]})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:"ACL_ALL_RESOURCES"}),(0,r.jsx)(s.td,{children:"6"}),(0,r.jsxs)(s.td,{children:["Refers to all resources. In the ",(0,r.jsx)(s.code,{children:"global_acls"})," field, this includes ",(0,r.jsx)(s.code,{children:"Principal"})," and ",(0,r.jsx)(s.code,{children:"Tenant"})," resources. In the ",(0,r.jsx)(s.code,{children:"per_tenant_acls"})," field, this does not include ",(0,r.jsx)(s.code,{children:"Principal"})," and ",(0,r.jsx)(s.code,{children:"Tenant"})," since those are cluster-scoped resources."]})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:"ACL_TASK_WORKER_GROUP"}),(0,r.jsx)(s.td,{children:"7"}),(0,r.jsxs)(s.td,{children:["Refers to the ",(0,r.jsx)(s.code,{children:"TaskWorkerGroup"})," associated with a TaskDef"]})]})]})]}),"\n",(0,r.jsx)(s.h3,{id:"lherrortype",children:"Enum LHErrorType"}),"\n",(0,r.jsx)(s.p,{children:"This enum is all of the types of technical failure that can occur in a WfRun."}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Name"}),(0,r.jsx)(s.th,{children:"Number"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsxs)(s.tbody,{children:[(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:"CHILD_FAILURE"}),(0,r.jsx)(s.td,{children:"0"}),(0,r.jsx)(s.td,{children:"A child ThreadRun failed with a technical ERROR."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:"VAR_SUB_ERROR"}),(0,r.jsx)(s.td,{children:"1"}),(0,r.jsx)(s.td,{children:"Failed substituting input variables into a NodeRun."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:"VAR_MUTATION_ERROR"}),(0,r.jsx)(s.td,{children:"2"}),(0,r.jsx)(s.td,{children:"Failed mutating variables after a NodeRun successfully completed."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:"USER_TASK_CANCELLED"}),(0,r.jsx)(s.td,{children:"3"}),(0,r.jsx)(s.td,{children:"A UserTaskRun was cancelled (EVOLVING: this will become a Business EXCEPTION)"})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:"TIMEOUT"}),(0,r.jsx)(s.td,{children:"4"}),(0,r.jsx)(s.td,{children:"A NodeRun failed due to a timeout."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:"TASK_FAILURE"}),(0,r.jsx)(s.td,{children:"5"}),(0,r.jsx)(s.td,{children:"A TaskRun failed due to an unexpected error."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:"VAR_ERROR"}),(0,r.jsx)(s.td,{children:"6"}),(0,r.jsx)(s.td,{children:"Wrapper for VAR_SUB_ERROR and VAR_MUTATION_ERROR"})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:"TASK_ERROR"}),(0,r.jsx)(s.td,{children:"7"}),(0,r.jsx)(s.td,{children:"Wrapper for TASK_FALIURE and TIMEOUT"})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:"INTERNAL_ERROR"}),(0,r.jsx)(s.td,{children:"8"}),(0,r.jsx)(s.td,{children:"An unexpected LittleHorse Internal error occurred. This is not expected to happen."})]})]})]}),"\n",(0,r.jsx)(s.h3,{id:"lhstatus",children:"Enum LHStatus"}),"\n",(0,r.jsx)(s.p,{children:"Status used for WfRun, ThreadRun, and NodeRun"}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Name"}),(0,r.jsx)(s.th,{children:"Number"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsxs)(s.tbody,{children:[(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:"STARTING"}),(0,r.jsx)(s.td,{children:"0"}),(0,r.jsx)(s.td,{children:"The entity is starting."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:"RUNNING"}),(0,r.jsx)(s.td,{children:"1"}),(0,r.jsx)(s.td,{children:"The entity is running."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:"COMPLETED"}),(0,r.jsx)(s.td,{children:"2"}),(0,r.jsx)(s.td,{children:"The entity is completed. This is a terminal state."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:"HALTING"}),(0,r.jsx)(s.td,{children:"3"}),(0,r.jsxs)(s.td,{children:["The entity will move to ",(0,r.jsx)(s.code,{children:"HALTED"})," as soon as all preconditions for halting are satisfied."]})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:"HALTED"}),(0,r.jsx)(s.td,{children:"4"}),(0,r.jsx)(s.td,{children:"The entity is halted, either by user intervention or by the workflow scheduler."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:"ERROR"}),(0,r.jsx)(s.td,{children:"5"}),(0,r.jsx)(s.td,{children:"The entity has failed due to a technical failure, such as a type conversion error, a task timeout due to network failure, or a task worker crash."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:"EXCEPTION"}),(0,r.jsx)(s.td,{children:"6"}),(0,r.jsx)(s.td,{children:"The entity has failed due to a business exception defined by the user."})]})]})]}),"\n",(0,r.jsx)(s.h3,{id:"metadatastatus",children:"Enum MetadataStatus"}),"\n",(0,r.jsx)(s.p,{children:"Status of a Metadata Object, such as WfSpec or TaskDef"}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Name"}),(0,r.jsx)(s.th,{children:"Number"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsxs)(s.tbody,{children:[(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:"ACTIVE"}),(0,r.jsx)(s.td,{children:"0"}),(0,r.jsx)(s.td,{children:"ACTIVE means the object can be used."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:"ARCHIVED"}),(0,r.jsx)(s.td,{children:"1"}),(0,r.jsx)(s.td,{children:"An ARCHIVED WfSpec can no longer be used to create new WfRun's, but existing WfRun's will be allowed to run to completion."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:"TERMINATING"}),(0,r.jsx)(s.td,{children:"2"}),(0,r.jsx)(s.td,{children:"A TERMINATING WfSpec is actively deleting all running WfRun's, and will self-destruct once all of its child WfRun's are terminated."})]})]})]}),"\n",(0,r.jsx)(s.h3,{id:"metricswindowlength",children:"Enum MetricsWindowLength"}),"\n",(0,r.jsx)(s.p,{children:"Metrics"}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Name"}),(0,r.jsx)(s.th,{children:"Number"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsxs)(s.tbody,{children:[(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:"MINUTES_5"}),(0,r.jsx)(s.td,{children:"0"}),(0,r.jsx)(s.td,{})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:"HOURS_2"}),(0,r.jsx)(s.td,{children:"1"}),(0,r.jsx)(s.td,{})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:"DAYS_1"}),(0,r.jsx)(s.td,{children:"2"}),(0,r.jsx)(s.td,{})]})]})]}),"\n",(0,r.jsx)(s.h3,{id:"taskstatus",children:"Enum TaskStatus"}),"\n",(0,r.jsx)(s.p,{children:"Status of a TaskRun."}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Name"}),(0,r.jsx)(s.th,{children:"Number"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsxs)(s.tbody,{children:[(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:"TASK_SCHEDULED"}),(0,r.jsx)(s.td,{children:"0"}),(0,r.jsx)(s.td,{children:"Scheduled in the Task Queue but not yet picked up by a Task Worker."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:"TASK_RUNNING"}),(0,r.jsx)(s.td,{children:"1"}),(0,r.jsx)(s.td,{children:"Picked up by a Task Worker, but not yet reported or timed out."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:"TASK_SUCCESS"}),(0,r.jsx)(s.td,{children:"2"}),(0,r.jsx)(s.td,{children:"Successfully completed."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:"TASK_FAILED"}),(0,r.jsx)(s.td,{children:"3"}),(0,r.jsx)(s.td,{children:"Task Worker reported a technical failure while attempting to execute the TaskRun"})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:"TASK_TIMEOUT"}),(0,r.jsx)(s.td,{children:"4"}),(0,r.jsx)(s.td,{children:"Task Worker did not report a result in time."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:"TASK_OUTPUT_SERIALIZING_ERROR"}),(0,r.jsx)(s.td,{children:"5"}),(0,r.jsx)(s.td,{children:"Task Worker reported that it was unable to serialize the output of the TaskRun."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:"TASK_INPUT_VAR_SUB_ERROR"}),(0,r.jsx)(s.td,{children:"6"}),(0,r.jsx)(s.td,{children:"Task Worker was unable to deserialize the input variables into appropriate language-specific objects to pass into the Task Function"})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:"TASK_EXCEPTION"}),(0,r.jsx)(s.td,{children:"8"}),(0,r.jsx)(s.td,{children:"Task Function business logic determined that there was a business exception."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:"TASK_PENDING"}),(0,r.jsx)(s.td,{children:"9"}),(0,r.jsx)(s.td,{children:'Refers to a TaskAttempt that is not yet scheduled. This happens when using retries with an ExponentialBackoffRetryPolicy: the TaskAttempt isn\'t supposed to be scheduled until it "matures", but it does already exist.'})]})]})]}),"\n",(0,r.jsx)(s.h3,{id:"variabletype",children:"Enum VariableType"}),"\n",(0,r.jsx)(s.p,{children:"Type of a Varaible in LittleHorse. Corresponds to the possible value type's of a\nVariableValue."}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Name"}),(0,r.jsx)(s.th,{children:"Number"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsx)(s.tbody,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:"JSON_OBJ"}),(0,r.jsx)(s.td,{children:"0"}),(0,r.jsxs)(s.td,{children:["An object represented as a json string. ",(0,r.jsx)("br",{})]})]})})]}),"\n",(0,r.jsxs)(s.p,{children:["The ",(0,r.jsx)(s.code,{children:"JSON_OBJ"})," variable allows you to store complex objects in the JSON format. When using the Java and GoLang SDK's, the ",(0,r.jsx)(s.code,{children:"JSON_OBJ"})," variable type is often used transparently to the user. For example, the Java Task Worker SDK can inspect your method signature and automatically deserialize an input variable into a POJO. |\n| JSON_ARR | 1 | The ",(0,r.jsx)(s.code,{children:"JSON_ARR"})," variable allows you to store collections of objects as a JSON array. The behavior is similar to the ",(0,r.jsx)(s.code,{children:"JSON_OBJ"})," variable type. |\n| DOUBLE | 2 | The ",(0,r.jsx)(s.code,{children:"DOUBLE"})," variable type is a 64-bit floating point number. It can be cast to an ",(0,r.jsx)(s.code,{children:"INT"}),". |\n| BOOL | 3 | Boolean denotes a simple boolean switch. |\n| STR | 4 | The ",(0,r.jsx)(s.code,{children:"STR"})," variable type is stored as a String. ",(0,r.jsx)(s.code,{children:"INT"}),", ",(0,r.jsx)(s.code,{children:"DOUBLE"}),", and ",(0,r.jsx)(s.code,{children:"BOOL"})," variables can be cast to a ",(0,r.jsx)(s.code,{children:"STR"}),". |\n| INT | 5 | The ",(0,r.jsx)(s.code,{children:"INT"})," variable type is stored as a 64-bit integer. The ",(0,r.jsx)(s.code,{children:"INT"})," can be cast to a ",(0,r.jsx)(s.code,{children:"DOUBLE"}),". |\n| BYTES | 6 | The ",(0,r.jsx)(s.code,{children:"BYTES"})," variable type allows you to store an arbitrary byte string. |"]}),"\n",(0,r.jsx)(s.h3,{id:"comparator",children:"Enum Comparator"}),"\n",(0,r.jsx)(s.p,{children:"Operator for comparing two values to create a boolean expression."}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Name"}),(0,r.jsx)(s.th,{children:"Number"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsxs)(s.tbody,{children:[(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:"LESS_THAN"}),(0,r.jsx)(s.td,{children:"0"}),(0,r.jsxs)(s.td,{children:["Equivalent to ",(0,r.jsx)(s.code,{children:"<"}),". Only valid for primitive types (no JSON_OBJ or JSON_ARR)."]})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:"GREATER_THAN"}),(0,r.jsx)(s.td,{children:"1"}),(0,r.jsxs)(s.td,{children:["Equivalent to ",(0,r.jsx)(s.code,{children:">"}),". Only valid for primitive types (no JSON_OBJ or JSON_ARR)."]})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:"LESS_THAN_EQ"}),(0,r.jsx)(s.td,{children:"2"}),(0,r.jsxs)(s.td,{children:["Equivalent to ",(0,r.jsx)(s.code,{children:"<="}),". Only valid for primitive types (no JSON_OBJ or JSON_ARR)."]})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:"GREATER_THAN_EQ"}),(0,r.jsx)(s.td,{children:"3"}),(0,r.jsxs)(s.td,{children:["Equivalent to ",(0,r.jsx)(s.code,{children:">="}),". Only valid for primitive types (no JSON_OBJ or JSON_ARR)."]})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:"EQUALS"}),(0,r.jsx)(s.td,{children:"4"}),(0,r.jsx)(s.td,{children:"This is valid for any variable type, and is similar to .equals() in Java."})]})]})]}),"\n",(0,r.jsxs)(s.p,{children:["One note: if the RHS is a different type from the LHS, then LittleHorse will try to cast the RHS to the same type as the LHS. If the cast fails, then the ThreadRun fails with a VAR_SUB_ERROR. |\n| NOT_EQUALS | 5 | This is the inverse of ",(0,r.jsx)(s.code,{children:"EQUALS"})," |\n| IN | 6 | Only valid if the RHS is a JSON_OBJ or JSON_ARR. Valid for any type on the LHS."]}),"\n",(0,r.jsxs)(s.p,{children:["For the JSON_OBJ type, this returns true if the LHS is equal to a ",(0,r.jsx)(s.em,{children:"KEY"})," in the RHS. For the JSON_ARR type, it returns true if one of the elements of the RHS is equal to the LHS. |\n| NOT_IN | 7 | The inverse of IN. |"]}),"\n",(0,r.jsx)(s.h3,{id:"utactiontriggeruthook",children:"Enum UTActionTrigger.UTHook"}),"\n",(0,r.jsx)(s.p,{children:"Enumerates the different lifecycle hooks that can cause the timer to start running."}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Name"}),(0,r.jsx)(s.th,{children:"Number"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsxs)(s.tbody,{children:[(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:"ON_ARRIVAL"}),(0,r.jsx)(s.td,{children:"0"}),(0,r.jsxs)(s.td,{children:["The hook should be scheduled ",(0,r.jsx)(s.code,{children:"delay_seconds"})," after the UserTaskRun is created. This hook only causes the action to be scheduled once."]})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:"ON_TASK_ASSIGNED"}),(0,r.jsx)(s.td,{children:"1"}),(0,r.jsxs)(s.td,{children:["The hook should be scheduled ",(0,r.jsx)(s.code,{children:"delay_seconds"}),' after the ownership of the UserTaskRun changes. This hook causes the Action to be scheduled one or more times. The first time is scheduled when the UserTaskRun is created, since we treat the change from "UserTaskRun is nonexistent" to "UserTaskRun is owned by a userId or userGroup" as a change in ownership.']})]})]})]}),"\n",(0,r.jsx)(s.h3,{id:"variablemutationtype",children:"Enum VariableMutationType"}),"\n",(0,r.jsx)(s.p,{children:"Enumerates the available operations to mutate a variable in a WfRun."}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Name"}),(0,r.jsx)(s.th,{children:"Number"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsxs)(s.tbody,{children:[(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:"ASSIGN"}),(0,r.jsx)(s.td,{children:"0"}),(0,r.jsx)(s.td,{children:"Set the variable specified by the LHS to the value of the RHS."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:"ADD"}),(0,r.jsx)(s.td,{children:"1"}),(0,r.jsx)(s.td,{children:"Add the RHS to the LHS."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:"EXTEND"}),(0,r.jsx)(s.td,{children:"2"}),(0,r.jsx)(s.td,{children:"Append the RHS to the LHS (valid if the LHS is a STR or JSON_ARR)"})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:"SUBTRACT"}),(0,r.jsx)(s.td,{children:"3"}),(0,r.jsx)(s.td,{children:"Subtract the RHS from the LHS (both must be INT or DOUBLE)"})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:"MULTIPLY"}),(0,r.jsx)(s.td,{children:"4"}),(0,r.jsx)(s.td,{children:"Multiply the LHS by the RHS (both must be INT or DOUBLE)"})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:"DIVIDE"}),(0,r.jsx)(s.td,{children:"5"}),(0,r.jsx)(s.td,{children:"Divide the LHS by the RHS (both must be INT or DOUBLE)"})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:"REMOVE_IF_PRESENT"}),(0,r.jsx)(s.td,{children:"6"}),(0,r.jsx)(s.td,{children:"Remove any occurrences of RHS from LHS (LHS must be JSON_ARR)"})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:"REMOVE_INDEX"}),(0,r.jsx)(s.td,{children:"7"}),(0,r.jsx)(s.td,{children:"Remove item at index RHS from LHS (LHS must be JSON_ARR)"})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:"REMOVE_KEY"}),(0,r.jsx)(s.td,{children:"8"}),(0,r.jsx)(s.td,{children:"Remove the key specified by RHS from the LHS (LHS must be JSON_OBJ)"})]})]})]}),"\n",(0,r.jsx)(s.h3,{id:"waitforthreadsrunwaitingthreadstatus",children:"Enum WaitForThreadsRun.WaitingThreadStatus"}),"\n",(0,r.jsx)(s.p,{children:"The status of a single ThreadRun that we are waiting for."}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Name"}),(0,r.jsx)(s.th,{children:"Number"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsxs)(s.tbody,{children:[(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:"THREAD_IN_PROGRESS"}),(0,r.jsx)(s.td,{children:"0"}),(0,r.jsx)(s.td,{children:"The ThreadRun is in progress (i.e. not COMPLETED nor EXCEPTION nor ERROR)"})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:"THREAD_HANDLING_FAILURE"}),(0,r.jsx)(s.td,{children:"1"}),(0,r.jsx)(s.td,{children:"The ThreadRun failed with some failure, and the FailureHandler is running for that Failure."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:"THREAD_COMPLETED_OR_FAILURE_HANDLED"}),(0,r.jsx)(s.td,{children:"2"}),(0,r.jsx)(s.td,{children:'We can mark this ThreadRun as "already waited for", meaning that either: 1. It completed successfully, OR 2. It failed, and the Failure Handler successfully completed'})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:"THREAD_UNSUCCESSFUL"}),(0,r.jsx)(s.td,{children:"3"}),(0,r.jsx)(s.td,{children:"The ThreadRun did not complete successfully, and there wasn't a successful run of a Failure Handler for the Failure that was thrown."})]})]})]}),"\n",(0,r.jsx)(s.h3,{id:"allowedupdatetype",children:"Enum AllowedUpdateType"}),"\n",(0,r.jsx)(s.p,{children:"This enum controls the behavior of a PutWfSpecRequest when a WfSpec with the same\nname previously exists."}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Name"}),(0,r.jsx)(s.th,{children:"Number"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsxs)(s.tbody,{children:[(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:"ALL_UPDATES"}),(0,r.jsx)(s.td,{children:"0"}),(0,r.jsx)(s.td,{children:"Allows any update: both minor (revsion) changes and breaking (majorVersion) changes are accepted"})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:"MINOR_REVISION_UPDATES"}),(0,r.jsx)(s.td,{children:"1"}),(0,r.jsx)(s.td,{children:"Allows only backwards-compatible changes that do not change the required input variables or the searchable variables in the WfSpec."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:"NO_UPDATES"}),(0,r.jsx)(s.td,{children:"2"}),(0,r.jsx)(s.td,{children:"Rejects any changes to the WfSpec."})]})]})]}),"\n",(0,r.jsx)(s.h3,{id:"searchnoderunrequestnodetype",children:"Enum SearchNodeRunRequest.NodeType"}),"\n",(0,r.jsx)(s.p,{children:"This enum denotes the type of a NodeRun."}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Name"}),(0,r.jsx)(s.th,{children:"Number"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsxs)(s.tbody,{children:[(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:"TASK"}),(0,r.jsx)(s.td,{children:"0"}),(0,r.jsx)(s.td,{children:"TASK node schedules a TaskRun"})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:"EXTERNAL_EVENT"}),(0,r.jsx)(s.td,{children:"1"}),(0,r.jsx)(s.td,{children:"EXTERNAL_EVENT blocks the ThreadRun until a specified ExternalEvent arrives"})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:"ENTRYPOINT"}),(0,r.jsx)(s.td,{children:"2"}),(0,r.jsx)(s.td,{children:"ENTRYPOINT kicks off a ThreadRun"})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:"EXIT"}),(0,r.jsx)(s.td,{children:"3"}),(0,r.jsx)(s.td,{children:"EXIT completes a ThreadRun"})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:"START_THREAD"}),(0,r.jsx)(s.td,{children:"4"}),(0,r.jsx)(s.td,{children:"START_THREAD creates a Child ThreadRun"})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:"WAIT_THREADS"}),(0,r.jsx)(s.td,{children:"5"}),(0,r.jsx)(s.td,{children:"WAIT_THREADS waits for one or more child ThreadRuns to complete"})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:"SLEEP"}),(0,r.jsx)(s.td,{children:"6"}),(0,r.jsx)(s.td,{children:"SLEEP makes the ThreadRun sleep for a specified time"})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:"USER_TASK"}),(0,r.jsx)(s.td,{children:"7"}),(0,r.jsx)(s.td,{children:"USER_TASK creates a UserTaskRun and blocks until the UserTaskRun is completed."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:"START_MULTIPLE_THREADS"}),(0,r.jsx)(s.td,{children:"8"}),(0,r.jsx)(s.td,{children:"START_MULTIPLE_THREADS iterates over a list and starts a Child Thread for each item"})]})]})]}),"\n",(0,r.jsx)(s.h3,{id:"saveusertaskrunprogressrequestsaveusertaskrunassignmentpolicy",children:"Enum SaveUserTaskRunProgressRequest.SaveUserTaskRunAssignmentPolicy"}),"\n",(0,r.jsxs)(s.p,{children:["Configures how to handle ",(0,r.jsx)(s.code,{children:"UserTaskRun"})," ownership when saving it."]}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Name"}),(0,r.jsx)(s.th,{children:"Number"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsxs)(s.tbody,{children:[(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:"FAIL_IF_CLAIMED_BY_OTHER"}),(0,r.jsx)(s.td,{children:"0"}),(0,r.jsx)(s.td,{children:"If the UserTaskRun is already assigned to a user_id, then the request throws a FAILED_PRECONDITION error."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:"IGNORE_CLAIM"}),(0,r.jsx)(s.td,{children:"1"}),(0,r.jsxs)(s.td,{children:["If the UserTaskRun is already assigned to a user_id, then the request will leave the ",(0,r.jsx)(s.code,{children:"UserTaskRun"})," assigned to the current user but still update the ",(0,r.jsx)(s.code,{children:"results"})," and log in the ",(0,r.jsx)(s.code,{children:"events"})," who updated the results."]})]})]})]}),"\n",(0,r.jsx)(s.h3,{id:"usertaskrunstatus",children:"Enum UserTaskRunStatus"}),"\n",(0,r.jsx)(s.p,{children:"The status that a UserTaskRun can be in."}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Name"}),(0,r.jsx)(s.th,{children:"Number"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsxs)(s.tbody,{children:[(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:"UNASSIGNED"}),(0,r.jsx)(s.td,{children:"0"}),(0,r.jsx)(s.td,{children:"Not assigned to a specific user yet."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:"ASSIGNED"}),(0,r.jsx)(s.td,{children:"1"}),(0,r.jsx)(s.td,{children:"Assigned to a specific user, but not completed or cancelled yet."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:"DONE"}),(0,r.jsx)(s.td,{children:"3"}),(0,r.jsx)(s.td,{children:"Done."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:"CANCELLED"}),(0,r.jsx)(s.td,{children:"4"}),(0,r.jsx)(s.td,{children:"Cancelled."})]})]})]}),"\n",(0,r.jsx)(s.h3,{id:"threadtype",children:"Enum ThreadType"}),"\n",(0,r.jsx)(s.p,{children:"The type of a ThreadRUn."}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Name"}),(0,r.jsx)(s.th,{children:"Number"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsxs)(s.tbody,{children:[(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:"ENTRYPOINT"}),(0,r.jsx)(s.td,{children:"0"}),(0,r.jsx)(s.td,{children:"The ENTRYPOINT ThreadRun. Exactly one per WfRun. Always has number == 0."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:"CHILD"}),(0,r.jsx)(s.td,{children:"1"}),(0,r.jsx)(s.td,{children:"A ThreadRun explicitly created by another ThreadRun via a START_THREAD or START_MULTIPLE_THREADS NodeRun."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:"INTERRUPT"}),(0,r.jsx)(s.td,{children:"2"}),(0,r.jsx)(s.td,{children:"A ThreadRun that was created to handle an Interrupt."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:"FAILURE_HANDLER"}),(0,r.jsx)(s.td,{children:"3"}),(0,r.jsx)(s.td,{children:"A ThreadRun that was created to handle a Failure."})]})]})]}),"\n",(0,r.jsx)(s.h3,{id:"failurehandlerdeflhfailuretype",children:"Enum FailureHandlerDef.LHFailureType"}),"\n",(0,r.jsx)(s.p,{children:"Specifies a type of Failure"}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Name"}),(0,r.jsx)(s.th,{children:"Number"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsxs)(s.tbody,{children:[(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:"FAILURE_TYPE_ERROR"}),(0,r.jsx)(s.td,{children:"0"}),(0,r.jsxs)(s.td,{children:["FAILURE_TYPE_ERROR specifies any technical ",(0,r.jsx)(s.code,{children:"ERROR"}),"."]})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:"FAILURE_TYPE_EXCEPTION"}),(0,r.jsx)(s.td,{children:"1"}),(0,r.jsxs)(s.td,{children:["Specifies a user-defined, business-related ",(0,r.jsx)(s.code,{children:"EXCEPTION"}),"."]})]})]})]}),"\n",(0,r.jsx)(s.h3,{id:"wfrunvariableaccesslevel",children:"Enum WfRunVariableAccessLevel"}),"\n",(0,r.jsx)(s.p,{children:"Determines the Access Level for a Variable in a ThreadSpec/WfSpec."}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Name"}),(0,r.jsx)(s.th,{children:"Number"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsxs)(s.tbody,{children:[(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:"PUBLIC_VAR"}),(0,r.jsx)(s.td,{children:"0"}),(0,r.jsxs)(s.td,{children:["A ",(0,r.jsx)(s.code,{children:"PUBLIC_VAR"})," can be accessed (read + mutated) by child ",(0,r.jsx)(s.code,{children:"WfRun"}),"'s."]})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:"PRIVATE_VAR"}),(0,r.jsx)(s.td,{children:"1"}),(0,r.jsxs)(s.td,{children:["A ",(0,r.jsx)(s.code,{children:"PRIVATE_VAR"})," cannot be accessed by a child ",(0,r.jsx)(s.code,{children:"WfRun"}),"."]})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:"INHERITED_VAR"}),(0,r.jsx)(s.td,{children:"2"}),(0,r.jsxs)(s.td,{children:["An ",(0,r.jsx)(s.code,{children:"INHERITED_VAR"})," is inherited from the parent ",(0,r.jsx)(s.code,{children:"WfRun"}),". Only valid in a ",(0,r.jsx)(s.code,{children:"WfSpec"})," that has a parent. Also can only be declared in the Entrypoint Thread."]})]})]})]})]})}function x(e={}){const{wrapper:s}={...(0,n.R)(),...e.components};return s?(0,r.jsx)(s,{...e,children:(0,r.jsx)(a,{...e})}):a(e)}},8453:(e,s,d)=>{d.d(s,{R:()=>i,x:()=>h});var r=d(6540);const n={},t=r.createContext(n);function i(e){const s=r.useContext(t);return r.useMemo((function(){return"function"==typeof e?e(s):{...s,...e}}),[s,e])}function h(e){let s;return s=e.disableParentContext?"function"==typeof e.components?e.components(n):e.components||n:i(e.components),r.createElement(t.Provider,{value:s},e.children)}}}]);
\ No newline at end of file
diff --git a/assets/js/74974c25.138c33f9.js b/assets/js/74974c25.138c33f9.js
new file mode 100644
index 000000000..39961d0fb
--- /dev/null
+++ b/assets/js/74974c25.138c33f9.js
@@ -0,0 +1 @@
+"use strict";(self.webpackChunklh_site=self.webpackChunklh_site||[]).push([[8090],{8805:(e,n,o)=>{o.r(n),o.d(n,{assets:()=>d,contentTitle:()=>a,default:()=>h,frontMatter:()=>t,metadata:()=>i,toc:()=>l});var r=o(4848),s=o(8453);const t={},a="Tips, Pointers, and FAQ",i={id:"faq",title:"Tips, Pointers, and FAQ",description:"We do our best to make our documentation easy to navigate; however, LittleHorse has a lot of features and it may not always be easy to find what you are looking for.",source:"@site/docs/07-faq.md",sourceDirName:".",slug:"/faq",permalink:"/docs/faq",draft:!1,unlisted:!1,tags:[],version:"current",sidebarPosition:7,frontMatter:{},sidebar:"tutorialSidebar",previous:{title:"Three LittleHorse Orchestrators",permalink:"/docs/operations/docker-compose/three-servers"},next:{title:"LittleHorse API Reference",permalink:"/docs/api"}},d={},l=[{value:"Workflow Basics",id:"workflow-basics",level:2},{value:"What is a WfSpec
and WfRun
?",id:"what-is-a-wfspec-and-wfrun",level:3},{value:"How do I create a WfSpec
?",id:"how-do-i-create-a-wfspec",level:3},{value:"Tasks",id:"tasks",level:3},{value:"What is a Task Worker?",id:"what-is-a-task-worker",level:3},{value:"How do I write a Task Worker?",id:"how-do-i-write-a-task-worker",level:3},{value:"How do I run a Workflow?",id:"how-do-i-run-a-workflow",level:3},{value:"Variables and Control Flow",id:"variables-and-control-flow",level:2},{value:"How do I pass information from one task to another?",id:"how-do-i-pass-information-from-one-task-to-another",level:3},{value:"How do I define variables in a Workflow?",id:"how-do-i-define-variables-in-a-workflow",level:3},{value:"Can I search for workflows by their variables?",id:"can-i-search-for-workflows-by-their-variables",level:3},{value:"How do I do if/else in a Workflow?",id:"how-do-i-do-ifelse-in-a-workflow",level:3},{value:"Can a workflow have loops?",id:"can-a-workflow-have-loops",level:3},{value:"External Events",id:"external-events",level:2},{value:"What is an ExternalEvent
?",id:"what-is-an-externalevent",level:3},{value:"How do I make a WfRun
wait for an event?",id:"how-do-i-make-a-wfrun-wait-for-an-event",level:3},{value:"How do I interrupt a WfRun
?",id:"how-do-i-interrupt-a-wfrun",level:3},{value:"What happens when a WfRun
is interrupted?",id:"what-happens-when-a-wfrun-is-interrupted",level:3},{value:"How can I access the content of an ExternalEvent
inside my workflow?",id:"how-can-i-access-the-content-of-an-externalevent-inside-my-workflow",level:3},{value:"How do I post an ExternalEvent
?",id:"how-do-i-post-an-externalevent",level:3},{value:"Can I make ExternalEvent
s idempotent?",id:"can-i-make-externalevents-idempotent",level:3},{value:"Workflow Threading",id:"workflow-threading",level:2},{value:"Can I run tasks in parallel?",id:"can-i-run-tasks-in-parallel",level:3},{value:"Can different threads share variables?",id:"can-different-threads-share-variables",level:3},{value:"What happens when a child fails?",id:"what-happens-when-a-child-fails",level:3},{value:"What happens to the child when a parent fails?",id:"what-happens-to-the-child-when-a-parent-fails",level:3},{value:"User Tasks",id:"user-tasks",level:2},{value:"What are User Tasks?",id:"what-are-user-tasks",level:3},{value:"How do I add a user task to my workflow?",id:"how-do-i-add-a-user-task-to-my-workflow",level:3},{value:"Do User Tasks support users and user groups?",id:"do-user-tasks-support-users-and-user-groups",level:3},{value:"How do I complete User Tasks?",id:"how-do-i-complete-user-tasks",level:3},{value:"How do I create a UserTaskDef
?",id:"how-do-i-create-a-usertaskdef",level:3},{value:"Exception Handling",id:"exception-handling",level:2},{value:"What is the difference between ERROR
and EXCEPTION
?",id:"what-is-the-difference-between-error-and-exception",level:3},{value:"How do I catch a failure in a workflow?",id:"how-do-i-catch-a-failure-in-a-workflow",level:3},{value:"How do I throw an EXCEPTION
?",id:"how-do-i-throw-an-exception",level:3},{value:"Reliability",id:"reliability",level:2},{value:"Is LittleHorse Fault-Tolerant?",id:"is-littlehorse-fault-tolerant",level:3},{value:"Does LittleHorse scale?",id:"does-littlehorse-scale",level:3},{value:"How do I make Workflows idempotent?",id:"how-do-i-make-workflows-idempotent",level:3},{value:"How do I make Tasks idempotent?",id:"how-do-i-make-tasks-idempotent",level:3},{value:"About the Project",id:"about-the-project",level:2},{value:"Who Holds the Copyright?",id:"who-holds-the-copyright",level:3},{value:"Can I use LittleHorse for free in production?",id:"can-i-use-littlehorse-for-free-in-production",level:3},{value:"Can I get enterprise support?",id:"can-i-get-enterprise-support",level:3},{value:"Do you accept contributions?",id:"do-you-accept-contributions",level:3}];function c(e){const n={a:"a",br:"br",code:"code",em:"em",h1:"h1",h2:"h2",h3:"h3",header:"header",li:"li",p:"p",pre:"pre",strong:"strong",ul:"ul",...(0,s.R)(),...e.components};return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(n.header,{children:(0,r.jsx)(n.h1,{id:"tips-pointers-and-faq",children:"Tips, Pointers, and FAQ"})}),"\n",(0,r.jsx)(n.p,{children:"We do our best to make our documentation easy to navigate; however, LittleHorse has a lot of features and it may not always be easy to find what you are looking for."}),"\n",(0,r.jsx)(n.p,{children:'Think of this page as an "index" that will help you find what you need to make your project a success.'}),"\n",(0,r.jsx)(n.h2,{id:"workflow-basics",children:"Workflow Basics"}),"\n",(0,r.jsx)(n.p,{children:"Read here for how to get started."}),"\n",(0,r.jsxs)(n.h3,{id:"what-is-a-wfspec-and-wfrun",children:["What is a ",(0,r.jsx)(n.code,{children:"WfSpec"})," and ",(0,r.jsx)(n.code,{children:"WfRun"}),"?"]}),"\n",(0,r.jsxs)(n.p,{children:["The core concept of LittleHorse is a ",(0,r.jsx)(n.a,{href:"/docs/concepts/workflows",children:"Workflow"}),", which defines a series of tasks to execute and events to wait for. A ",(0,r.jsx)(n.code,{children:"WfSpec"})," defines a workflow specification. A ",(0,r.jsx)(n.code,{children:"WfRun"})," is a running instance of that ",(0,r.jsx)(n.code,{children:"WfSpec"}),".\nworkflow specification is the configuration, or metadata object, that tells the engine what Tasks to run,\nwhat order to run the tasks,\n",(0,r.jsx)(n.strong,{children:"how to handle exceptions or failures,"}),"\nwhat variables are to be passed from task to task,\nand what inputs and outputs are required to run the workflow."]}),"\n",(0,r.jsxs)(n.p,{children:["In LittleHorse the Workflow Spec is submitted to and held by the LittleHorse server.\nIt is a written in Code, using the LittleHorse SDK.",(0,r.jsx)(n.br,{}),"\n","In the background LittleHorse server takes the submitted spec from the SDK, and compiles a protobuf object that is submitted to the LittleHorse server."]}),"\n",(0,r.jsx)(n.p,{children:"Example:"}),"\n",(0,r.jsx)(n.pre,{children:(0,r.jsx)(n.code,{className:"language-declarative",children:'public class QuickstartWorkflow {\n\n public static final String WF_NAME = "quickstart";\n public static final String GREET = "greet";\n\n /*\n * This method defines the logic of our workflow\n */\n public void quickstartWf(WorkflowThread wf) {\n // Create an input variable, make it searchable\n WfRunVariable name = wf.addVariable("input-name", VariableType.STR).searchable();\n\n // Execute a task and pass in the variable.\n wf.execute(GREET, name);\n }\n\n /*\n * This method returns a LittleHorse `Workflow` wrapper object that can be\n * used to register the WfSpec to the LH Server.\n */\n public Workflow getWorkflow() {\n return Workflow.newWorkflow(WF_NAME, this::quickstartWf);\n }\n}\n'})}),"\n",(0,r.jsxs)(n.h3,{id:"how-do-i-create-a-wfspec",children:["How do I create a ",(0,r.jsx)(n.code,{children:"WfSpec"}),"?"]}),"\n",(0,r.jsxs)(n.p,{children:["Check out our ",(0,r.jsxs)(n.a,{href:"/docs/developer-guide/wfspec-development/",children:[(0,r.jsx)(n.code,{children:"WfSpec"})," development docs"]}),"! In short, you can use our Java, Python, or Go SDK's to define the ",(0,r.jsx)(n.code,{children:"WfSpec"})," logic and then register them to the LH Server."]}),"\n",(0,r.jsx)(n.h3,{id:"tasks",children:"Tasks"}),"\n",(0,r.jsxs)(n.p,{children:["Tasks are the unit of work for a work flow engine.",(0,r.jsx)(n.br,{}),"\n","It's best to think in examples:"]}),"\n",(0,r.jsxs)(n.ul,{children:["\n",(0,r.jsx)(n.li,{children:"Change lower case letters to upper case letters."}),"\n",(0,r.jsx)(n.li,{children:"Call an API with an input variable and pass along the output."}),"\n",(0,r.jsx)(n.li,{children:"Wait for user input or an event to happen."}),"\n"]}),"\n",(0,r.jsx)(n.h3,{id:"what-is-a-task-worker",children:"What is a Task Worker?"}),"\n",(0,r.jsxs)(n.p,{children:["A ",(0,r.jsx)(n.a,{href:"/docs/concepts/tasks",children:"Task Worker"})," is a program that opens a connection to a LittleHorse Cluster and listens to a task queue for a specific ",(0,r.jsx)(n.code,{children:"TaskDef"}),". When a ",(0,r.jsx)(n.code,{children:"WfRun"})," arrives at a point where it needs to execute that specific type of ",(0,r.jsx)(n.code,{children:"TaskRun"}),", then the scheduled Task will be dispatched to the Task Worker. The Task Worker executes it and reports the result to the LH Server."]}),"\n",(0,r.jsx)(n.p,{children:"A task worker can be a bare metal machine, Virtual Machine, cloud instance, Kubernetes pod, or anywhere that can execute Java/Python/Golang or C# code."}),"\n",(0,r.jsx)(n.h3,{id:"how-do-i-write-a-task-worker",children:"How do I write a Task Worker?"}),"\n",(0,r.jsxs)(n.p,{children:["Check out our ",(0,r.jsx)(n.a,{href:"/docs/developer-guide/task-worker-development",children:"Task Worker Development Docs"}),"!"]}),"\n",(0,r.jsx)(n.h3,{id:"how-do-i-run-a-workflow",children:"How do I run a Workflow?"}),"\n",(0,r.jsx)(n.p,{children:"You can run a workflow in two ways:"}),"\n",(0,r.jsxs)(n.ul,{children:["\n",(0,r.jsxs)(n.li,{children:["On the command line by ",(0,r.jsxs)(n.a,{href:"/docs/developer-guide/lhctl#run-a-wfrun",children:["using ",(0,r.jsx)(n.code,{children:"lhctl"})]}),". This method is best suited for testing, development, or debugging."]}),"\n",(0,r.jsxs)(n.li,{children:["Programmatically by ",(0,r.jsx)(n.a,{href:"/docs/developer-guide/grpc/running-workflows",children:"using one of our SDK's"}),". Under the covers, the SDKs call the GRPC endpoint on the LittleHorse server. Programmatic execution is ideal for incorporating into your dashboards, and operational tools."]}),"\n"]}),"\n",(0,r.jsx)(n.h2,{id:"variables-and-control-flow",children:"Variables and Control Flow"}),"\n",(0,r.jsx)(n.h3,{id:"how-do-i-pass-information-from-one-task-to-another",children:"How do I pass information from one task to another?"}),"\n",(0,r.jsxs)(n.p,{children:["Variables are how you pass info from one task to another. Take the output of one task and ",(0,r.jsx)(n.code,{children:"ASSIGN"})," it to a variable, then pass that variable into the next task. Check out our ",(0,r.jsx)(n.a,{href:"/docs/developer-guide/wfspec-development/mutating-variables",children:"mutating variables documentation"}),"."]}),"\n",(0,r.jsx)(n.h3,{id:"how-do-i-define-variables-in-a-workflow",children:"How do I define variables in a Workflow?"}),"\n",(0,r.jsxs)(n.p,{children:["Check out the ",(0,r.jsx)(n.a,{href:"/docs/developer-guide/wfspec-development/basics#defining-variables",children:"Variables Section"})," of our ",(0,r.jsx)(n.code,{children:"WfSpec"})," docs."]}),"\n",(0,r.jsx)(n.h3,{id:"can-i-search-for-workflows-by-their-variables",children:"Can I search for workflows by their variables?"}),"\n",(0,r.jsxs)(n.p,{children:["Yes, you can. To do that, ",(0,r.jsxs)(n.a,{href:"/docs/developer-guide/wfspec-development/basics#searchable-and-required-variables",children:["mark the variable as ",(0,r.jsx)(n.code,{children:"searchable()"})]})," and then use ",(0,r.jsx)(n.a,{href:"/docs/api#searchvariable",children:"`rpc SearchVariable"})," to search for it."]}),"\n",(0,r.jsx)(n.h3,{id:"how-do-i-do-ifelse-in-a-workflow",children:"How do I do if/else in a Workflow?"}),"\n",(0,r.jsxs)(n.p,{children:["Check out the ",(0,r.jsx)(n.a,{href:"/docs/developer-guide/wfspec-development/conditionals",children:"Conditionals Section"})," of our ",(0,r.jsx)(n.code,{children:"WfSpec"})," docs."]}),"\n",(0,r.jsx)(n.h3,{id:"can-a-workflow-have-loops",children:"Can a workflow have loops?"}),"\n",(0,r.jsxs)(n.p,{children:["Yes, check out the ",(0,r.jsx)(n.a,{href:"/docs/developer-guide/wfspec-development/conditionals#while-loops",children:"loops section"}),"."]}),"\n",(0,r.jsx)(n.h2,{id:"external-events",children:"External Events"}),"\n",(0,r.jsxs)(n.h3,{id:"what-is-an-externalevent",children:["What is an ",(0,r.jsx)(n.code,{children:"ExternalEvent"}),"?"]}),"\n",(0,r.jsxs)(n.p,{children:[(0,r.jsx)(n.a,{href:"/docs/concepts/external-events",children:"External Events"})," in LittleHorse represent events that occur outside of the context of a single ",(0,r.jsx)(n.code,{children:"WfRun"}),". For example, you might use an ",(0,r.jsx)(n.code,{children:"ExternalEvent"})," to notify a ",(0,r.jsx)(n.code,{children:"WfRun"})," when someone signs a DocuSign document, or when a text message is replied to."]}),"\n",(0,r.jsxs)(n.p,{children:["An ",(0,r.jsx)(n.code,{children:"ExternalEvent"})," is an instance of an ",(0,r.jsx)(n.code,{children:"ExternalEventDef"}),"."]}),"\n",(0,r.jsxs)(n.h3,{id:"how-do-i-make-a-wfrun-wait-for-an-event",children:["How do I make a ",(0,r.jsx)(n.code,{children:"WfRun"})," wait for an event?"]}),"\n",(0,r.jsxs)(n.p,{children:["Check out the ",(0,r.jsx)(n.a,{href:"/docs/developer-guide/wfspec-development/external-events",children:"External Events"})," section of our ",(0,r.jsx)(n.code,{children:"WfSpec"})," docs. What you want is an ",(0,r.jsx)(n.code,{children:"ExternalEventNode"}),", which blocks until an ",(0,r.jsx)(n.code,{children:"ExternalEvent"})," arrives."]}),"\n",(0,r.jsxs)(n.h3,{id:"how-do-i-interrupt-a-wfrun",children:["How do I interrupt a ",(0,r.jsx)(n.code,{children:"WfRun"}),"?"]}),"\n",(0,r.jsxs)(n.p,{children:["Check out the ",(0,r.jsx)(n.a,{href:"/docs/developer-guide/wfspec-development/interrupts",children:"Interrupts"})," section of our ",(0,r.jsx)(n.code,{children:"WfSpec"})," docs. What you want to do is register an Interrupt Handler for a certain ",(0,r.jsx)(n.code,{children:"ExternalEventDef."})]}),"\n",(0,r.jsxs)(n.h3,{id:"what-happens-when-a-wfrun-is-interrupted",children:["What happens when a ",(0,r.jsx)(n.code,{children:"WfRun"})," is interrupted?"]}),"\n",(0,r.jsxs)(n.p,{children:["The interrupted ",(0,r.jsx)(n.code,{children:"ThreadRun"})," is ",(0,r.jsx)(n.code,{children:"HALTED"}),", and a child ",(0,r.jsx)(n.code,{children:"ThreadRun"})," is created to act as the Interrupt Handler. For info, check out our ",(0,r.jsx)(n.a,{href:"/docs/concepts/external-events#interrupts",children:"concept docs"})," and our ",(0,r.jsxs)(n.a,{href:"/docs/developer-guide/wfspec-development/interrupts",children:[(0,r.jsx)(n.code,{children:"WfSpec"})," development docs"]}),"."]}),"\n",(0,r.jsx)(n.p,{children:"You may want to interrupt a WfRun for various reasons including: A user cancels an order in on an e-commerce site, A business request is Denied or an external API returns a back off or denied status."}),"\n",(0,r.jsxs)(n.h3,{id:"how-can-i-access-the-content-of-an-externalevent-inside-my-workflow",children:["How can I access the content of an ",(0,r.jsx)(n.code,{children:"ExternalEvent"})," inside my workflow?"]}),"\n",(0,r.jsxs)(n.p,{children:["You can use the output of an ",(0,r.jsx)(n.code,{children:"ExternalEventNode"})," just like any other node in our SDK. Check out ",(0,r.jsx)(n.a,{href:"/docs/developer-guide/wfspec-development/external-events#accessing-event-content",children:"these docs"})]}),"\n",(0,r.jsxs)(n.h3,{id:"how-do-i-post-an-externalevent",children:["How do I post an ",(0,r.jsx)(n.code,{children:"ExternalEvent"}),"?"]}),"\n",(0,r.jsxs)(n.p,{children:["You need to know the ",(0,r.jsx)(n.code,{children:"WfRunId"})," of the ",(0,r.jsx)(n.code,{children:"WfRun"})," you want to notify, and you need to know the ",(0,r.jsx)(n.code,{children:"ExternalEventDefId"}),"."]}),"\n",(0,r.jsxs)(n.h3,{id:"can-i-make-externalevents-idempotent",children:["Can I make ",(0,r.jsx)(n.code,{children:"ExternalEvent"}),"s idempotent?"]}),"\n",(0,r.jsxs)(n.p,{children:["Yes, just pass the ",(0,r.jsx)(n.code,{children:"guid"})," parameter in the ",(0,r.jsx)(n.code,{children:"PutExternalEventRequest"})," when making the ",(0,r.jsx)(n.code,{children:"rpc PutExternalEvent"}),"."]}),"\n",(0,r.jsx)(n.h2,{id:"workflow-threading",children:"Workflow Threading"}),"\n",(0,r.jsx)(n.h3,{id:"can-i-run-tasks-in-parallel",children:"Can I run tasks in parallel?"}),"\n",(0,r.jsxs)(n.p,{children:["To run tasks in parallel within a single ",(0,r.jsx)(n.code,{children:"WfRun"}),", you need to ",(0,r.jsx)(n.a,{href:"/docs/developer-guide/wfspec-development/child-threads",children:"create a Child Thread"}),"."]}),"\n",(0,r.jsx)(n.h3,{id:"can-different-threads-share-variables",children:"Can different threads share variables?"}),"\n",(0,r.jsxs)(n.p,{children:["A child ",(0,r.jsx)(n.code,{children:"ThreadRun"})," can read and write the variables of its parent. A parent cannot view the variables of its child."]}),"\n",(0,r.jsx)(n.h3,{id:"what-happens-when-a-child-fails",children:"What happens when a child fails?"}),"\n",(0,r.jsx)(n.p,{children:"When a child fails, the failure propagates to the parent either at:"}),"\n",(0,r.jsxs)(n.ul,{children:["\n",(0,r.jsxs)(n.li,{children:["The ",(0,r.jsx)(n.code,{children:"WaitForThreadsNode"}),", or"]}),"\n",(0,r.jsxs)(n.li,{children:["The ",(0,r.jsx)(n.code,{children:"ExitNode"}),"."]}),"\n"]}),"\n",(0,r.jsxs)(n.p,{children:["See the ",(0,r.jsx)(n.a,{href:"/docs/developer-guide/wfspec-development/child-threads",children:"Child Thread Docs"})," for info on how to handle these failures."]}),"\n",(0,r.jsx)(n.h3,{id:"what-happens-to-the-child-when-a-parent-fails",children:"What happens to the child when a parent fails?"}),"\n",(0,r.jsxs)(n.p,{children:["When a parent ",(0,r.jsx)(n.code,{children:"ThreadRun"})," fails (",(0,r.jsx)(n.code,{children:"ERROR"})," or ",(0,r.jsx)(n.code,{children:"EXCEPTION"}),") or moves to ",(0,r.jsx)(n.code,{children:"HALTED"}),", the child will move to ",(0,r.jsx)(n.code,{children:"HALTED"}),"."]}),"\n",(0,r.jsx)(n.p,{children:"In order to recover from a failed Parent thread you can either catch the exception, and programmatically handle it. Or require that a human restarts the workflow."}),"\n",(0,r.jsx)(n.h2,{id:"user-tasks",children:"User Tasks"}),"\n",(0,r.jsx)(n.h3,{id:"what-are-user-tasks",children:"What are User Tasks?"}),"\n",(0,r.jsxs)(n.p,{children:[(0,r.jsx)(n.a,{href:"/docs/concepts/user-tasks",children:"User Tasks"})," allow a workflow to wait for input from a human."]}),"\n",(0,r.jsx)(n.h3,{id:"how-do-i-add-a-user-task-to-my-workflow",children:"How do I add a user task to my workflow?"}),"\n",(0,r.jsxs)(n.p,{children:["A ",(0,r.jsx)(n.code,{children:"userTask"})," is to manage tasks involving humans alongside standard computer tasks in your LittleHorse Workflow. Check out the ",(0,r.jsx)(n.a,{href:"/docs/developer-guide/wfspec-development/user-tasks",children:"User Tasks"})," page of our ",(0,r.jsx)(n.code,{children:"WfSpec"})," docs."]}),"\n",(0,r.jsx)(n.h3,{id:"do-user-tasks-support-users-and-user-groups",children:"Do User Tasks support users and user groups?"}),"\n",(0,r.jsx)(n.p,{children:"Yes, user tasks can be assigned to either a user_id or a user_group. Note that user and group identities are not managed by the LH Server. User and group identies are managed by an external identity provider(IDP), for example any oAUTH provider."}),"\n",(0,r.jsx)(n.h3,{id:"how-do-i-complete-user-tasks",children:"How do I complete User Tasks?"}),"\n",(0,r.jsxs)(n.p,{children:["For testing purposes, you can do it ",(0,r.jsxs)(n.a,{href:"/docs/developer-guide/lhctl#usertaskrun",children:["using ",(0,r.jsx)(n.code,{children:"lhctl"})]}),". For production applications, check out our docs on ",(0,r.jsx)(n.a,{href:"/docs/developer-guide/grpc/user-tasks",children:"managing User Tasks with grpc"}),"."]}),"\n",(0,r.jsxs)(n.h3,{id:"how-do-i-create-a-usertaskdef",children:["How do I create a ",(0,r.jsx)(n.code,{children:"UserTaskDef"}),"?"]}),"\n",(0,r.jsxs)(n.p,{children:["Check out our ",(0,r.jsx)(n.a,{href:"/docs/developer-guide/grpc/managing-metadata#usertaskdef",children:"Managing Metadata docs"}),"."]}),"\n",(0,r.jsx)(n.h2,{id:"exception-handling",children:"Exception Handling"}),"\n",(0,r.jsxs)(n.h3,{id:"what-is-the-difference-between-error-and-exception",children:["What is the difference between ",(0,r.jsx)(n.code,{children:"ERROR"})," and ",(0,r.jsx)(n.code,{children:"EXCEPTION"}),"?"]}),"\n",(0,r.jsxs)(n.p,{children:["As per our ",(0,r.jsx)(n.a,{href:"/docs/concepts/workflows#failure-handling",children:"Failure Handling Concepts Docs"}),", an ",(0,r.jsx)(n.code,{children:"ERROR"})," represents a technical failure such as a type error, network outage, timeout, or unexpected exception thrown by a task worker. An ",(0,r.jsx)(n.code,{children:"EXCEPTION"})," represents something going wrong ",(0,r.jsx)(n.em,{children:"at the business process level"}),", such as an invalid credit card or an item being out of stock."]}),"\n",(0,r.jsx)(n.h3,{id:"how-do-i-catch-a-failure-in-a-workflow",children:"How do I catch a failure in a workflow?"}),"\n",(0,r.jsxs)(n.p,{children:["Check out our ",(0,r.jsxs)(n.a,{href:"/docs/developer-guide/wfspec-development/exception-handling",children:["Failure Handling ",(0,r.jsx)(n.code,{children:"WfSpec"})," docs"]}),"."]}),"\n",(0,r.jsxs)(n.h3,{id:"how-do-i-throw-an-exception",children:["How do I throw an ",(0,r.jsx)(n.code,{children:"EXCEPTION"}),"?"]}),"\n",(0,r.jsxs)(n.p,{children:["You can ",(0,r.jsxs)(n.a,{href:"/docs/developer-guide/task-worker-development#throwing-workflow-exceptions",children:["throw an ",(0,r.jsx)(n.code,{children:"EXCEPTION"})," from a Task Worker"]}),". You can also make a ",(0,r.jsx)(n.code,{children:"ThreadRun"})," fail with the ",(0,r.jsx)(n.code,{children:"WorkflowThread.fail()"})," method."]}),"\n",(0,r.jsx)(n.h2,{id:"reliability",children:"Reliability"}),"\n",(0,r.jsx)(n.h3,{id:"is-littlehorse-fault-tolerant",children:"Is LittleHorse Fault-Tolerant?"}),"\n",(0,r.jsxs)(n.p,{children:["Yes, it was built into the ",(0,r.jsx)(n.a,{href:"/docs/architecture-and-guarantees",children:"core DNA of our system"}),". Every component of the LittleHorse tech stack is highly available and fault tolerant. At the workflow layer LittleHorse provides the primitives to handle faults in a way to suit the business needs."]}),"\n",(0,r.jsx)(n.h3,{id:"does-littlehorse-scale",children:"Does LittleHorse scale?"}),"\n",(0,r.jsx)(n.p,{children:"Yes, in our internal benchmarks a moderately resourced, single instance, of LittleHorse server can execute 30,000 tasks per second in a moderately complex workflow."}),"\n",(0,r.jsx)(n.h3,{id:"how-do-i-make-workflows-idempotent",children:"How do I make Workflows idempotent?"}),"\n",(0,r.jsxs)(n.p,{children:["You can ",(0,r.jsxs)(n.a,{href:"/docs/developer-guide/grpc/running-workflows#passing-the-id",children:["pass the ",(0,r.jsx)(n.code,{children:"WfRunId"})]})," when running a ",(0,r.jsx)(n.code,{children:"WfRun"}),". Only one ",(0,r.jsx)(n.code,{children:"WfRun"})," can exist with a given Id, so this makes the request idempotent."]}),"\n",(0,r.jsx)(n.h3,{id:"how-do-i-make-tasks-idempotent",children:"How do I make Tasks idempotent?"}),"\n",(0,r.jsxs)(n.p,{children:["You can use the ",(0,r.jsx)(n.a,{href:"/docs/developer-guide/task-worker-development#idempotence",children:(0,r.jsx)(n.code,{children:"WorkerContext"})})," to get an idempotency key."]}),"\n",(0,r.jsx)(n.h2,{id:"about-the-project",children:"About the Project"}),"\n",(0,r.jsx)(n.h3,{id:"who-holds-the-copyright",children:"Who Holds the Copyright?"}),"\n",(0,r.jsx)(n.p,{children:"The source code for LittleHorse is copyright of LittleHorse Enterprises LLC, a Nevada LLC."}),"\n",(0,r.jsx)(n.h3,{id:"can-i-use-littlehorse-for-free-in-production",children:"Can I use LittleHorse for free in production?"}),"\n",(0,r.jsxs)(n.p,{children:["LittleHorse is covered by the ",(0,r.jsx)(n.a,{href:"https://www.mongodb.com/legal/licensing/server-side-public-license",children:"SSPL 1.0 License"}),". You may run LittleHorse in production for free and with no restrictions so long as you are not offering LittleHorse-as-a-Service. Basically, if your customers are not using the LittleHorse GRPC clients to interact with LittleHorse directly, you can run LittleHorse for free in production."]}),"\n",(0,r.jsxs)(n.p,{children:["The SSPL license was originally created by Mongo DB, who has an excellent ",(0,r.jsx)(n.a,{href:"https://www.mongodb.com/legal/licensing/server-side-public-license/faq",children:"FAQ"})," about the license terms."]}),"\n",(0,r.jsx)(n.h3,{id:"can-i-get-enterprise-support",children:"Can I get enterprise support?"}),"\n",(0,r.jsxs)(n.p,{children:["Yes. ",(0,r.jsx)(n.a,{href:"https://littlehorse.io",children:"LittleHorse Enterprises LLC"}),", which is the company behind the LittleHorse workflow engine, offers three forms of support for LittleHorse:"]}),"\n",(0,r.jsxs)(n.ul,{children:["\n",(0,r.jsx)(n.li,{children:"24/7 enterprise support for LittleHorse OSS."}),"\n",(0,r.jsx)(n.li,{children:"LittleHorse Cloud, which is a fully-managed SaaS service for LittleHorse."}),"\n",(0,r.jsx)(n.li,{children:"LittleHorse for Kubernetes, which is an enterprise distribution of LittleHorse delivered through Kubernetes Operator into your K8s cluster."}),"\n"]}),"\n",(0,r.jsxs)(n.p,{children:["You can reach LittleHorse Enterprises LLC via their ",(0,r.jsx)(n.a,{href:"https://littlehorse.io",children:"website"}),"."]}),"\n",(0,r.jsx)(n.h3,{id:"do-you-accept-contributions",children:"Do you accept contributions?"}),"\n",(0,r.jsxs)(n.p,{children:["Yes, we do accept contributions. Check out our ",(0,r.jsx)(n.a,{href:"https://github.com/littlehorse-enterprises/littlehorse",children:"GitHub"})," for tips on how to contribute."]})]})}function h(e={}){const{wrapper:n}={...(0,s.R)(),...e.components};return n?(0,r.jsx)(n,{...e,children:(0,r.jsx)(c,{...e})}):c(e)}},8453:(e,n,o)=>{o.d(n,{R:()=>a,x:()=>i});var r=o(6540);const s={},t=r.createContext(s);function a(e){const n=r.useContext(t);return r.useMemo((function(){return"function"==typeof e?e(n):{...n,...e}}),[n,e])}function i(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(s):e.components||s:a(e.components),r.createElement(t.Provider,{value:n},e.children)}}}]);
\ No newline at end of file
diff --git a/assets/js/7e3e0d30.7cf38925.js b/assets/js/7e3e0d30.7cf38925.js
new file mode 100644
index 000000000..d3744137b
--- /dev/null
+++ b/assets/js/7e3e0d30.7cf38925.js
@@ -0,0 +1 @@
+"use strict";(self.webpackChunklh_site=self.webpackChunklh_site||[]).push([[7746],{7697:(e,n,r)=>{r.r(n),r.d(n,{assets:()=>c,contentTitle:()=>i,default:()=>d,frontMatter:()=>s,metadata:()=>l,toc:()=>a});var o=r(4848),t=r(8453);const s={},i="Three LittleHorse Orchestrators",l={id:"operations/docker-compose/three-servers",title:"Three LittleHorse Orchestrators",description:"LittleHorse is a horizontally scalable system. As such, you can configure multiple LittleHorse Orchestrator servers to act as a cluster. This provides the following benefits:",source:"@site/docs/06-operations/10-docker-compose/15-three-servers.md",sourceDirName:"06-operations/10-docker-compose",slug:"/operations/docker-compose/three-servers",permalink:"/docs/operations/docker-compose/three-servers",draft:!1,unlisted:!1,tags:[],version:"current",sidebarPosition:15,frontMatter:{},sidebar:"tutorialSidebar",previous:{title:"Using Confluent Cloud",permalink:"/docs/operations/docker-compose/confluent-cloud"},next:{title:"Tips, Pointers, and FAQ",permalink:"/docs/faq"}},c={},a=[{value:"Docker Compose File",id:"docker-compose-file",level:2},{value:"Using the Example",id:"using-the-example",level:2},{value:"Worker Configs",id:"worker-configs",level:3}];function h(e){const n={a:"a",admonition:"admonition",code:"code",h1:"h1",h2:"h2",h3:"h3",header:"header",li:"li",p:"p",pre:"pre",ul:"ul",...(0,t.R)(),...e.components};return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(n.header,{children:(0,o.jsx)(n.h1,{id:"three-littlehorse-orchestrators",children:"Three LittleHorse Orchestrators"})}),"\n",(0,o.jsx)(n.p,{children:"LittleHorse is a horizontally scalable system. As such, you can configure multiple LittleHorse Orchestrator servers to act as a cluster. This provides the following benefits:"}),"\n",(0,o.jsxs)(n.ul,{children:["\n",(0,o.jsx)(n.li,{children:"High availability with hot standby replicas (note that durability is handled by Kafka and does not depend on the number of LittleHorse Servers)."}),"\n",(0,o.jsx)(n.li,{children:"Higher throughput as work is distributed across multiple LittleHorse Servers."}),"\n"]}),"\n",(0,o.jsx)(n.p,{children:"This example shows how to run LittleHorse with three servers and a dashboard using Docker Compose without authentication."}),"\n",(0,o.jsx)(n.h2,{id:"docker-compose-file",children:"Docker Compose File"}),"\n",(0,o.jsxs)(n.p,{children:["Save the following docker-compose file and run ",(0,o.jsx)(n.code,{children:"docker compose up -d"}),"."]}),"\n",(0,o.jsx)(n.pre,{children:(0,o.jsx)(n.code,{className:"language-yaml",children:'services:\n kafka:\n container_name: lh-kafka\n image: apache/kafka:3.8.0\n environment:\n ALLOW_PLAINTEXT_LISTENER: "yes"\n KAFKA_LISTENERS: CONTROLLER://:29092,EXTERNAL://:19092,INTERNAL://:9092\n KAFKA_ADVERTISED_LISTENERS: EXTERNAL://localhost:19092,INTERNAL://kafka:9092\n KAFKA_LISTENER_SECURITY_PROTOCOL_MAP: CONTROLLER:PLAINTEXT,EXTERNAL:PLAINTEXT,INTERNAL:PLAINTEXT\n KAFKA_INTER_BROKER_LISTENER_NAME: INTERNAL\n KAFKA_BROKER_ID: "1"\n KAFKA_OFFSETS_TOPIC_REPLICATION_FACTOR: "1"\n KAFKA_TRANSACTION_STATE_LOG_MIN_ISR: "1"\n KAFKA_TRANSACTION_STATE_LOG_REPLICATION_FACTOR: "1"\n KAFKA_CONTROLLER_QUORUM_VOTERS: 1@localhost:29092\n KAFKA_CONTROLLER_LISTENER_NAMES: CONTROLLER\n KAFKA_PROCESS_ROLES: broker,controller\n KAFKA_NODE_ID: "1"\n KAFKA_KRAFT_CLUSTER_ID: abcdefghijklmnopqrstuv\n restart: on-failure\n healthcheck:\n test: kafka-topics.sh --bootstrap-server kafka:9092 --list > /dev/null 2>&1\n interval: 5s\n littlehorse:\n container_name: lh-server-1\n image: ghcr.io/littlehorse-enterprises/littlehorse/lh-server:0.10.1\n ports:\n - "2023:2023"\n environment:\n - LHS_KAFKA_BOOTSTRAP_SERVERS=kafka:9092\n - LHS_CLUSTER_ID=my-cluster\n - LHS_INSTANCE_ID=1\n - LHS_SHOULD_CREATE_TOPICS=true\n - LHS_HEALTH_SERVICE_PORT=1822\n - LHS_INTERNAL_BIND_PORT=2011\n - LHS_INTERNAL_ADVERTISED_HOST=lh-server-1\n - LHS_INTERNAL_ADVERTISED_PORT=2011\n - LHS_LISTENERS=PLAIN:2023\n - LHS_ADVERTISED_LISTENERS=PLAIN://localhost:2023\n littlehorse-2:\n container_name: lh-server-2\n image: ghcr.io/littlehorse-enterprises/littlehorse/lh-server:0.10.1\n ports:\n - "2024:2024"\n environment:\n - LHS_KAFKA_BOOTSTRAP_SERVERS=kafka:9092\n - LHS_CLUSTER_ID=my-cluster\n - LHS_INSTANCE_ID=2\n - LHS_SHOULD_CREATE_TOPICS=true\n - LHS_HEALTH_SERVICE_PORT=1822\n - LHS_INTERNAL_BIND_PORT=2021\n - LHS_INTERNAL_ADVERTISED_HOST=lh-server-2\n - LHS_INTERNAL_ADVERTISED_PORT=2021\n - LHS_LISTENERS=PLAIN:2024\n - LHS_ADVERTISED_LISTENERS=PLAIN://localhost:2024\n littlehorse-3:\n container_name: lh-server-3\n image: ghcr.io/littlehorse-enterprises/littlehorse/lh-server:0.10.1\n ports:\n - "2025:2025"\n environment:\n - LHS_KAFKA_BOOTSTRAP_SERVERS=kafka:9092\n - LHS_CLUSTER_ID=my-cluster\n - LHS_INSTANCE_ID=3\n - LHS_SHOULD_CREATE_TOPICS=true\n - LHS_HEALTH_SERVICE_PORT=1822\n - LHS_INTERNAL_BIND_PORT=2031\n - LHS_INTERNAL_ADVERTISED_HOST=lh-server-3\n - LHS_INTERNAL_ADVERTISED_PORT=2031\n - LHS_LISTENERS=PLAIN:2025\n - LHS_ADVERTISED_LISTENERS=PLAIN://localhost:2025\n dashboard:\n container_name: lh-dashboard\n image: ghcr.io/littlehorse-enterprises/littlehorse/lh-dashboard:master\n environment:\n LHC_API_HOST: lh-server-1\n LHC_API_PORT: 2023\n LHD_OAUTH_ENABLED: false\n restart: on-failure\n healthcheck:\n test: curl -f localhost:3000\n interval: 5s\n ports:\n - "8080:3000"\n'})}),"\n",(0,o.jsx)(n.h2,{id:"using-the-example",children:"Using the Example"}),"\n",(0,o.jsxs)(n.p,{children:["Once you have created the LH Cluster using Docker Compose, the next step is to access it. For example, you can use one of our ",(0,o.jsx)(n.a,{href:"/docs/developer-guide/install#get-started",children:"quickstarts"})," with the following configurations."]}),"\n",(0,o.jsxs)(n.p,{children:["The dashboard can be accessed at ",(0,o.jsx)(n.a,{href:"http://localhost:8080",children:(0,o.jsx)(n.code,{children:"http://localhost:8080"})}),"."]}),"\n",(0,o.jsxs)(n.p,{children:["You can connect to any of the three LittleHorse server instances in the cluster. In this example, the dashboard is configured to communicate with the server on port ",(0,o.jsx)(n.code,{children:"2023"}),", but you could also connect with the servers on ports ",(0,o.jsx)(n.code,{children:"2024"})," or ",(0,o.jsx)(n.code,{children:"2025"}),"."]}),"\n",(0,o.jsx)(n.h3,{id:"worker-configs",children:"Worker Configs"}),"\n",(0,o.jsxs)(n.p,{children:["Workers are configured when you create an ",(0,o.jsx)(n.code,{children:"LHConfig"})," object according to ",(0,o.jsx)(n.a,{href:"/docs/developer-guide/client-configuration#creating-the-lhconfig",children:"our documentation"}),". You need to pass in certain properties (either directly to the ",(0,o.jsx)(n.code,{children:"LHConfig"})," constructor, through a ",(0,o.jsx)(n.code,{children:"Properties"})," file, or through environment variables)."]}),"\n",(0,o.jsx)(n.p,{children:"For this example, your workers should be configured as follows:"}),"\n",(0,o.jsx)(n.pre,{children:(0,o.jsx)(n.code,{children:"LHC_API_HOST=localhost\n\n// You can address any of the three LittleHorse server ports\nLHC_API_PORT=2023\n\nLHW_SERVER_CONNECT_LISTENER=PLAIN\n"})}),"\n",(0,o.jsxs)(n.p,{children:["Even though your worker config only specifies one port to connect to via ",(0,o.jsx)(n.code,{children:"LHC_API_PORT"}),", your workers will actually communicate with the entire cluster. This is because the Task Worker uses a discovery protocol in which it asks the bootstrap host (specified by ",(0,o.jsx)(n.code,{children:"LHC_API_HOST"})," and ",(0,o.jsx)(n.code,{children:"LHC_API_PORT"}),") for which servers to connect to in order to execute tasks."]}),"\n",(0,o.jsx)(n.admonition,{type:"tip",children:(0,o.jsxs)(n.p,{children:["In production, it's recommended for your ",(0,o.jsx)(n.code,{children:"LHC_API_HOST"})," and ",(0,o.jsx)(n.code,{children:"LHC_API_PORT"})," to point to a load balancer that balances requests across all instances."]})}),"\n",(0,o.jsx)(n.admonition,{type:"tip",children:(0,o.jsxs)(n.p,{children:["If you walk through our ",(0,o.jsx)(n.a,{href:"/docs/developer-guide/install#get-started",children:"quickstarts"}),", the code in all three assumes that your configuration is set as environment variables."]})})]})}function d(e={}){const{wrapper:n}={...(0,t.R)(),...e.components};return n?(0,o.jsx)(n,{...e,children:(0,o.jsx)(h,{...e})}):h(e)}},8453:(e,n,r)=>{r.d(n,{R:()=>i,x:()=>l});var o=r(6540);const t={},s=o.createContext(t);function i(e){const n=o.useContext(s);return o.useMemo((function(){return"function"==typeof e?e(n):{...n,...e}}),[n,e])}function l(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(t):e.components||t:i(e.components),o.createElement(s.Provider,{value:n},e.children)}}}]);
\ No newline at end of file
diff --git a/assets/js/7e3e0d30.a258cefb.js b/assets/js/7e3e0d30.a258cefb.js
deleted file mode 100644
index 37d9269cf..000000000
--- a/assets/js/7e3e0d30.a258cefb.js
+++ /dev/null
@@ -1 +0,0 @@
-"use strict";(self.webpackChunklh_site=self.webpackChunklh_site||[]).push([[7746],{7697:(e,n,r)=>{r.r(n),r.d(n,{assets:()=>c,contentTitle:()=>i,default:()=>d,frontMatter:()=>s,metadata:()=>l,toc:()=>a});var o=r(4848),t=r(8453);const s={},i="Three LittleHorse Orchestrators",l={id:"operations/docker-compose/three-servers",title:"Three LittleHorse Orchestrators",description:"LittleHorse is a horizontally scalable system. As such, you can configure multiple LittleHorse Orchestrator servers to act as a cluster. This provides the following benefits:",source:"@site/docs/06-operations/10-docker-compose/15-three-servers.md",sourceDirName:"06-operations/10-docker-compose",slug:"/operations/docker-compose/three-servers",permalink:"/docs/operations/docker-compose/three-servers",draft:!1,unlisted:!1,tags:[],version:"current",sidebarPosition:15,frontMatter:{},sidebar:"tutorialSidebar",previous:{title:"Using Confluent Cloud",permalink:"/docs/operations/docker-compose/confluent-cloud"},next:{title:"LittleHorse API Reference",permalink:"/docs/api"}},c={},a=[{value:"Docker Compose File",id:"docker-compose-file",level:2},{value:"Using the Example",id:"using-the-example",level:2},{value:"Worker Configs",id:"worker-configs",level:3}];function h(e){const n={a:"a",admonition:"admonition",code:"code",h1:"h1",h2:"h2",h3:"h3",header:"header",li:"li",p:"p",pre:"pre",ul:"ul",...(0,t.R)(),...e.components};return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(n.header,{children:(0,o.jsx)(n.h1,{id:"three-littlehorse-orchestrators",children:"Three LittleHorse Orchestrators"})}),"\n",(0,o.jsx)(n.p,{children:"LittleHorse is a horizontally scalable system. As such, you can configure multiple LittleHorse Orchestrator servers to act as a cluster. This provides the following benefits:"}),"\n",(0,o.jsxs)(n.ul,{children:["\n",(0,o.jsx)(n.li,{children:"High availability with hot standby replicas (note that durability is handled by Kafka and does not depend on the number of LittleHorse Servers)."}),"\n",(0,o.jsx)(n.li,{children:"Higher throughput as work is distributed across multiple LittleHorse Servers."}),"\n"]}),"\n",(0,o.jsx)(n.p,{children:"This example shows how to run LittleHorse with three servers and a dashboard using Docker Compose without authentication."}),"\n",(0,o.jsx)(n.h2,{id:"docker-compose-file",children:"Docker Compose File"}),"\n",(0,o.jsxs)(n.p,{children:["Save the following docker-compose file and run ",(0,o.jsx)(n.code,{children:"docker compose up -d"}),"."]}),"\n",(0,o.jsx)(n.pre,{children:(0,o.jsx)(n.code,{className:"language-yaml",children:'services:\n kafka:\n container_name: lh-kafka\n image: apache/kafka:3.8.0\n environment:\n ALLOW_PLAINTEXT_LISTENER: "yes"\n KAFKA_LISTENERS: CONTROLLER://:29092,EXTERNAL://:19092,INTERNAL://:9092\n KAFKA_ADVERTISED_LISTENERS: EXTERNAL://localhost:19092,INTERNAL://kafka:9092\n KAFKA_LISTENER_SECURITY_PROTOCOL_MAP: CONTROLLER:PLAINTEXT,EXTERNAL:PLAINTEXT,INTERNAL:PLAINTEXT\n KAFKA_INTER_BROKER_LISTENER_NAME: INTERNAL\n KAFKA_BROKER_ID: "1"\n KAFKA_OFFSETS_TOPIC_REPLICATION_FACTOR: "1"\n KAFKA_TRANSACTION_STATE_LOG_MIN_ISR: "1"\n KAFKA_TRANSACTION_STATE_LOG_REPLICATION_FACTOR: "1"\n KAFKA_CONTROLLER_QUORUM_VOTERS: 1@localhost:29092\n KAFKA_CONTROLLER_LISTENER_NAMES: CONTROLLER\n KAFKA_PROCESS_ROLES: broker,controller\n KAFKA_NODE_ID: "1"\n KAFKA_KRAFT_CLUSTER_ID: abcdefghijklmnopqrstuv\n restart: on-failure\n healthcheck:\n test: kafka-topics.sh --bootstrap-server kafka:9092 --list > /dev/null 2>&1\n interval: 5s\n littlehorse:\n container_name: lh-server-1\n image: ghcr.io/littlehorse-enterprises/littlehorse/lh-server:0.10.1\n ports:\n - "2023:2023"\n environment:\n - LHS_KAFKA_BOOTSTRAP_SERVERS=kafka:9092\n - LHS_CLUSTER_ID=my-cluster\n - LHS_INSTANCE_ID=1\n - LHS_SHOULD_CREATE_TOPICS=true\n - LHS_HEALTH_SERVICE_PORT=1822\n - LHS_INTERNAL_BIND_PORT=2011\n - LHS_INTERNAL_ADVERTISED_HOST=lh-server-1\n - LHS_INTERNAL_ADVERTISED_PORT=2011\n - LHS_LISTENERS=PLAIN:2023\n - LHS_ADVERTISED_LISTENERS=PLAIN://localhost:2023\n littlehorse-2:\n container_name: lh-server-2\n image: ghcr.io/littlehorse-enterprises/littlehorse/lh-server:0.10.1\n ports:\n - "2024:2024"\n environment:\n - LHS_KAFKA_BOOTSTRAP_SERVERS=kafka:9092\n - LHS_CLUSTER_ID=my-cluster\n - LHS_INSTANCE_ID=2\n - LHS_SHOULD_CREATE_TOPICS=true\n - LHS_HEALTH_SERVICE_PORT=1822\n - LHS_INTERNAL_BIND_PORT=2021\n - LHS_INTERNAL_ADVERTISED_HOST=lh-server-2\n - LHS_INTERNAL_ADVERTISED_PORT=2021\n - LHS_LISTENERS=PLAIN:2024\n - LHS_ADVERTISED_LISTENERS=PLAIN://localhost:2024\n littlehorse-3:\n container_name: lh-server-3\n image: ghcr.io/littlehorse-enterprises/littlehorse/lh-server:0.10.1\n ports:\n - "2025:2025"\n environment:\n - LHS_KAFKA_BOOTSTRAP_SERVERS=kafka:9092\n - LHS_CLUSTER_ID=my-cluster\n - LHS_INSTANCE_ID=3\n - LHS_SHOULD_CREATE_TOPICS=true\n - LHS_HEALTH_SERVICE_PORT=1822\n - LHS_INTERNAL_BIND_PORT=2031\n - LHS_INTERNAL_ADVERTISED_HOST=lh-server-3\n - LHS_INTERNAL_ADVERTISED_PORT=2031\n - LHS_LISTENERS=PLAIN:2025\n - LHS_ADVERTISED_LISTENERS=PLAIN://localhost:2025\n dashboard:\n container_name: lh-dashboard\n image: ghcr.io/littlehorse-enterprises/littlehorse/lh-dashboard:master\n environment:\n LHC_API_HOST: lh-server-1\n LHC_API_PORT: 2023\n LHD_OAUTH_ENABLED: false\n restart: on-failure\n healthcheck:\n test: curl -f localhost:3000\n interval: 5s\n ports:\n - "8080:3000"\n'})}),"\n",(0,o.jsx)(n.h2,{id:"using-the-example",children:"Using the Example"}),"\n",(0,o.jsxs)(n.p,{children:["Once you have created the LH Cluster using Docker Compose, the next step is to access it. For example, you can use one of our ",(0,o.jsx)(n.a,{href:"/docs/developer-guide/install#get-started",children:"quickstarts"})," with the following configurations."]}),"\n",(0,o.jsxs)(n.p,{children:["The dashboard can be accessed at ",(0,o.jsx)(n.a,{href:"http://localhost:8080",children:(0,o.jsx)(n.code,{children:"http://localhost:8080"})}),"."]}),"\n",(0,o.jsxs)(n.p,{children:["You can connect to any of the three LittleHorse server instances in the cluster. In this example, the dashboard is configured to communicate with the server on port ",(0,o.jsx)(n.code,{children:"2023"}),", but you could also connect with the servers on ports ",(0,o.jsx)(n.code,{children:"2024"})," or ",(0,o.jsx)(n.code,{children:"2025"}),"."]}),"\n",(0,o.jsx)(n.h3,{id:"worker-configs",children:"Worker Configs"}),"\n",(0,o.jsxs)(n.p,{children:["Workers are configured when you create an ",(0,o.jsx)(n.code,{children:"LHConfig"})," object according to ",(0,o.jsx)(n.a,{href:"/docs/developer-guide/client-configuration#creating-the-lhconfig",children:"our documentation"}),". You need to pass in certain properties (either directly to the ",(0,o.jsx)(n.code,{children:"LHConfig"})," constructor, through a ",(0,o.jsx)(n.code,{children:"Properties"})," file, or through environment variables)."]}),"\n",(0,o.jsx)(n.p,{children:"For this example, your workers should be configured as follows:"}),"\n",(0,o.jsx)(n.pre,{children:(0,o.jsx)(n.code,{children:"LHC_API_HOST=localhost\n\n// You can address any of the three LittleHorse server ports\nLHC_API_PORT=2023\n\nLHW_SERVER_CONNECT_LISTENER=PLAIN\n"})}),"\n",(0,o.jsxs)(n.p,{children:["Even though your worker config only specifies one port to connect to via ",(0,o.jsx)(n.code,{children:"LHC_API_PORT"}),", your workers will actually communicate with the entire cluster. This is because the Task Worker uses a discovery protocol in which it asks the bootstrap host (specified by ",(0,o.jsx)(n.code,{children:"LHC_API_HOST"})," and ",(0,o.jsx)(n.code,{children:"LHC_API_PORT"}),") for which servers to connect to in order to execute tasks."]}),"\n",(0,o.jsx)(n.admonition,{type:"tip",children:(0,o.jsxs)(n.p,{children:["In production, it's recommended for your ",(0,o.jsx)(n.code,{children:"LHC_API_HOST"})," and ",(0,o.jsx)(n.code,{children:"LHC_API_PORT"})," to point to a load balancer that balances requests across all instances."]})}),"\n",(0,o.jsx)(n.admonition,{type:"tip",children:(0,o.jsxs)(n.p,{children:["If you walk through our ",(0,o.jsx)(n.a,{href:"/docs/developer-guide/install#get-started",children:"quickstarts"}),", the code in all three assumes that your configuration is set as environment variables."]})})]})}function d(e={}){const{wrapper:n}={...(0,t.R)(),...e.components};return n?(0,o.jsx)(n,{...e,children:(0,o.jsx)(h,{...e})}):h(e)}},8453:(e,n,r)=>{r.d(n,{R:()=>i,x:()=>l});var o=r(6540);const t={},s=o.createContext(t);function i(e){const n=o.useContext(s);return o.useMemo((function(){return"function"==typeof e?e(n):{...n,...e}}),[n,e])}function l(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(t):e.components||t:i(e.components),o.createElement(s.Provider,{value:n},e.children)}}}]);
\ No newline at end of file
diff --git a/assets/js/814f3328.75ec6df1.js b/assets/js/814f3328.75ec6df1.js
new file mode 100644
index 000000000..73b688173
--- /dev/null
+++ b/assets/js/814f3328.75ec6df1.js
@@ -0,0 +1 @@
+"use strict";(self.webpackChunklh_site=self.webpackChunklh_site||[]).push([[7472],{5513:e=>{e.exports=JSON.parse('{"title":"Recent posts","items":[{"title":"Basics Workflow concepts","permalink":"/blog/2024/09/04/basics-of-workflows","unlisted":false,"date":"2024-09-04T00:00:00.000Z"},{"title":"Microservices and Workflow: A Match Made in Heaven","permalink":"/blog/microservices-and-workflow","unlisted":false,"date":"2024-09-02T00:00:00.000Z"},{"title":"Releasing 0.11","permalink":"/blog/littlehorse-0.11-release","unlisted":false,"date":"2024-08-31T00:00:00.000Z"},{"title":"The Challenge of Microservices","permalink":"/blog/challenge-of-microservices","unlisted":false,"date":"2024-08-27T00:00:00.000Z"},{"title":"The Promise of Microservices","permalink":"/blog/promise-of-microservices","unlisted":false,"date":"2024-08-22T00:00:00.000Z"},{"title":"Releasing 0.10","permalink":"/blog/littlehorse-0.10-release","unlisted":false,"date":"2024-07-12T00:00:00.000Z"},{"title":"Releasing 0.9","permalink":"/blog/littlehorse-0.9-release","unlisted":false,"date":"2024-06-24T00:00:00.000Z"},{"title":"Releasing 0.8","permalink":"/blog/littlehorse-0.8-release","unlisted":false,"date":"2024-03-26T00:00:00.000Z"},{"title":"Releasing 0.7","permalink":"/blog/littlehorse-0.7-release","unlisted":false,"date":"2024-01-28T00:00:00.000Z"},{"title":"Releasing 0.5.0","permalink":"/blog/littlehorse-0.5.0-release","unlisted":false,"date":"2023-09-08T00:00:00.000Z"},{"title":"Helm and Kubernetes Operators","permalink":"/blog/helm-and-k8s-operators","unlisted":false,"date":"2023-09-01T00:00:00.000Z"},{"title":"Releasing 0.2.0","permalink":"/blog/littlehorse-0.2.0-release","unlisted":false,"date":"2023-08-30T00:00:00.000Z"}]}')}}]);
\ No newline at end of file
diff --git a/assets/js/814f3328.d35a347e.js b/assets/js/814f3328.d35a347e.js
deleted file mode 100644
index 74f64bd3e..000000000
--- a/assets/js/814f3328.d35a347e.js
+++ /dev/null
@@ -1 +0,0 @@
-"use strict";(self.webpackChunklh_site=self.webpackChunklh_site||[]).push([[7472],{5513:e=>{e.exports=JSON.parse('{"title":"Recent posts","items":[{"title":"Microservices and Workflow: A Match Made in Heaven","permalink":"/blog/microservices-and-workflow","unlisted":false,"date":"2024-09-02T00:00:00.000Z"},{"title":"Releasing 0.11","permalink":"/blog/littlehorse-0.11-release","unlisted":false,"date":"2024-08-31T00:00:00.000Z"},{"title":"The Challenge of Microservices","permalink":"/blog/challenge-of-microservices","unlisted":false,"date":"2024-08-27T00:00:00.000Z"},{"title":"The Promise of Microservices","permalink":"/blog/promise-of-microservices","unlisted":false,"date":"2024-08-22T00:00:00.000Z"},{"title":"Releasing 0.10","permalink":"/blog/littlehorse-0.10-release","unlisted":false,"date":"2024-07-12T00:00:00.000Z"},{"title":"Releasing 0.9","permalink":"/blog/littlehorse-0.9-release","unlisted":false,"date":"2024-06-24T00:00:00.000Z"},{"title":"Releasing 0.8","permalink":"/blog/littlehorse-0.8-release","unlisted":false,"date":"2024-03-26T00:00:00.000Z"},{"title":"Releasing 0.7","permalink":"/blog/littlehorse-0.7-release","unlisted":false,"date":"2024-01-28T00:00:00.000Z"},{"title":"Releasing 0.5.0","permalink":"/blog/littlehorse-0.5.0-release","unlisted":false,"date":"2023-09-08T00:00:00.000Z"},{"title":"Helm and Kubernetes Operators","permalink":"/blog/helm-and-k8s-operators","unlisted":false,"date":"2023-09-01T00:00:00.000Z"},{"title":"Releasing 0.2.0","permalink":"/blog/littlehorse-0.2.0-release","unlisted":false,"date":"2023-08-30T00:00:00.000Z"}]}')}}]);
\ No newline at end of file
diff --git a/assets/js/84954295.6288bc19.js b/assets/js/84954295.6288bc19.js
new file mode 100644
index 000000000..08dccd401
--- /dev/null
+++ b/assets/js/84954295.6288bc19.js
@@ -0,0 +1 @@
+"use strict";(self.webpackChunklh_site=self.webpackChunklh_site||[]).push([[7757],{6010:(e,n,t)=>{t.r(n),t.d(n,{assets:()=>l,contentTitle:()=>r,default:()=>d,frontMatter:()=>o,metadata:()=>i,toc:()=>c});var s=t(4848),a=t(8453);const o={},r="Basics Workflow concepts",i={permalink:"/blog/2024/09/04/basics-of-workflows",source:"@site/blog/2024-09-04-basics-of-workflows.md",title:"Basics Workflow concepts",description:"What is a workflow engine?",date:"2024-09-04T00:00:00.000Z",tags:[],readingTime:3.2,hasTruncateMarker:!1,authors:[],frontMatter:{},unlisted:!1,nextItem:{title:"Microservices and Workflow: A Match Made in Heaven",permalink:"/blog/microservices-and-workflow"}},l={authorsImageUrls:[]},c=[{value:"What is a workflow engine?",id:"what-is-a-workflow-engine",level:2},{value:"Concepts",id:"concepts",level:3},{value:"Workflow specifications",id:"workflow-specifications",level:4},{value:"Tasks",id:"tasks",level:4},{value:"Task workers",id:"task-workers",level:4},{value:"Advantages of Workflow engines",id:"advantages-of-workflow-engines",level:3},{value:"Failure handling",id:"failure-handling",level:4},{value:"Microservices",id:"microservices",level:4},{value:"API gateway ",id:"api-gateway-",level:4},{value:"User tasks",id:"user-tasks",level:4},{value:"Integrations",id:"integrations",level:4},{value:"Common use cases",id:"common-use-cases",level:3},{value:"Process Orchestration or Microservices",id:"process-orchestration-or-microservices",level:4},{value:"Data manipulation",id:"data-manipulation",level:4}];function h(e){const n={a:"a",br:"br",code:"code",h2:"h2",h3:"h3",h4:"h4",li:"li",p:"p",pre:"pre",strong:"strong",ul:"ul",...(0,a.R)(),...e.components};return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(n.h2,{id:"what-is-a-workflow-engine",children:"What is a workflow engine?"}),"\n",(0,s.jsx)(n.p,{children:"A workflow engine, in the simplest way is a way to run a series of steps,\nwait for input or output,\nhow to handle problems, exceptions or retries\nand keep state of where in the steps the flow is."}),"\n",(0,s.jsx)(n.h3,{id:"concepts",children:"Concepts"}),"\n",(0,s.jsx)(n.h4,{id:"workflow-specifications",children:"Workflow specifications"}),"\n",(0,s.jsxs)(n.p,{children:["A workflow specification is the configuration, or metadata object, that tells the engine what Tasks to run,\nwhat order to run the tasks,\n",(0,s.jsx)(n.strong,{children:"how to handle exceptions or failures,"}),"\nwhat variables are to be passed from task to task,\nand what inputs and outputs are required to run the workflow."]}),"\n",(0,s.jsxs)(n.p,{children:["In LittleHorse the Workflow Spec is submitted to and held by the LittleHorse server.\nIt is a written in Code, using the LittleHorse SDK.",(0,s.jsx)(n.br,{}),"\n","In the background LittleHorse server takes the submitted spec from the SDK, and compiles a protobuf object that is submitted to the LittleHorse server."]}),"\n",(0,s.jsx)(n.p,{children:"Example:"}),"\n",(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-declarative",children:'public class QuickstartWorkflow {\n\n public static final String WF_NAME = "quickstart";\n public static final String GREET = "greet";\n\n /*\n * This method defines the logic of our workflow\n */\n public void quickstartWf(WorkflowThread wf) {\n // Create an input variable, make it searchable\n WfRunVariable name = wf.addVariable("input-name", VariableType.STR).searchable();\n\n // Execute a task and pass in the variable.\n wf.execute(GREET, name);\n }\n\n /*\n * This method returns a LittleHorse `Workflow` wrapper object that can be\n * used to register the WfSpec to the LH Server.\n */\n public Workflow getWorkflow() {\n return Workflow.newWorkflow(WF_NAME, this::quickstartWf);\n }\n}\n'})}),"\n",(0,s.jsx)(n.h4,{id:"tasks",children:"Tasks"}),"\n",(0,s.jsxs)(n.p,{children:["Tasks are the unit of work for a work flow engine.",(0,s.jsx)(n.br,{}),"\n","It's best to think in examples:"]}),"\n",(0,s.jsxs)(n.ul,{children:["\n",(0,s.jsx)(n.li,{children:"Change lower case letters to upper case letters."}),"\n",(0,s.jsx)(n.li,{children:"Call an API with an input variable and pass along the output."}),"\n",(0,s.jsx)(n.li,{children:"Wait for user input or an event to happen."}),"\n"]}),"\n",(0,s.jsx)(n.h4,{id:"task-workers",children:"Task workers"}),"\n",(0,s.jsxs)(n.p,{children:["Task workers are the places where tasks are executed.",(0,s.jsx)(n.br,{}),"\n","There can be one or many more task workers per task, this allows for scalability and reliability when executing tasks."]}),"\n",(0,s.jsx)(n.h3,{id:"advantages-of-workflow-engines",children:"Advantages of Workflow engines"}),"\n",(0,s.jsx)(n.h4,{id:"failure-handling",children:"Failure handling"}),"\n",(0,s.jsxs)(n.p,{children:["When automating a business process what to do when something doesn't happen, happens with an unexpected outcome, or plain fails is a core challenge.",(0,s.jsx)(n.br,{}),"\n","More often than not this is hard to reason about, leading to uncaught exceptions that lead to questioning completeness of a workflow or plain incorrect data.",(0,s.jsx)(n.br,{}),"\n","A workflow engine standardizes how to throw an exception, where the exception is logged, and the logic around when/how to retry."]}),"\n",(0,s.jsx)(n.h4,{id:"microservices",children:"Microservices"}),"\n",(0,s.jsxs)(n.p,{children:["Colt McNealy talks about how to wrangle Microservices with a workflow engine, ",(0,s.jsx)(n.a,{href:"https://littlehorse.dev/blog/microservices-and-workflow",children:"https://littlehorse.dev/blog/microservices-and-workflow"}),".",(0,s.jsx)(n.br,{}),"\n","The inherent properties of a workflow engine enable developers, and operators, to regain control of their microservices deployments."]}),"\n",(0,s.jsx)(n.h4,{id:"api-gateway-",children:"API gateway "}),"\n",(0,s.jsx)(n.p,{children:"If we look at the properties of an API gateway and how they are used, a workflow engine makes sense."}),"\n",(0,s.jsxs)(n.p,{children:["The usage of an API gateway is to have a single layer that abstracts further endpoints.",(0,s.jsx)(n.br,{}),"\n","In practice this most often means calling the same API gateway multiple times, receiving the requested data, and doing some date manipulation or calculations at the application layer.\nA workflow engine performs all of the most common actions, and includes things like centralized security, possible data obscurity, failure handling, observability and allows for operators to scale compute.\nAll while still maintaining a central plane that can be shared across an entire orginization.",(0,s.jsx)(n.br,{}),"\n","Additionally a workflow engine still allows for the standard CRUD(Create, Read, Update, Delete) operations that an API gateway provides."]}),"\n",(0,s.jsx)(n.h4,{id:"user-tasks",children:"User tasks"}),"\n",(0,s.jsx)(n.p,{children:"A user task allows a developer to inject a human into the process. Using UserTasks you can assign a human to do something.\nOften times this means having a human approve a process, or reject a request."}),"\n",(0,s.jsx)(n.h4,{id:"integrations",children:"Integrations"}),"\n",(0,s.jsx)(n.h3,{id:"common-use-cases",children:"Common use cases"}),"\n",(0,s.jsx)(n.h4,{id:"process-orchestration-or-microservices",children:"Process Orchestration or Microservices"}),"\n",(0,s.jsx)(n.h4,{id:"data-manipulation",children:"Data manipulation"})]})}function d(e={}){const{wrapper:n}={...(0,a.R)(),...e.components};return n?(0,s.jsx)(n,{...e,children:(0,s.jsx)(h,{...e})}):h(e)}},8453:(e,n,t)=>{t.d(n,{R:()=>r,x:()=>i});var s=t(6540);const a={},o=s.createContext(a);function r(e){const n=s.useContext(o);return s.useMemo((function(){return"function"==typeof e?e(n):{...n,...e}}),[n,e])}function i(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(a):e.components||a:r(e.components),s.createElement(o.Provider,{value:n},e.children)}}}]);
\ No newline at end of file
diff --git a/assets/js/a1824316.58a6cea3.js b/assets/js/a1824316.58a6cea3.js
deleted file mode 100644
index 92d21fc0c..000000000
--- a/assets/js/a1824316.58a6cea3.js
+++ /dev/null
@@ -1 +0,0 @@
-"use strict";(self.webpackChunklh_site=self.webpackChunklh_site||[]).push([[9045],{3307:(e,t,n)=>{n.r(t),n.d(t,{assets:()=>d,contentTitle:()=>u,default:()=>p,frontMatter:()=>s,metadata:()=>i,toc:()=>c});var a=n(4848),r=n(8453),o=n(1470),l=n(9365);const s={},u="External Events",i={id:"developer-guide/wfspec-development/external-events",title:"External Events",description:"Before you can use an ExternalEventDef in a WfSpec, you need to create the ExternalEventDef metadata object in LittleHorse. You can do that following our metadata management docs.",source:"@site/docs/05-developer-guide/08-wfspec-development/04-external-events.md",sourceDirName:"05-developer-guide/08-wfspec-development",slug:"/developer-guide/wfspec-development/external-events",permalink:"/docs/developer-guide/wfspec-development/external-events",draft:!1,unlisted:!1,tags:[],version:"current",sidebarPosition:4,frontMatter:{},sidebar:"tutorialSidebar",previous:{title:"Mutating Variables",permalink:"/docs/developer-guide/wfspec-development/mutating-variables"},next:{title:"Interrupts",permalink:"/docs/developer-guide/wfspec-development/interrupts"}},d={},c=[];function h(e){const t={a:"a",admonition:"admonition",code:"code",h1:"h1",header:"header",p:"p",pre:"pre",...(0,r.R)(),...e.components};return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(t.header,{children:(0,a.jsx)(t.h1,{id:"external-events",children:"External Events"})}),"\n",(0,a.jsx)(t.admonition,{type:"info",children:(0,a.jsxs)(t.p,{children:["Before you can use an ",(0,a.jsx)(t.code,{children:"ExternalEventDef"})," in a ",(0,a.jsx)(t.code,{children:"WfSpec"}),", you need to create the ",(0,a.jsx)(t.code,{children:"ExternalEventDef"})," metadata object in LittleHorse. You can do that following our ",(0,a.jsx)(t.a,{href:"/docs/developer-guide/grpc/managing-metadata#externaleventdef",children:"metadata management docs"}),"."]})}),"\n",(0,a.jsxs)(t.p,{children:["You can use ",(0,a.jsx)(t.code,{children:"WorkflowThread#WaitForEvent()"})," to add an ",(0,a.jsx)(t.code,{children:"EXTERNAL_EVENT"})," Node that causes the ",(0,a.jsx)(t.code,{children:"WfRun"})," to block until an ",(0,a.jsx)(t.code,{children:"ExternalEvent"})," arrives. It's simple:"]}),"\n","\n",(0,a.jsxs)(o.A,{children:[(0,a.jsx)(l.A,{value:"java",label:"Java",default:!0,children:(0,a.jsx)(t.pre,{children:(0,a.jsx)(t.code,{className:"language-java",children:'public void threadFunction(WorkflowThread thread) {\n NodeOutput eventOutput = thread.waitForEvent("my-event-name");\n}\n'})})}),(0,a.jsx)(l.A,{value:"go",label:"Go",children:(0,a.jsx)(t.pre,{children:(0,a.jsx)(t.code,{className:"language-go",children:'func someThreadFunction(thread *littlehorse.WorkflowThread) {\n eventOutput := thread.WaitForEvent("my-event-name")\n}\n'})})}),(0,a.jsx)(l.A,{value:"python",label:"Python",default:!0,children:(0,a.jsx)(t.pre,{children:(0,a.jsx)(t.code,{className:"language-python",children:'def thread_function(thread: WorkflowThread) -> None:\n ext_event_output = thread.wait_for_event("my-event-name")\n'})})})]}),"\n",(0,a.jsxs)(t.p,{children:["Lastly, just as with ",(0,a.jsx)(t.code,{children:"TASK"})," nodes you can use the ",(0,a.jsx)(t.code,{children:"NodeOutput"})," from ",(0,a.jsx)(t.code,{children:"WorkflowThread::waitForEvent()"})," to mutate a ",(0,a.jsx)(t.code,{children:"WfRunVariable"}),":"]}),"\n",(0,a.jsxs)(o.A,{children:[(0,a.jsx)(l.A,{value:"java",label:"Java",default:!0,children:(0,a.jsx)(t.pre,{children:(0,a.jsx)(t.code,{className:"language-java",children:'public void threadFunction(WorkflowThread thread) {\n WfRunVariable myVar = thread.addVariable("my-var", VariableType.JSON_OBJ);\n NodeOutput eventOutput = thread.waitForEvent("my-event-name");\n thread.mutate(myVar, VariableMutationType.ASSIGN, eventOutput);\n}\n'})})}),(0,a.jsx)(l.A,{value:"go",label:"Go",children:(0,a.jsx)(t.pre,{children:(0,a.jsx)(t.code,{className:"language-go",children:'func someThreadFunction(thread *littlehorse.WorkflowThread) {\n myVar := thread.AddVariable("my-var", lhproto.VariableType_JSON_OBJ)\n eventOutput := thread.WaitForEvent("my-event-name")\n thread.Mutate(myVar, lhproto.VariableMutationType_ASSIGN, eventOutput);\n}\n'})})}),(0,a.jsx)(l.A,{value:"python",label:"Python",default:!0,children:(0,a.jsx)(t.pre,{children:(0,a.jsx)(t.code,{className:"language-python",children:'def thread_function(thread: WorkflowThread) -> None:\n myVar = thread.add_variable("my-var", VariableType.JSON_OBJ)\n event_output = thread.wait_for_event("my-event-name")\n thread.mutate(myVar, VariableMutationType.ASSIGN, event_output)\n'})})})]}),"\n",(0,a.jsx)(t.admonition,{type:"note",children:(0,a.jsxs)(t.p,{children:["If you use an ",(0,a.jsx)(t.code,{children:"ExternalEventDef"})," for any ",(0,a.jsx)(t.code,{children:"EXTERNAL_EVENT"})," node as shown in this tutorial, you cannot re-use that ",(0,a.jsx)(t.code,{children:"ExternalEventDef"})," as a trigger for ",(0,a.jsx)(t.a,{href:"/docs/developer-guide/wfspec-development/interrupts",children:"Interrupts"}),"."]})})]})}function p(e={}){const{wrapper:t}={...(0,r.R)(),...e.components};return t?(0,a.jsx)(t,{...e,children:(0,a.jsx)(h,{...e})}):h(e)}},9365:(e,t,n)=>{n.d(t,{A:()=>l});n(6540);var a=n(8215);const r={tabItem:"tabItem_Ymn6"};var o=n(4848);function l(e){let{children:t,hidden:n,className:l}=e;return(0,o.jsx)("div",{role:"tabpanel",className:(0,a.A)(r.tabItem,l),hidden:n,children:t})}},1470:(e,t,n)=>{n.d(t,{A:()=>w});var a=n(6540),r=n(8215),o=n(3104),l=n(6347),s=n(205),u=n(7485),i=n(1682),d=n(679);function c(e){return a.Children.toArray(e).filter((e=>"\n"!==e)).map((e=>{if(!e||(0,a.isValidElement)(e)&&function(e){const{props:t}=e;return!!t&&"object"==typeof t&&"value"in t}(e))return e;throw new Error(`Docusaurus error: Bad Your Docusaurus site did not load properly.
\nA very common reason is a wrong site baseUrl configuration.
\nCurrent configured baseUrl = ${e} ${"/"===e?" (default value)":""}
\nWe suggest trying baseUrl =
\nYour Docusaurus site did not load properly.
\nA very common reason is a wrong site baseUrl configuration.
\nCurrent configured baseUrl = ${e} ${"/"===e?" (default value)":""}
\nWe suggest trying baseUrl =
\n