cancel
Showing results for 
Search instead for 
Did you mean: 

Deploying Workflows with Delegates - Can't Delete

zoikks1
Champ in-the-making
Champ in-the-making
Hi - we're using activiti-explorer to manage our workflows.  We uploaded a new workflow that contains dependencies on Java delegates.  We uploaded the new workflow using the "Processes" tab and deployed it.  There were no problems with this.  Once we wanted to delete the deployment, we noticed we forgot to put the Java delegates into the classpath of the engine.  As such, we were informed we could not delete the deployed workflow.

As a work-around, we went to the database directly and deleted the necessary entries to clean it up.

Is there a way to delete these workflows that may not have the proper classpath entries?  Better yet…  is there a way to prevent the workflows from being deployed unless the necessary delegate classes are in the classpath?

Thanks.
1 REPLY 1

frederikherema1
Star Contributor
Star Contributor
In the beginning, we had additional checks at deploy-time to see if the needed classes were on the class path. But we reverted that, due to the fact one can do "deploys" from other engines than the actual engine running the workflows. This was too restrictive, so we got rid of it.

One solution would be to alter the actual ACT_GE_BYTEARRAY entry for that deployment (!! when engine is down), removing the offending listeners. After booting the engine, you can delete the process and everything is nicely cleaned up the way it should (cascading all related entities). Another approach would be to migrate the process-instances to a newer version, which don't have the wrong class-pointers in it (using SetProcessDefinitionsCmd, search forum for this), so they are running in a process that can be deleted.