Expand my Community achievements bar.

SOLVED

How do I disable a workflow model for an asset for which that workflow is already initiated?

Avatar

Level 2

I have created a workflow, say "My Asset Ingestion workflow". When I select that asset and click create workflow, I see a list of workflow options available. However it is expected that the already initiated workflow should be disabled.

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

Hi,

This is not available OOTB because user can run multiple instances of workflow simultenously.

To achieve same for your requirement you can write js to hide/disable wf models.

Below returns create workflow dialog and append in existing DOM when clicking on create workflow button . You can write one more event to check workflows and delete/disabled selected based on results.

http://localhost:4502/mnt/overlay/dam/gui/content/commons/createworkflowdialog.html?_=1550505362156

below will provide the workflow timeline status where item parameter in query string holds the path of assets.

http://localhost:4502/mnt/overlay/dam/gui/coral/content/commons/sidepanels/timeline/items/events.pro...



Arun Patidar

View solution in original post

3 Replies

Avatar

Level 10

Could you share more details about your use case?

Do you mean that already initiated workflow "instance" should be disabled?

Avatar

Community Advisor

Do you want to hide the workflow?

Avatar

Correct answer by
Community Advisor

Hi,

This is not available OOTB because user can run multiple instances of workflow simultenously.

To achieve same for your requirement you can write js to hide/disable wf models.

Below returns create workflow dialog and append in existing DOM when clicking on create workflow button . You can write one more event to check workflows and delete/disabled selected based on results.

http://localhost:4502/mnt/overlay/dam/gui/content/commons/createworkflowdialog.html?_=1550505362156

below will provide the workflow timeline status where item parameter in query string holds the path of assets.

http://localhost:4502/mnt/overlay/dam/gui/coral/content/commons/sidepanels/timeline/items/events.pro...



Arun Patidar