You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm looking for a way to configure a fairly complex flow behind a HTML form submission. The flow is hard-coded now but for our customers, we want to make it configurable. I'm making a POC but am stumbling on the user tasks. What I want is an Express app that uses the BPMN to navigate through the screens.
First I was thinking it would take the correct flow after the loginPage task, but it seems it continues inside the loginPage task. Makes sense, as I haven't ended that activity yet.
So I was going to inspect the request object which I pass to the services option. However, on resuming my engine, I see that all services are undefined (req, res, isTrue and `isFalse).
What is the correct way to resume an engine and include the necessary services again so I can continue "as if nothing happened"?
The text was updated successfully, but these errors were encountered:
For anyone looking at this (including the author): I finally managed to achieve what I wanted. You can see my current POC here. For this specifically, I declared my services outside my Express handlers.
I'm looking for a way to configure a fairly complex flow behind a HTML form submission. The flow is hard-coded now but for our customers, we want to make it configurable. I'm making a POC but am stumbling on the user tasks. What I want is an Express app that uses the BPMN to navigate through the screens.
This is a simple BPMN I have now:
When I GET the root URL, my app starts the engine:
The listener listens to several events, but this is the important one:
The
userTasks[api.id](api)
basically calls the following logic:Now this works on the GET. The state is stored and the engine is stopped. But when I POST the form, I want to continue the flow where I left off:
First I was thinking it would take the correct flow after the loginPage task, but it seems it continues inside the loginPage task. Makes sense, as I haven't ended that activity yet.
So I was going to inspect the request object which I pass to the
services
option. However, on resuming my engine, I see that allservices
are undefined (req
,res
,isTrue
and `isFalse).What is the correct way to resume an engine and include the necessary services again so I can continue "as if nothing happened"?
The text was updated successfully, but these errors were encountered: