updated the error text for migration issues

This commit is contained in:
jasquat 2024-07-15 11:47:15 -04:00
parent 19ff18df8e
commit 9224fbbcfa
No known key found for this signature in database

View File

@ -198,8 +198,10 @@ class ProcessInstanceService:
) )
if not cls.can_migrate(top_level_bpmn_process_diff, subprocesses_diffs): if not cls.can_migrate(top_level_bpmn_process_diff, subprocesses_diffs):
raise ProcessInstanceMigrationNotSafeError( raise ProcessInstanceMigrationNotSafeError(
f"It is not safe to migrate process instance {process_instance.id} to " f"It is not safe to migrate process instance {process_instance.id} to this version of "
f"new version of '{process_instance.process_model_identifier}'" f"'{process_instance.process_model_identifier}'. This version of the process model may have changed tasks that "
"have been completed in this process instance or the changes to be made may be too dangerous "
"to ensure a safe migration."
) )
return ( return (
processor, processor,