Jump to content

Recommended Posts

Posted

Hi,

We have 4125 pages of cancelled BPMs showing in com.hornbill.servicemanager/manage-executed-processes/

Am I right in thinking that if we specified a status of cancelled, and set the below setting to true, it would remove the cancelled BPMs?


KeepRequestsCancelBPTasks : a boolean (defaulting to false) which if set to true will NOT actually delete the selected requests, but will cancel the Business Process Workflow and any Tasks connected to the request?

 

I imagine it looking something like this?

{
    "CleanRequests": true,
    "RequestServices": [],
    "RequestCatalogItems": [],
    "RequestStatuses": ["status.cancelled",],
    "RequestTypes": [],
    "KeepRequestsCancelBPTasks": true,

Posted

@will.good a cancelled workflow might not necessarily be associated with a cancelled request. Workflows can be cancelled independently of a request so, in theory, you can have a request that has a status other than cancelled associated with a workflow that is cancelled. However, the most common scenario is that a cancelled request will be associated with a cancelled workflow so doing what you suggested above would take care of most (if not all) of the cancelled workflows. But that's in theory...

12 hours ago, will.good said:

Am I right in thinking that if we specified a status of cancelled, and set the below setting to true, it would remove the cancelled BPMs?

Actually, no, because as you said, "will NOT actually delete the selected requests, but will cancel the Business Process Workflow and any Tasks connected to the request" which means that the workflow will be cancelled but that won't actually remove it from the list of cancelled workflows. If you set the tool with the above configuration might not actually achieve anything because, if a request is cancelled, then most likely the workflow associated with it is also cancelled because cancel action has built-in functionality to cancel associated workflows and tasks at the time when the request is cancelled.

Posted

Thanks Victor, that makes sense.

I think what I'm really looking for here is a way for the tool to remove a list of BPMs that are no longer required? I'm guessing this isn't possible at the moment?

Posted

@will.good that is correct. Is there a specific need to have these removed or simply a housekeeping exercise? You can perhaps use the delete in bulk, by selecting all workflows displayed and using the delete button... it will only select the records displayed on the page (50 at a time) so it won't be quick doing 4k records but is a possible option... alternatively, you can reach to product specialists so we can do this for you but it would be a chargeable exercise (e.g. credits or otherwise)

image.png

Posted

Simply for housekeeping

It would be good to see some functionality added to the tool to be able to do this, but will reach out to support to see if they can get this done for us.


Thanks!

Posted (edited)

Could this be treated as an enhancement request to the Cleaner utility?

Essentially the need here is to delete BPMs (specified by the current arrays) but keep the requests.

The current setting KeepRequestsCancelBPTasks does half the job, by cancelling the Workflows, but we'd like the ability to just delete Workflows from set requests (in our instance those that have been completed and are no longer needed)

 

Edited by will.good
Added enhancement tag

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...