For Java SDK. Please consider next use case.
- Start workflow
- Signal workflow and add some external value to class level variable. Eg some mutable List (ArrayList)
- Just before finish of workflow as a last step check if List has any value
- If yes, continue same workflow AsNew by provide List and object from List as input
- Exec new workflow.
Is it working case for Temporal?