Uploaded image for project: 'camunda BPM'
  1. camunda BPM
  2. CAM-5329

Decision History should not thrown an exception if the input/outputs where fetch but are empty

    XMLWordPrintable

    Details

    • Type: Bug Report
    • Status: Closed
    • Priority: L3 - Default
    • Resolution: Added to backlog
    • Affects Version/s: None
    • Fix Version/s: 7.5.0, 7.4.x, 7.5.0-alpha3
    • Component/s: engine
    • Labels:

      Description

      Scenario

      • A decision table is evaluated but it has not input or output values, (for example see attached DMN file)

      Problem

      • If you query for the historic decision instances including input and outputs like:
      List<HistoricDecisionInstance> decisions = BpmPlatform.getDefaultProcessEngine().getHistoryService().createHistoricDecisionInstanceQuery()
        .decisionDefinitionKey(decisionDefinitionKey)
        .includeOutputs()          
        .list();
      

      and then try to access the outputs or inputs there will be an exception

      for (HistoricDecisionInstance decision : decisions) {
        List<HistoricDecisionOutputInstance> outputs = decision.getOutputs();
        ...
      }
      
      Caused by: org.camunda.bpm.engine.ProcessEngineException: ENGINE-03061 The output instances for the historic decision instance are not fetched. You must call 'includeOutputs()' on the query to enable fetching.
      

      AT

      • if the input/outputs are fetch during the query but are empty an empty list will be returned by getInputs and getOutputs instead of an exception

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              sebastian.menski Sebastian Menski
              Reporter:
              sebastian.menski Sebastian Menski
              Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: