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

Unable to use scripted-assignment option for Notification recipients in Kaleo Designer

    Details

      Description

      Description
      Unable to use scripted-assignment option for Notification recipients in Kaleo Designer

      Steps to reproduce/Testing done

      1. Start Liferay and login as Admin
      2. Deploy Kaleo Web and Kaleo Designer
      3. Go to Admin > Control Panel > Configuration > Kaleo Designer> Add New Definition
      4. Drag a Task node to the workflow on the right
      5. Connect start node to the new task node.
      6. Connect the new task node to End node.
      7. Remove connection between Start and End node.
      8. Click on the Task node and then select the Notifications property
      9. Go to Edit Recipients
      10. Select Recipients as "Scripted Assignment" and select language as "Groovy"
      11. Try to save the workflow and it will give you the following error:
        16:14:18,435 WARN  [http-bio-8080-exec-7][ProxyMessageListener:81] com.liferay.portal.kernel.workflow.WorkflowException: com.liferay.portal.kernel.workflow.WorkflowException: Unable to parse definition
        com.liferay.portal.kernel.workflow.WorkflowException: com.liferay.portal.kernel.workflow.WorkflowException: Unable to parse definition
        	at com.liferay.portal.workflow.kaleo.runtime.DefaultWorkflowEngineImpl.validateWorkflowDefinition(DefaultWorkflowEngineImpl.java:516)
        	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        ...
        Caused by: com.liferay.portal.kernel.workflow.WorkflowException: Unable to parse definition
        	at com.liferay.portal.workflow.kaleo.parser.XMLWorkflowModelParser.parse(XMLWorkflowModelParser.java:69)
        	at com.liferay.portal.workflow.kaleo.runtime.DefaultWorkflowEngineImpl.validateWorkflowDefinition(DefaultWorkflowEngineImpl.java:509)
        	... 267 more
        Caused by: com.liferay.portal.kernel.xml.DocumentException: Error on line 55 of document  : cvc-complex-type.2.4.a: Invalid content was found starting with element 'scripted-assignment'. One of '{"urn:liferay.com:liferay-workflow_6.2.0":address, "urn:liferay.com:liferay-workflow_6.2.0":roles, "urn:liferay.com:liferay-workflow_6.2.0":user, "urn:liferay.com:liferay-workflow_6.2.0":assignees}' is expected. Nested exception: cvc-complex-type.2.4.a: Invalid content was found starting with element 'scripted-assignment'. One of '{"urn:liferay.com:liferay-workflow_6.2.0":address, "urn:liferay.com:liferay-workflow_6.2.0":roles, "urn:liferay.com:liferay-workflow_6.2.0":user, "urn:liferay.com:liferay-workflow_6.2.0":assignees}' is expected.
        	at com.liferay.portal.xml.SAXReaderImpl.read(SAXReaderImpl.java:396)
        	at com.liferay.portal.kernel.xml.SAXReaderUtil.read(SAXReaderUtil.java:163)
        	at com.liferay.portal.workflow.kaleo.parser.XMLWorkflowModelParser.doParse(XMLWorkflowModelParser.java:78)
        	at com.liferay.portal.workflow.kaleo.parser.XMLWorkflowModelParser.parse(XMLWorkflowModelParser.java:66)
        	... 268 more
        

      Full logs attached below

      Results of Testing
      Expected behavior: The scripted-assignment option in the Notification>Edit Recipient section would be accepted
      Actual behavior: The scripted-assignment option in the Notification>Edit Recipient section is not recognized as a valid tag.

      Errors/Logs
      Please see attached

      Reproduced...
      Reproduced in trunk? Unable to test. It appears as if Kaleo has been included in master as an OSGi module, but Kaleo Designer is nowhere to be seen in the master plugins repo and the 7.0 version will not deploy. (237ba5e186ecf824c62017ff807fe25fbc78638c, plugins: 7ef056ebb2fd89c040c0673893f65288b08e07a8, 7.0.x: fb616e454751527cdb55b1969bfea76230864458)
      Reproduced in 6.2.x? Yes ( 30c54cde4942b97b366db42c870c13922323dd11, 6.2.x plugins: 12f48ffc87f633e3f09190bd80dd9eb672f17735)

      liferay-workflow-definition_6_2_0.xsd is the same between 6.2.x and 7.0.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              harry.chai Harry Chai
              Reporter:
              samuel.ziemer Sam Ziemer
              Participants of an Issue:
              Recent user:
              Paula Lin (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Days since last comment:
                5 years, 41 weeks, 5 days ago

                  Packages

                  Version Package
                  6.2.X EE