elguardian commented on code in PR #3403:
URL:
https://github.com/apache/incubator-kie-kogito-runtimes/pull/3403#discussion_r1533704020
##########
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 {
Review Comment:
that will make the system less sustainable as new process intance would need
to implement it one way or another. adding it as capability will spread the
logic related to process instance set of operations across the system making
things worse Unfortunately this is an intrinsic part of process state handling
so implementations should support this. This is not about to have an extra
capability. This is required by the system in order to work properly (engine
level)
--
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]