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

Add a new method 'processDefinitionIdLike' to TaskQuery

XMLWordPrintable

    • Icon: Feature Request Feature Request
    • Resolution: Duplicate
    • Icon: Minor Minor
    • None
    • jBPM 4.3
    • Runtime Engine
    • None

      Hi,

      it's not possible to create a task query to find all tasks of all versions of a specific process because TaskQuery append a where clause with a = operator and not a like operator

      if (processDefinitionId!=null) {
      appendWhereClause("task.processInstance.processDefinitionId = '"processDefinitionId"' ", hql);
      }

      May be, it's a good idea to add a new method like 'processDefinitionIdLike' to TaskQuery object in order to append a where clause like that :
      if (processDefinitionIdLike!=null) {
      appendWhereClause("task.processInstance.processDefinitionId like '"processDefinitionIdLike"' ", hql);
      }

      Thanks in advance

            swiderski.maciej Maciej Swiderski (Inactive)
            smalbequi Stephane Malbequi (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: