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 with prn-str, 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]](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 with [prn-str](https://clojuredocs.org/clojure.core/prn-str), 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] ...) ```
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close