Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
3.1.2
-
None
Description
1) Open the basic "Single Approver" workflow in the editor (PFA) in Liferay Developer Studio
2) Change the name of task "update" to "update_2"
3) Go to workflow source and notice that the "target" attribute of transition "reject" is still set to "update" instead of "update_2"
4) Try to upload the updated definition to Liferay DXP(you'll get the exception) /Go to Control Panel - Configuration - Workflow Definition)
5) Click Save
The operation fails to complete and the following exception can be seen in the log:
08:54:01,359 WARN [http-nio-8080-exec-8][ProxyMessageListener:86] com.liferay.portal.workflow.kaleo.definition.exception.KaleoDefinitionValidationException$MustSetTargetNode: The reject transition must end at a node com.liferay.portal.workflow.kaleo.definition.exception.KaleoDefinitionValidationException$MustSetTargetNode: The reject transition must end at a node at com.liferay.portal.workflow.kaleo.definition.internal.parser.BaseNodeValidator.validateTransition(BaseNodeValidator.java:48) at com.liferay.portal.workflow.kaleo.definition.internal.parser.BaseNodeValidator.validateTransitions(BaseNodeValidator.java:56)