Uploaded image for project: 'OpenIDM'
  1. OpenIDM
  2. OPENIDM-10600

Internal error "no deployed process definition found" after deleting process definition

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: OpenIDM 5.0.0, OpenIDM 5.5.0, OpenIDM 6.0.0
    • Fix Version/s: 6.5.0
    • Component/s: Module - Workflow
    • Target Version/s:
    • Verified Version/s:
    • Story Points:
      2
    • Sprint:
      OpenIDM Sprint 6.5-8
    • Support Ticket IDs:

      Description

      Using the sample provisioning-with-workflow (but any process will do). Run the example, until process is completed. Then delete the process definition. Under Manage processes in the admin UI, go to the "completed" tab. Exception :

      Caused by: org.activiti.engine.ActivitiObjectNotFoundException: no deployed process definition found with id 'contractorOnboarding:1:5'
      at org.activiti.engine.impl.persistence.deploy.DeploymentManager.findDeployedProcessDefinitionById(DeploymentManager.java:63)
      at org.activiti.engine.impl.cmd.GetDeploymentProcessDefinitionCmd.execute(GetDeploymentProcessDefinitionCmd.java:37)
      at org.activiti.engine.impl.cmd.GetDeploymentProcessDefinitionCmd.execute(GetDeploymentProcessDefinitionCmd.java:27)
      at org.activiti.engine.impl.interceptor.CommandInvoker.execute(CommandInvoker.java:24)
      at org.activiti.engine.impl.interceptor.CommandContextInterceptor.execute(CommandContextInterceptor.java:57)
      at org.activiti.engine.impl.interceptor.LogInterceptor.execute(LogInterceptor.java:31)
      at org.activiti.engine.impl.interceptor.RetryInterceptor.execute(RetryInterceptor.java:49)
      at org.activiti.engine.impl.cfg.CommandExecutorImpl.execute(CommandExecutorImpl.java:40)
      at org.activiti.engine.impl.cfg.CommandExecutorImpl.execute(CommandExecutorImpl.java:35)
      at org.activiti.engine.impl.RepositoryServiceImpl.getProcessDefinition(RepositoryServiceImpl.java:130)
      at org.forgerock.openidm.workflow.activiti.impl.ProcessInstanceResource.getProcessDefName(ProcessInstanceResource.java:416)
      at org.forgerock.openidm.workflow.activiti.impl.ProcessInstanceResource.queryCollection(ProcessInstanceResource.java:222)
      ... 109 more
       
       

      Cause is trying to fetch the process definition referenced in the completed definition, without checking its existence.

      Workarounds : truncate the activiti table (inconvenient), as using the REST interface is rather impossible, since the completed processes to delete cannot even be listed.

       

       

        Attachments

          Activity

            People

            • Assignee:
              cgdrake Chris Drake
              Reporter:
              patrickdiligent patrick diligent
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: