For deleting a used process; we have first delete the whole instances that were completed/started or in any status of that particular process. This can be achived by using the below scripts.
Delete from wmprocessassoc where rootcontextid in(
Select b.Rootcontextid from wmprocessassoc b,wmprocess a
where
a.rootcontextid=b.rootcontextid and
a.processkey =‘SampleProject/Sample’)
delete from wmprocessrecent where processkey =‘SampleProject/Sample’
delete from wmprocessstep where rootcontextid in(
Select b.rootcontextid from wmprocessstep b,wmprocess a
where
a.rootcontextid=b.rootcontextid and
a.processkey =‘SampleProject/Sample’)
delete from wmprocess where processkey =‘SampleProject/Sample’
After running and commiting the above script in ur webMethods schema; Login to MWS as Administrator
Navigate to Administration>Business>BusinessProcess.
The process that is to be deleted(Sample) will have enabled check box.Click on the checkbox and click delete.!!
#BPM#webMethods-BPMS#webMethods