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

    Details

    • Target Release:
    • Fix Build:
      DR1
    • Steps to Reproduce:
      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
    • Workaround:
      Workaround Exists
    • Workaround Description:
      • Manually fill the ProcessInstanceLog table should solve the issue
    • Sprint:
      2017 Week 43-44

      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

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  swiderski.maciej Maciej Swiderski
                  Reporter:
                  williamAntonio William Siqueira
                  Tester:
                  Dominik Hanak
                • Votes:
                  1 Vote for this issue
                  Watchers:
                  4 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: