Uploaded image for project: 'JBoss BPMS Platform'
  1. JBoss BPMS Platform
  2. RHBPMS-5043

[GSS](6.4.z) Signal fails with "Could not find process instance with id" when the Audit mode is NONE

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Critical
    • None
    • 6.4.6
    • jBPM Core, Kie-Server
    • None
    • 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

    Description

      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

      Attachments

        Issue Links

          Activity

            People

              swiderski.maciej Maciej Swiderski (Inactive)
              rhn-support-agiertli Anton Giertli
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: