Skip to content

Ability to check if a promise has been invoked before - ctx.promiseHandle #503

@jamals86

Description

@jamals86

There is no way to check if a promiseHandler is already resolved() or not i suggest adding a new function like this:
DurablePromiseHandle.isResolved()
This way before resolving the user can check if it's not ready resolved

@Shared public void accept(SharedWorkflowContext ctx) { // TODO: Check if it's not resolved already ctx.promiseHandle(USER_ACCEPTED).resolve(true); }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions