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

Adding new version of modified workflow definition persists content of the previous one

    Details

    • Liferay Contributor's Agreement:
      Accept

      Description

      Steps to reproduce:

      1. deploy kaleo plugin
      2. go to control panel > workflow
      3. add workflow definition named "whatever"
      4. change the definition whatever (editing the file)
      5. add the modified workflow definition named Unable to render embedded object: File (the same) not found. "whatever"
      6. look into database table KaleoDefinition, column content

      RESULT : both versions of workflow definition have the same content, the original one

      CAUSE:

      KaleoDefinitionLocalServiceImpl.java
      	public KaleoDefinition incrementKaleoDefinition(
      			String name, String title, ServiceContext serviceContext)
      		throws PortalException, SystemException {
      
      		KaleoDefinition kaleoDefinition = getLatestKaleoDefinition(
      			name, serviceContext);
      
      		return addKaleoDefinition(
      			kaleoDefinition.getName(), title, kaleoDefinition.getDescription(),
      			kaleoDefinition.getContent(), kaleoDefinition.getVersion() + 1,
      			kaleoDefinition.getScope(), serviceContext);
      	}
      

      It gets the content of the previous version of definition kaleoDefinition.getContent();

        Attachments

          Activity

            People

            Assignee:
            brian.chan Brian Chan
            Reporter:
            vychtrle Jakub Liska (Inactive)
            Participants of an Issue:
            Recent user:
            Esther Sanz
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Days since last comment:
              9 years, 46 weeks ago

                Packages

                Version Package
                --Sprint 12/11
                6.1.0 CE RC1