Package dev.gmitch215.bytebox.binding
Interface Workflow.Instance
- All Superinterfaces:
org.teavm.jso.JSObject
- Enclosing interface:
Workflow
public static interface Workflow.Instance
extends org.teavm.jso.JSObject
One workflow instance.
- Since:
- 1.0.0
-
Method Summary
Modifier and TypeMethodDescriptionorg.teavm.jso.core.JSPromise<org.teavm.jso.JSObject> doPause()org.teavm.jso.core.JSPromise<org.teavm.jso.JSObject> doResume()org.teavm.jso.core.JSPromise<org.teavm.jso.JSObject> doSendEvent(TSObject event) org.teavm.jso.core.JSPromise<org.teavm.jso.JSObject> getId()Returns the instance id.default Stringid()Returns the instance id, for a caller that only wants the string.default voidpause()Pauses the instance.org.teavm.jso.core.JSPromise<TSObject> default voidresume()Resumes a paused instance.default voidDelivers an event the workflow is waiting for.default TSObjectstatus()Returns the instance's status and output.default voidStops the instance for good.Methods inherited from interface org.teavm.jso.JSObject
cast
-
Method Details
-
getId
String getId()Returns the instance id.- Returns:
- the instance id
-
status
Returns the instance's status and output.- Returns:
- the instance's status and output
-
pause
default void pause()Pauses the instance. -
resume
default void resume()Resumes a paused instance. -
terminate
default void terminate()Stops the instance for good. -
sendEvent
Delivers an event the workflow is waiting for.- Parameters:
type- the event type the workflow namedpayload- the event's payload
-
readStatus
org.teavm.jso.core.JSPromise<TSObject> readStatus() -
doPause
org.teavm.jso.core.JSPromise<org.teavm.jso.JSObject> doPause() -
doResume
org.teavm.jso.core.JSPromise<org.teavm.jso.JSObject> doResume() -
doTerminate
org.teavm.jso.core.JSPromise<org.teavm.jso.JSObject> doTerminate() -
doSendEvent
-
id
Returns the instance id, for a caller that only wants the string.- Returns:
- the instance id, for a caller that only wants the string
-