fjtirado commented on code in PR #3403:
URL:
https://github.com/apache/incubator-kie-kogito-runtimes/pull/3403#discussion_r1532802881
##########
api/kogito-api/src/main/java/org/kie/kogito/process/ProcessInstances.java:
##########
@@ -33,9 +33,18 @@ default Optional<ProcessInstance<T>>
findByBusinessKey(String id) {
return stream().filter(pi -> id.equals(pi.businessKey())).findAny();
}
+ default void migrate(String targetProcessId, String targetProcessVersion,
String... processIds) throws UnsupportedOperationException {
+ throw new UnsupportedOperationException();
+ }
+
+ default long migrate(String targetProcessId, String targetProcessVersion)
throws UnsupportedOperationException {
Review Comment:
Why the migrate methods are located here and not in a different interface?.
I guess that the reason is to force all addons to implement migration.
The reason Im asking is that is not usual to see methods in a repository
that are not CRUD or query ones.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]