Uploaded image for project: 'jBPM'
  1. jBPM
  2. JBPM-9492

[GSS-RFE] Send signals using alias without need to send the instance id

    XMLWordPrintable

Details

    • Feature Request
    • Resolution: Done
    • Major
    • 7.48.0.Final
    • None
    • KieServer
    • None
    • 2020 Week 49-51 (from Nov 30)

    Description

      If we want to use the alias, is needed to pass in one (or more) processInstanceIds. The logic to retrieve the container id is based on the content of the ProcessInstanceLog table, using the processInstanceId:
      https://github.com/kiegroup/droolsjbpm-integration/blob/master/kie-server-parent/kie-server-services/kie-server-services-jbpm/src/main/java/org/kie/server/services/jbpm/ProcessServiceBase.java#L212

      https://github.com/kiegroup/droolsjbpm-integration/blob/master/kie-server-parent/kie-server-services/kie-server-services-jbpm/src/main/java/org/kie/server/services/jbpm/locator/ByProcessInstanceIdContainerLocator.java#L51

      Customer In this particular scenario, are having the signal at container level. So when we trigger the signal, we will be providing only the container - not any processinstance ids. The problem is that, the API is not working with alias

      We can use one of these API calls:
      http://${HOST}:${PORT}/kie-server/services/rest/server/containers/${CONTAINER_ALIAS}/processes/instances/signal/${SIGNAL_NAME}?instanceId=${PROCIDS} // here PROCIDS can be a single id, or a comma separated list of ids

      http://${HOST}:${PORT}/kie-server/services/rest/server/containers/${CONTAINER_ALIAS}/processes/instances/${PROCID}/signal/${SIGNAL_NAME} // to signal a specific PROCID

      Its necessary to send the signal using container alias without send instances id

      Attachments

        Activity

          People

            ftirados Francisco Javier Tirado Sarti
            ftirados Francisco Javier Tirado Sarti
            Gonzalo Muñoz Fernández Gonzalo Muñoz Fernández
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: