Skip to content

Cannot return value of WorkflowLocal var from query method #1120

Closed
@tsurdilo

Description

@tsurdilo

Query method:

     @Override
     public String queryGreeting() {
         return greeting.get();
     }

where greeting is

    private WorkflowLocal<String> greeting = WorkflowLocal.withInitial(() -> "hello");

When a client calls queryGreeting SDK fails with:

     Caused by: io.grpc.StatusRuntimeException: INVALID_ARGUMENT: java.lang.Error: Called from non workflow or workflow callback thread

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions