Uploaded image for project: 'Red Hat Process Automation Manager'
  1. Red Hat Process Automation Manager
  2. RHPAM-188

Signal fails with "Could not find process instance with id" when the Audit mode is NONE

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Critical Critical
    • 7.0.0.GA
    • 6.x.x
    • jBPM Core, Kie-Server
    • None
    • DR1
    • Workaround Exists
      • Manually fill the ProcessInstanceLog table should solve the issue
    • Hide
      • Create a process that will wait for a signal
      • Set audit mode to NONE in kie-deployment-descriptor.xml
      • Deploy the kjar to Kie Server
      • Start the process and try to send a signal:
      curl -X POST -u 'kieserver:kieserver1!' --data '{}' -H 'Content-type: application/json' http://localhost:8180/kie-server/services/rest/server/containers/no-audit/processes/instances/signal/TEST?instanceId=3
      
      • It should fail saying that the process instance does not exist
      • You can check the process existance in ProcessInstanceInfo table because the endpoint to list all process instances won't work
      Show
      Create a process that will wait for a signal Set audit mode to NONE in kie-deployment-descriptor.xml Deploy the kjar to Kie Server Start the process and try to send a signal: curl -X POST -u 'kieserver:kieserver1!' --data '{}' -H 'Content-type: application/json' http://localhost:8180/kie-server/services/rest/server/containers/no-audit/processes/instances/signal/TEST?instanceId=3 It should fail saying that the process instance does not exist You can check the process existance in ProcessInstanceInfo table because the endpoint to list all process instances won't work
    • 2017 Week 43-44

      When we do not have audit information in ProcessInstanceLog table and wants to send a signal to an existing process instance we have the error "Could not find process instance with id "[some id]", but it exists in ProcessInstanceInfo.

      The reason is that parts of the services API uses dataService[1] to retrieve information about process instances and it queries the audit tables.

      Other endpoints also relies on dataService, like list the process instances.

      [1] https://github.com/kiegroup/jbpm/blob/master/jbpm-services/jbpm-kie-services/src/main/java/org/jbpm/kie/services/impl/ProcessServiceImpl.java#L188

              swiderski.maciej Maciej Swiderski (Inactive)
              rhn-support-wsiqueir William Siqueira
              Dominik Hanak Dominik Hanak
              Dominik Hanak Dominik Hanak
              Votes:
              1 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: