-
Type:
Bug
-
Status: Closed
-
Resolution: Fixed
-
Affects Version/s: 7.0.0 DXP FP58, 7.0.X, 7.1.X, Master
-
Fix Version/s: 7.0.0 DXP FP61, 7.0.X, 7.1.1 CE GA2, 7.1.10 DXP FP4, 7.1.10.1 SP1, 7.1.X, 7.2.X, Master
-
Component/s: Business Productivity > Kaleo Designer, Workflow
-
Branch Version/s:7.2.x, 7.1.x, 7.0.x
-
Backported to Branch:Committed
-
Story Points:0.25
-
Fix Priority:4
-
Git Pull Request:
-
QA Test Score:5
Here we try to submit the following basic workflow to portal master.
A start node pointing to a task node pointing to an end node.
the task node has a simple timer.
After submiting, console displays:
Caused by: com.liferay.portal.kernel.xml.DocumentException: Error on line 54 of document : cvc-complex-type.2.4.d: Invalid content was found starting with element 'task-timers'. No child element is expected at this point. Nested exception: cvc-complex-type.2.4.d: Invalid content was found starting with element 'task-timers'. No child element is expected at this point. at com.liferay.portal.xml.SAXReaderImpl.read(SAXReaderImpl.java:373) at com.liferay.portal.kernel.xml.SAXReaderUtil.read(SAXReaderUtil.java:151) at com.liferay.portal.workflow.kaleo.definition.internal.parser.XMLWorkflowModelParser.parse(XMLWorkflowModelParser.java:80) ... 192 more Caused by: org.dom4j.DocumentException: Error on line 54 of document : cvc-complex-type.2.4.d: Invalid content was found starting with element 'task-timers'. No child element is expected at this point. Nested exception: cvc-complex-type.2.4.d: Invalid content was found starting with element 'task-timers'. No child element is expected at this point. at org.dom4j.io.SAXReader.read(SAXReader.java:482) at org.dom4j.io.SAXReader.read(SAXReader.java:343) at com.liferay.portal.xml.SAXReaderImpl.read(SAXReaderImpl.java:370) ... 194 more
<?xml version="1.0"?> <workflow-definition xmlns="urn:liferay.com:liferay-workflow_7.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="urn:liferay.com:liferay-workflow_7.0.0 http://www.liferay.com/dtd/liferay-workflow-definition_7_0_0.xsd"> <name>Definition58</name> <description></description> <version>1</version> <state> <name>StartNode</name> <metadata> <![CDATA[{"xy":[100,40]}]]> </metadata> <initial>true</initial> <transitions> <transition> <name>connector6403</name> <target>task4963</target> <default>true</default> </transition> </transitions> </state> <state> <name>EndNode</name> <metadata> <![CDATA[{"terminal":true,"xy":[100,500]}]]> </metadata> <actions> <action> <name>Approve</name> <description>Approve</description> <script> <![CDATA[com.liferay.portal.kernel.workflow.WorkflowStatusManagerUtil.updateStatus(com.liferay.portal.kernel.workflow.WorkflowConstants.getLabelStatus("approved"), workflowContext);]]> </script> <script-language>groovy</script-language> <execution-type>onEntry</execution-type> </action> </actions> </state> <task> <name>task4963</name> <metadata> <![CDATA[{"xy":[89,259]}]]> </metadata> <assignments> <user/> </assignments> <transitions> <transition> <name>connector7316</name> <target>EndNode</target> <default>true</default> </transition> </transitions> <task-timers> <task-timer> <name>t1</name> <description>dt1</description> <delay> <duration>6</duration> <scale>second</scale> </delay> <blocking>false</blocking> <timer-actions> <timer-action> <name>a1</name> <description>da1</description> <script> <![CDATA[]]> </script> <script-language>beanshell</script-language> </timer-action> </timer-actions> </task-timer> </task-timers> </task> </workflow-definition>
- Discovered while testing
-
LPS-77404 When <execution-type> exists in <timer-action> tag, publish won't be successful
- Closed
- is caused by
-
LPS-74908 Kaleo Designer adds a <recipients> element to XML document when changing to "View" mode
- Closed
- is duplicated by
-
LPS-79526 Cannot publish a saved workflow definition with the <task-timer> element in Kaleo Designer
- Closed
- relates
-
LPS-79269 Task Timer workflow definition fails to publish
- Closed