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

RuntimeResource.process_defId NullPointerException

XMLWordPrintable

    • Hide

      running this rest comment on every example
      http://<host>:port>/<instance>/rest/runtime/<deploymentId>/process/<process-def-id>/
      for example
      http://localhost:8080/kie-wb/rest/runtime/org.test:TestPrj:1.0/process/TestPrj.example1/

      Show
      running this rest comment on every example http://<host>:port>/<instance>/rest/runtime/<deploymentId>/process/<process-def-id>/ for example http://localhost:8080/kie-wb/rest/runtime/org.test:TestPrj:1.0/process/TestPrj.example1/

      Running rest command to get process info
      it seems this function have a problem to get processAssetDescList

      is it correct to pass prosessid as deploymentid here?
      getProcessesByDeploymentIdProcessId(processId, processId)

      droolsjbpm-integration / kie-remote / kie-remote-services / src / main / java / org / kie / remote / services / rest / RuntimeResource.java

      @GET
          @Path("/process/{processDefId: [_a-zA-Z0-9-:\\.]+}/")
          public Response process_defId(@PathParam("processDefId") String processId) {
              ProcessAssetDesc processAssetDescList = runtimeDataService.getProcessesByDeploymentIdProcessId(processId, processId); 
              JaxbProcessDefinition jaxbProcDef = convertProcAssetDescToJaxbProcDef(processAssetDescList);
              Map<String, String> variables = bpmn2DataService.getProcessData(processId);
              jaxbProcDef.setVariables(variables);
              return createCorrectVariant(jaxbProcDef, headers);
          }
      

            marco.rietveld Marco Rietveld (Inactive)
            greenday_ra Reza Azizi (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: