Skip to content

Commit

Permalink
The property "migrateToProcessDefinitionVersion" is optional, if it i…
Browse files Browse the repository at this point in the history
…s not set it takes the latest process definition (see AbstractDynamicStateManager#resolveProcessDefinition()) (#3714)
  • Loading branch information
amporsim committed Aug 29, 2023
1 parent eddca26 commit 0a57281
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ public ProcessInstanceMigrationDocument build() {
if (migrateToProcessDefinitionKey == null) {
throw new FlowableException("Process definition key cannot be null");
}
if (migrateToProcessDefinitionVersion == null || migrateToProcessDefinitionVersion < 0) {
if (migrateToProcessDefinitionVersion != null && migrateToProcessDefinitionVersion < 0) {
throw new FlowableException("Process definition version must be a positive number");
}
}
Expand Down

0 comments on commit 0a57281

Please sign in to comment.