I have about 1000 workflows that I have been using for test and would like to know a quick way of deleting them all at once, rather than going through them one by one.
Are you trying to delete an executing/initiated/suspended work flow or are you trying to kill the WF maps you created.
The approach should be different for both.All your maps is an object in dtree and dversdata with subtype filter=154 which is for workflow.However if your intention is to go after executing/archived workflows the API says to use
DeleteWorkflow .This is from the API reference
If the workflow specified by the workID parameter has not been stopped using the StopWorkflow function or completed by performing EndTask on the last task, the DeleteWorkflow function returns Error.
Successful execution deletes the workflow from the database, including the work package (attributes, attachments, comments, and forms), and deletes the audit trail as well.
*************************
If you have a mailid I will send you a sample java file that will query for a specified workflow.You can see if you can use them by passing a dynamic list of all workflowids
I am trying to delete and executing/initiated/suspended wf. We are heavily dependant on workflows and we have something called FTU which uploads workflows in bulk so in test I get a lot I have to delete one by one - painful.
I'll have a look at what you were saying, but we are currently going live so dont want to delete anything at the moment, but after that I'll give your app a go.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.