pefernan commented on code in PR #4105:
URL:
https://github.com/apache/incubator-kie-kogito-runtimes/pull/4105#discussion_r2453373109
##########
jbpm/jbpm-usertask/src/main/java/org/kie/kogito/usertask/impl/DefaultUserTaskInstance.java:
##########
@@ -262,6 +265,11 @@ public void initialize(Map<String, Object> data,
IdentityProvider identity) {
@Override
public void transition(String transitionId, Map<String, Object> data,
IdentityProvider identity) {
+ if
(UserTaskLifeCycleRegistry.get(String.valueOf(this.metadata.get("Lifecycle")))
instanceof WsHumanTaskLifeCycle wsHumanTaskLifeCycle
+ && this.userTaskLifeCycle instanceof DefaultUserTaskLifeCycle)
{
+ LOG.debug("Usertask Lifecycle with which the task started is not
compatible with the current one. Switching lifecycles");
+ this.userTaskLifeCycle = wsHumanTaskLifeCycle;
Review Comment:
@josedee lifecycle is set when connecting the UserTaskInstance, look at
UserTasksTemplate, that's the place where it should be set.
--
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]