Propagate exceptions outside workflow

You mentioned

If a signal method doesn’t block then it is guaranteed that the query is called after the signal method returns.

But I got confused after reading your other response for similar issue

The thread seems to indicate that a “polling” mechanism is needed, as opposed to a simple “query after signal” pattern. So does the below code work if I “query after signal” without polling?

// signal
public void change(boolean validation) {
     if (validation) {
         this.isChanged = true
     }
}

// query
public boolean isChanged () {
    return this.isChanged;
}
1 Like