Use Case Clarification #175
Replies: 5 comments 7 replies
-
I would not worry about performance, just it does not look very good on the surface. Even though bpmn does not support a you can invoke event 'start_2' anytime after the workflow is completed. If you think this will solve your issue, I can work on this for a next release Thanks |
Beta Was this translation helpful? Give feedback.
-
Hi @MaheshkumarSundaram , What you are asking for is not weird at all. Actually, I am adding a new method restart(instanceQuery:object, startNodeId: string, data:any,user?:ISecureUser, options?:IEngineOptions) :Promise<IExecution>; Should be available later this week. Thanks |
Beta Was this translation helpful? Give feedback.
-
This is the default behaviour if you pass empty data {} to restart: response=await server.engine.restart({"items.id":itemId},{},user,{});
executed Buy Used Car - completed
item: e0715263-6bf8-4614-b632-1ca674acfffd StartEvent_158yep3 end
item: 0fad3464-9804-4065-a224-3ec91a4a1473 flow_start_buy end
item: de32c872-98d2-4043-ba57-71351c8bbf23 task_Buy end
item: c1af06bd-3b0c-4fac-bc91-d552ae56f39a flow_buy_gw end
item: 2dc4e899-2910-4236-8eba-3e23a5f30aa1 gateway_1 end
item: 1be0587c-f108-4153-9f8a-168a6ec482ae flow_gw1_clean end
item: 8d5b544c-e83e-4918-9e9e-92f29a67288e flow_gw1_repair end
item: 49bc02c8-5838-4a27-b5f7-d1add846bbba task_clean end
item: 9cf21f42-8ff5-4cc0-88bb-f922327cd52e task_repair end
item: 2682cc4d-bb33-4f9d-baaa-af19e7b5ccb1 flow_repair_gw2 end
item: e38a0a1e-a420-41a5-a7e2-59e8a81ebf4f gateway_2 end
item: 17e5d591-04e2-4101-bb9f-7a504f07db0b flow_clean_gw2 end
item: c13c1ad1-ab73-4f3a-be01-45e278607345 gateway_2 end
item: 6540e299-2ed6-4f5a-a53f-80320a5e3ecb flow_gw2_drive end
item: 9506e29f-bd9a-4fd5-9b51-ce35521d39f2 task_Drive end
item: e570afd9-4389-40f3-99c5-73cad4fcede4 flow_drive_end end
item: 128e655f-6bb0-4194-92df-cc90177a16ea Event_19ebav7 end
data: {
needsCleaning: 'Yes',
needsRepairs: 'Yes',
starterUserId: 'user1',
startDate: 2024-03-05T16:55:27.098Z
}
-------------------- restart -----------------
restarting de32c872-98d2-4043-ba57-71351c8bbf23
restarted de32c872-98d2-4043-ba57-71351c8bbf23
-------------------- restart Items-----------------
item: e0715263-6bf8-4614-b632-1ca674acfffd StartEvent_158yep3 end
item: 0fad3464-9804-4065-a224-3ec91a4a1473 flow_start_buy end
item: de32c872-98d2-4043-ba57-71351c8bbf23 task_Buy wait
data: {
needsCleaning: 'Yes',
needsRepairs: 'Yes',
starterUserId: 'user1',
startDate: 2024-03-05T16:55:27.098Z
} Any data you pass, will append existing data |
Beta Was this translation helpful? Give feedback.
-
Hi @ralphhanna , Thanks for the new release. How would I restart the above workflow from |
Beta Was this translation helpful? Give feedback.
-
Sorry, Ignore the diagram above, didn't quite work, so added a new method 'engine.restart` |
Beta Was this translation helpful? Give feedback.
-
Hi @ralphhanna,
Sometimes, a finished workflow with the same data has to be retriggered from a specific point not from the start due to my business case. I don't think there is any way to restart a finished workflow with the same data from a specific point by skipping some processes in a workflow automatically.
So, I thought to include a 30 day wait time before the actual end event of the workflow. This way if the users need to go back, they would just reroute the workflow to the point from where the processes have to be repeated through a user task.
If I do this 30 day window, there would be minumum 100 workflows at any point of time. Also, my another web application uses
bpmn-client
to query the server simultaneously too (min 50 users would query the server at any point of time).Do you see any pitfalls with this approach? Will it affect performance? My concern is scalablitiy of the application.
If you any suggestions to improve, please let me know.
Thanks
Beta Was this translation helpful? Give feedback.
All reactions