OK, so after successfully redeploying a BPEL process (through the API, so versioning is used), there's a retired process lying around. It might have some active processes that we need to get rid of. What is the recommended procedure for getting rid of this retired process? My thought is:
* Terminate all the non-errored, non-completed instances. * Delete all the instances of this process, which should now include all the terminated ones. This seems to take a long, long time through the Web Service API. * Now there should be no instances left. Undeploy the retired instance. Does that sound right? Is there a more automatic way to flush retired processes? (Ideally I'd like to set a cron job that says "flush all retired processes after 7 days.")
