Details

      Description

      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>
      

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Days since last comment:
                  50 weeks, 1 day ago

                  Packages

                  Version Package
                  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
                  Master