sartography / spiff-arena

SpiffWorkflow is a software development platform for building, running, and monitoring executable diagrams
https://www.spiffworkflow.org/
GNU Lesser General Public License v2.1
51 stars 38 forks source link

Guest user form - Interstitial instructions not displayed #1740

Open madhurrya opened 1 month ago

madhurrya commented 1 month ago

Please check this model. https://dev.app.spiff.status.im/editor/process-models/misc:qa:forms:guest-form1/files/guest-form1.bpmn If the first task is not set as Guest then when completing it I can see the instructions there

Image

But when it is marked as guest, it shows only the loading icon

Image

This issue is related to this comment https://github.com/sartography/spiff-arena/issues/979#issuecomment-2165896168

jasquat commented 1 month ago

We run guest tasks in synchronous mode which means it runs all of the jobs it can before returning. This means that at no point can we get the instructions. We do this because we don't know when the next guest task is or if there is one so we run the process as far as we can and then check to see if there's a guest task waiting. In order to get instructions, we will have to rethink the way we are currently handling this flow.