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

akshat_jain09

12-02-2019

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.

Accepted Solutions (1)

Accepted Solutions (1)

Arun_Patidar

MVP

18-02-2019

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...