throw new JbpmException("the activity " + newActivity + " could not be found in the new process definition.");
}
}
private static void logMigration(ProcessInstance processInstance, ProcessDefinition processDefinition) {
ProcessInstanceMigration processInstanceMigrate = new ProcessInstanceMigration(processInstance, processDefinition);
HistoryEvent.fire(processInstanceMigrate);
}