Uploaded image for project: 'PUBLIC - Liferay Documentation'
  1. PUBLIC - Liferay Documentation
  2. LRDOCS-4056

Delete Workflow Instance Links when Deleting Entity

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Fix Version/s: 7.0.x
    • Component/s: Forms
    • Labels:
      None

      Description

      As reported by a community member and confirmed by my research and discussions with the workflow team, the workflow documentation (a tutorial on the Workflow Framework and the MVC Learning Path) should include a call to

      workflowInstanceLinkLocalService.deleteWorkflowInstanceLinks
      

      in the deleteEntity method of the *LSI class, to avoid leaving orphaned DB entries in the workflowinstancelink table.

      Here's the call in BlogsEntrylocalServiceImpl:

      		workflowInstanceLinkLocalService.deleteWorkflowInstanceLinks(
      			entry.getCompanyId(), entry.getGroupId(),
      			BlogsEntry.class.getName(), entry.getEntryId());
      
      

        Attachments

          Activity

            People

            • Assignee:
              richard.sezov Rich Sezov
              Reporter:
              russell.bohl Russell Bohl
              Subject Matter Expert:
              InĂ¡cio Nery
              Participants of an Issue:
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Packages

                Version Package
                7.0.x