cancel
Showing results for 
Search instead for 
Did you mean: 

Delete broken process/process migration

unknown-user
Champ on-the-rise
Champ on-the-rise
Hi all,

I've refactored some of our domain classes, which now reside in a different package.
One of our processes contains a business rules task, which in turn contains in its rules imports for the former package structure of the domain classes.
I've refactored and deployed the process model/rules to match the new package structure of the domain classes.

In order to migrate the running process instances, I intend to delete the old ones using runtimeService.deleteProcessInstance() and restart them (using the newly deployed model).

However, when I call runtimeService.deleteProcessInstance(), the Activiti engine (after a restart of my app server) tries to redeploy the old version of the process, which in case of the business rules task leads to a 'could not parse knowledge' Exception, because the associated rules (of the old process version) contain the imports for the old package structure.

Is there a "brute-force" way to kill running process instances to overcome this issue?

Thanks,
Markus
2 REPLIES 2

jbarrez
Star Contributor
Star Contributor
Simply remove the deployment, using 'true' to cascade. This will remove all process definitions and process instances.

Or isn't that what you are looking for?

unknown-user
Champ on-the-rise
Champ on-the-rise
Hi Joram,

Thanks a lot.

Yes, that helped.

Regards,
Markus
Getting started

Tags


Find what you came for

We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.