It happened multiple times, that I change the calss name, which is in the bpmn diagram as a serviceTask's delegateExpression value and then the older processes which aren't finished yet, gets an error because it cannot find the class it is in the delegateExpression.
Im just curious about if I can change the delegateExpression's value in runtime in Activiti? For example, I give a method two parameters: oldName and newName, the method changes the delegateExpression's value in all running processes. Then it won't be a problem anymore if I refactor a used class.
I read the Activiti User Guide and in chapter 3.7, there is ACT_RE_... tables in the database and ACT_RE_PROCDEF stores the used bpmn diagram for the process, but I cannot change it because it will need to rebuild the application to make the changes happen. And I think it isn't the proper way to solve this problem.