How to execute workflow custom process steps in a single thread?
Hi There
We have a use case where the launcher is triggering workflow which in turn triggers another custom workflow. The launcher is triggered by a node update which happens via a translation connector which triggers the launcher and executes workflow.
Sometimes the frequency of updating a single node by translation connector multiple times is so fast that it triggers the launcher and triggers another workflow on the page multiple times even though I've put a check to execute logic when the page is not subject to workflow.
So, if logic is executed for a page means workflow has already been triggered meaning logic again should not be executed because page is already subject to workflow but due to quick processing it's triggering again because workflow check returns false.
Is there any way entire code can be executed in a single thread so process step processing happens after the completion of previous one?
I already tried adding the entire custom process code inside "Executor newSingleThread" but still it triggers multiple threads.
Is there any way to restrict it?
Or another thing, is there anyway that if a page is subject to workflow then do not trigger another workflow on it? As I can see, the page can be subject to more than one workflow.