Package dev.gmitch215.bytebox.binding
Interface Workflow
- All Superinterfaces:
org.teavm.jso.JSObject
public interface Workflow
extends org.teavm.jso.JSObject
A Workflows binding. Declared with
workflow(), named WORKFLOW by default.
A workflow outlives the request that started it and survives a restart, so this binding starts one and asks after it rather than running it.
- Since:
- 1.0.0
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionorg.teavm.jso.core.JSPromise<Workflow.Instance> org.teavm.jso.core.JSPromise<Workflow.Instance> fetchInstance(String id) default Workflow.InstanceLooks up a running or finished instance.default Workflow.InstanceStarts an instance, letting Cloudflare pick the id.default Workflow.InstanceStarts an instance with an id of your own, which makes the call idempotent.Methods inherited from interface org.teavm.jso.JSObject
cast
-
Method Details
-
start
Starts an instance, letting Cloudflare pick the id.- Parameters:
params- the workflow's input- Returns:
- the new instance
-
start
Starts an instance with an id of your own, which makes the call idempotent.- Parameters:
id- the instance idparams- the workflow's input- Returns:
- the new instance
-
instance
Looks up a running or finished instance.- Parameters:
id- the instance id- Returns:
- the instance
-
create
-
fetchInstance
-