Deleting Checked Out Workflows

jmiskey
Kilo Sage

In our DEV system, there are a handful of old workflows (Workflow Editor, NOT Flow Designer) I have checked out for various reasons.  Sometimes it is because you need to check it out to investigate it and see a "friendlier, more complete view of the details of each action.  Other times, it may be because I was just testing something.  In any event, I usually delete the recent "checked out" version, so it reverts back to the most recent published version before I do any new development work on that workflow.

 

I am experiencing something weird.  I had about 10 checked out workflows (all in the Global).  I opened them up, one-by-one, went to the Context Menu (hamburger) and clicked on "Delete" to delete the checked out version.  I was able to do this on 7 of them.  But the other 3, which still show as "checked out by me", do not give me an option to Delete them when I go to the Context Menu. 

 

Why would that be?  I am not sure why these are behaving differently.  I want to delete the current check out versions so I can start making new changes (and not pick up anything else I may have been messing around with/testing before).

 

Thanks

4 REPLIES 4

k_lutz
Tera Guru

Hi @jmiskey,

 

There is another posting similar to yours.

Seems it could be related to needing one of the workflow roles since the ACL does not have admin override on it, that active contexts may exist and/or I read on another one that there is no published version to fall back to which is needed.

I would tend to believe it is not an ACL issue, as I was able to delete most of the checked out workflows, just not a certain few.  And the ones that I have not been able to delete have been around for a very long time, and have previous versions to revert to (the last published version).

 

I look at the Workflow Versions, and I think I may have stumbled upon something.  It shows 2 published versions for the same workflow!  I am not even sure how this is possible!

 

jmiskey_0-1766436242005.png

 

Do I just need to delete the older of the 2 published versions?

Hi,

There was a comment in the other thread that said the same thing...they could delete some but not all of them.

As far as deleting them, I don't think you can pick it based on date. I would check Executing Activities or Active Contexts to make sure there is nothing currently active / tied to the sys_id of what you want to delete before you delete it and I would export it to XML just in case you need it again. I would look to stay with the one that won't damage any open tickets since each workflow creates an instance tied to a record. Or run it from a fix script so you can always rollback from the delete.

When I go to Active Workflow Contexts, I see 66 active ones executing.  Is there an easy way to see which sys_ids are being used without clicking on each to open it?