Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Deleting workflows in 9.0.1

Status
Not open for further replies.

chelsea3

IS-IT--Management
May 22, 2003
3
GB
Hi,

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.

Can anyone help? Be good to know how!

Thanks

Oli
 
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

 
Thanks for your reply.

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.

Cheers!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top