Methods for defining Temporal workflows
Methods for defining Temporal workflows
(defworkflow name params* & body)Defines a new workflow, similar to defn, expecting a 2-arity parameter list and body. Should evaluate to something serializable, which will become available for [[temporal.client.workflow/get-result]].
Arguments:
ctx: Context passed through from temporal.client.worker/startargs: Passed from 'params' to [[temporal.client.workflow/start]] or [[temporal.client.workflow/signal-with-start]](defworkflow my-workflow
[ctx args]
...)
Defines a new workflow, similar to defn, expecting a 2-arity parameter list and body. Should evaluate to something
serializable, which will become available for [[temporal.client.workflow/get-result]].
Arguments:
- `ctx`: Context passed through from [[temporal.client.worker/start]]
- `args`: Passed from 'params' to [[temporal.client.workflow/start]] or [[temporal.client.workflow/signal-with-start]]
```clojure
(defworkflow my-workflow
[ctx args]
...)
```(get-info)Return info about the current workflow
Return info about the current workflow
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |