How do I disable a workflow model for an asset for which that workflow is already initiated? | Community
Skip to main content
akshat_jain09
Level 2
February 13, 2019
Solved

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

  • February 13, 2019
  • 3 replies
  • 2589 views

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.

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by arunpatidar

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.provider.html?item=%2Fc…

3 replies

Gaurav-Behl
Level 10
February 16, 2019

Could you share more details about your use case?

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

Umamaheswari_Yakkala
Community Advisor
Community Advisor
February 16, 2019

Do you want to hide the workflow?

arunpatidar
Community Advisor
arunpatidarCommunity AdvisorAccepted solution
Community Advisor
February 18, 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.provider.html?item=%2Fc…

Arun Patidar