Interface SharedWorkflowContext

All Superinterfaces:
Context, SharedObjectContext
All Known Subinterfaces:
WorkflowContext
All Known Implementing Classes:
FakeContext

@Deprecated(since="2.9", forRemoval=true) public interface SharedWorkflowContext extends SharedObjectContext
Deprecated, for removal: This API element is subject to removal in a future version.
The Context-parameter programming model is superseded by the reflection-based API. Rather than accepting a SharedWorkflowContext parameter, use Restate.promise(...), Restate.promiseHandle(...) and Restate.state() inside the handler. See the migration guide.
This interface can be used only within shared handlers of workflow. It extends Context adding access to the workflow instance key-value state storage and to the DurablePromise API.

NOTE: This interface MUST NOT be accessed concurrently since it can lead to different orderings of user actions, corrupting the execution of the invocation.

See Also: