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

Cannot approve pending workflow tasks after upgrade from 6.1 due to javascript dependency

Details

    Description

      The default workflow definition in 6.1 uses Javascript Scripting to set the "approved" status in the workflow

      	<state>
      		<name>approved</name>
      		<metadata>
      			<![CDATA[{"xy":[380,51]}]]>
      		</metadata>
      		<actions>
      			<action>
      				<name>approve</name>
      				<script>
      					<![CDATA[Packages.com.liferay.portal.kernel.workflow.WorkflowStatusManagerUtil.updateStatus(Packages.com.liferay.portal.kernel.workflow.WorkflowConstants.getLabelStatus("approved"), workflowContext);]]>
      				</script>
      				<script-language>javascript</script-language>
      				<execution-type>onEntry</execution-type>
      			</action>
      		</actions>
      	</state>
      

      See:

      <script-language>javascript</script-language>
      

      The javascript scripting module is not bundled with portal 7.0/7.1 releases, so after an upgrade from 6.1, the workflow approval process will fail. This will affect any future (post-upgrade) workflow publications until the Single Approver workflow definition is manually updated.

      Attached a database dump from 6.1 with a pending workflow task

      Expected Result:
      User can approve new and pending assets using the Single Approver workflow definition after upgrade to 7.1 from 6.1

      Actual Result:
      Single Approver definition from 6.1 cannot approve assets after upgrade.

      Reproduced on:
      7.1 CE Beta 3
      7.1 DXP Beta 3
      7.0 DXP SP7
      7.0 DXP FP49

      Not Reproducible on:
      Master with ant all (due to portal-scripting-javascript being deployed)

      See LPP-23348, LPS-69450, LPS-68907, LPS-66598 for more context.

      Attachments

        Issue Links

          Activity

            People

              victor.ware Victor Ware
              victor.ware Victor Ware
              Kiyoshi Lee Kiyoshi Lee
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                4 years, 12 weeks, 4 days ago

                Packages

                  Version Package