cancel
Showing results for 
Search instead for 
Did you mean: 

Modifying alfresco advanced workflows on the fly

kamlesh
Champ in-the-making
Champ in-the-making
I would like to modify an instance of a workflow (not the workflow definition) on the fly by adding/removing task nodes by providing some kind of user interface to user.
Ex if there is a workflow definition with nodes A-> B-> C-> D and there are 10 instances running is it possible to change one of these instances a-> b-> c-> d by adding a new task node like a-> b-> b1-> c-> c1-> d.
Let me know if this is supported by Alfresco workflow APIs.

- Kamlesh
3 REPLIES 3

jayjayecl
Confirmed Champ
Confirmed Champ
I am pretty sure this cannot be achieved via any API.
Any workflow instance that was started will keep its definition until it is completed.

regards

kamlesh
Champ in-the-making
Champ in-the-making
Thanks for the quick reply!

Is there any other workaround for achieving the same?

- Kamlesh

mrogers
Star Contributor
Star Contributor
JayJayECL is correct that you can't change a workflow on the fly.

However what you would need to do for your use-case is to anticipate and build in the decisions into your workflow.   

Two approaches that will work for your example.
    you could always include "b1" but make it a no-op depending on a condition.
    you could have a decision node in your workflow,   "how many instances running > 10 B1 else C."
Getting started

Tags


Find what you came for

We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.