Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-77404

When <execution-type> exists in <timer-action> tag, publish won't be successful

    Details

      Description

      1. Navigate to Control Panel/Configuration/Kaleo designer
      2. Add new definition
      3. Enter title
      4. create definition with start node, task node, end node
      5. select the task node and click on timers
      6. Enter name like "wait",Duration like "1",Scale like "Minute"
      7. Publish the definition.
      Or using the below xml:

      <?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>Definition66</name>
      	<description></description>
      	<version>1</version>
      	<state>
      		<name>StartNode</name>
      		<metadata>
      			<![CDATA[{"xy":[100,40]}]]>
      		</metadata>
      		<initial>true</initial>
      		<transitions>
      			<transition>
      				<name>connector7584</name>
      				<target>task5175</target>
      				<default>true</default>
      			</transition>
      		</transitions>
      	</state>
      	<state>
      		<name>EndNode</name>
      		<metadata>
      			<![CDATA[{"terminal":true,"xy":[92,315]}]]>
      		</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>task5175</name>
      		<metadata>
      			<![CDATA[{"xy":[241.20001220703125,145.1999969482422]}]]>
      		</metadata>
      		<assignments>
      			<user/>
      		</assignments>
      		<task-timers>
      			<task-timer>
      				<name>name</name>
      				<description></description>
      				<delay>
      					<duration>1</duration>
      					<scale>second</scale>
      				</delay>
      				<blocking>false</blocking>
      				<timer-actions>
      					<timer-action>
      						<name></name>
      						<description></description>
      						<script>
      							<![CDATA[]]>
      						</script>
      						<script-language>beanshell</script-language>
      						<execution-type>onAssignment</execution-type>
      					</timer-action>
      				</timer-actions>
      			</task-timer>
      		</task-timers>
      		<transitions>
      			<transition>
      				<name>connector9328</name>
      				<target>EndNode</target>
      				<default>true</default>
      			</transition>
      		</transitions>
      	</task>
      </workflow-definition>
      

      Actual Behavior: publish won't be successful.
      Expected Behavior: publish should be successful.

        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:
                  1 year, 29 weeks, 2 days ago

                  Packages

                  Version Package
                  7.0.0 DXP FP45
                  7.0.6 CE GA7
                  7.0.0 DXP SP8
                  7.0.X
                  7.1.0 M1
                  7.1.0 M2
                  Master