Hi Team,
We are using Temporal java SDK version: 1.18.2 We have a workflow where we use signalWithStart and rely on some processing inside our signal method before starting our workflow. It is my understanding that the signal method should be executed and completed before the workflow method is started, however I notice that when I make an activity call inside the signal method it relinquishes control and the workflow method begins executing before the activity is completed inside the signal method. I am able to cross check this behavior inside the UI as well Here are the events
- WorkflowExecutionStarted
- WorkflowExecutionSignaled
- WorkflowTaskScheduled
- WorkflowTaskStarted
- WorkflowTaskCompleted
- ActivityTaskScheduled(This is the activity kicked off from my signal method)
- TimerStarted(This is a timer I have inside my workflow method however my signal method hasn’t completed so this shouldn’t happen)
I am trying to understand if this expected behavior?