Activiti
  1. Activiti
  2. ACT-1475

Extend HistoricDetailQuery to pass variableName

    Details

    • Type: Improvement Improvement
    • Status: Closed Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 5.10
    • Fix Version/s: 5.11
    • Component/s: Engine
    • Labels:
    • Number of attachments :
      0

      Description

      For checking a specific HistoricDetail for value, currently foreach method is used for equality of the name. For example:

      List<HistoricDetail> hds= processEngine.getHistoryService().createHistoricDetailQuery().list();
      for (HistoricDetail hd : hds)
      {
      HistoricVariableUpdate hwu = (HistoricVariableUpdate) hd;

      if (hwu.getVariableName().equals(variableName))

      { //Do something }

      }

      I would like to use something like:
      List<HistoricDetail> hds= processEngine.getHistoryService().createHistoricDetailQuery().variableName("variableName").list();

      In this way it will be possible to see which activities has changed the value of a variable.
      Thanks.

        Activity

        Hide
        Frederik Heremans added a comment -

        As of 5.11, it's possible to use the "org.activiti.engine.history.HistoricVariableInstanceQuery" to get historic variables by name, not using HistoricDetails

        Show
        Frederik Heremans added a comment - As of 5.11, it's possible to use the "org.activiti.engine.history.HistoricVariableInstanceQuery" to get historic variables by name, not using HistoricDetails
        Hide
        Gökçen Güner added a comment -

        Thank you.

        Show
        Gökçen Güner added a comment - Thank you.

          People

          • Assignee:
            Frederik Heremans
            Reporter:
            Gökçen Güner
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: