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 Type
    Method
    Description
    org.teavm.jso.core.JSPromise<org.teavm.jso.JSObject>
     
    org.teavm.jso.core.JSPromise<org.teavm.jso.JSObject>
     
    org.teavm.jso.core.JSPromise<org.teavm.jso.JSObject>
     
    org.teavm.jso.core.JSPromise<org.teavm.jso.JSObject>
     
    Returns the instance id.
    default String
    id()
    Returns the instance id, for a caller that only wants the string.
    default void
    Pauses the instance.
    org.teavm.jso.core.JSPromise<TSObject>
     
    default void
    Resumes a paused instance.
    default void
    sendEvent(String type, TSObject payload)
    Delivers an event the workflow is waiting for.
    default TSObject
    Returns the instance's status and output.
    default void
    Stops 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

      default TSObject 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

      default void sendEvent(String type, TSObject payload)
      Delivers an event the workflow is waiting for.
      Parameters:
      type - the event type the workflow named
      payload - 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

      org.teavm.jso.core.JSPromise<org.teavm.jso.JSObject> doSendEvent(TSObject event)
    • id

      default String 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