deactivate workflow
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-08-2018 07:25 AM
What is the correct process for removing an existing workflow and replacing it with a new one? I can't find any documentation relating to this in the Jakarta product documentation. Can anyone point me in the right direction to where this is documented please?
We have a workflow which is being replaced by two new ones, both with different names from the old one (to reflect their precise purpose). However, when I de-activated the old workflow in the Workflow Editor in our development instance and tried running one of the new workflows, both the old and the new workflows ran for the same record. When I looked at the Workflow Versions list, there were two versions of the old workflow, one checked out to me and marked as inactive and the other not checked out and marked as active.
I tried deleting the active one using the delete option but it warned that 20 workflow activities would also be deleted. While this would be fine in the development instance, this would not be OK in the live instance when we eventually move the new workflows across as any existing workflows would need to run to completion rather than being ended mid flow.
So I went back to the Workflow Editor, checked it out again and de-activated it again. Both versions of the old workflow now show they are inactive in the Workflow Versions list and the new workflow runs on its own. But why did it create a copy and only de-activate the copy? Is this normal behaviour? I vaguely remember having issues like this before but it is a while since we have needed to completely replace a workflow and I can't remember what we did last time.
Regards,
Anne.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-08-2018 07:49 AM
once you mark it as inactive you have to publish it in order for your change to take effect. If it's still checked out it will still run for you.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-08-2018 07:58 AM
There was no Publish option in the menu after I had selected de-activate. It wasn't there the second time I did it either but the second time did result in both versions being flagged as inactive.
Regards,
Anne.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-08-2018 02:07 AM
If you check out and set it inactive, you will see a duplicate record created in wf_workflow_version table. Once you mark the workflow as inactive, publish the workflow so that it will be published true but inactive.
You should be able to see publish option if you had checked it out inorder to set it as inactive.