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

Allow search for process definitions without versionTag

      Use case:
      I write a migration plan for my process instances.
      We did not set a versionTag in the beginning, so I have several old instances running with null for the version tag.
      The new target definition comes with version tag 1.

      To build a migration plan, I need the sourceProcessDefinitionIds of all instances running on a versionTag equal to null.

      However, I can not query for those definitions, because a query parameter null is not allowed for versionTag.

      Suggestion:
      Since having a null version tag is common, allow querying for it with a new query method withoutVersionTag.

        This is the controller panel for Smart Panels app

            [CAM-10852] Allow search for process definitions without versionTag

            Jan Galinski created issue -

            Hi jan.galinski@holisticon.de,

            thanks for the request.

            This sounds like a reasonable addition to the ProcessDefinitionQuery.
            I will rephrase the feature a little bit and go for adding an option that allows to search for definitions without versionTag rather than removing the null-check.
            I hope that is fine with you.

            As usual, if you would like to speed up the integration of that feature we are always happy about code contributions via pull requests.

            Thanks again.

            Best,
            Tobias

            Tobias Metzke-Bernstein added a comment - Hi jan.galinski@holisticon.de , thanks for the request. This sounds like a reasonable addition to the ProcessDefinitionQuery . I will rephrase the feature a little bit and go for adding an option that allows to search for definitions without versionTag rather than removing the null-check. I hope that is fine with you. As usual, if you would like to speed up the integration of that feature we are always happy about code contributions via pull requests. Thanks again. Best, Tobias
            Tobias Metzke-Bernstein made changes -
            Summary Original: Remove null-check for versionTag in ProcessDefinitionQuery New: Allow search for process definitions without versionTag
            Tobias Metzke-Bernstein made changes -
            Description Original: Use case: I write a MigrationPlan for my processInstances. We did not set a versionTag in the beginning, so I have severeal old instances running with versionTag=null and the new target definition with versionTag="1".

            To build a migrationPlan, I need the sourceProcessDefinitionIds of all instances running on a versionTag=null.

            However, I can not query for those definitions, because a queryParameter "null" is reverted by the "ensureNotNull" parameter check.

            Suggestion: since having a null versionTag is common, allow querying for it.
            New: *Use case*:
            I write a MigrationPlan for my process instances.
            We did not set a {{versionTag}} in the beginning, so I have several old instances running with {{null}} for the version tag.
            The new target definition comes with versionTag = "1".

            To build a migration plan, I need the {{sourceProcessDefinitionIds}} of all instances running on a {{versionTag}} equal to null.

            However, I can not query for those definitions, because a query parameter {{null}} is not allowed for {{versionTag}}.

            *Suggestion*:
            Since having a {{null}} version tag is common, allow querying for it with a new query method {{withoutVersionTag}}.
            Tobias Metzke-Bernstein made changes -
            Description Original: *Use case*:
            I write a MigrationPlan for my process instances.
            We did not set a {{versionTag}} in the beginning, so I have several old instances running with {{null}} for the version tag.
            The new target definition comes with versionTag = "1".

            To build a migration plan, I need the {{sourceProcessDefinitionIds}} of all instances running on a {{versionTag}} equal to null.

            However, I can not query for those definitions, because a query parameter {{null}} is not allowed for {{versionTag}}.

            *Suggestion*:
            Since having a {{null}} version tag is common, allow querying for it with a new query method {{withoutVersionTag}}.
            New: *Use case*:
            I write a migration plan for my process instances.
            We did not set a {{versionTag}} in the beginning, so I have several old instances running with {{null}} for the version tag.
            The new target definition comes with versionTag = "1".

            To build a migration plan, I need the {{sourceProcessDefinitionIds}} of all instances running on a {{versionTag}} equal to null.

            However, I can not query for those definitions, because a query parameter {{null}} is not allowed for {{versionTag}}.

            *Suggestion*:
            Since having a {{null}} version tag is common, allow querying for it with a new query method {{withoutVersionTag}}.
            Tobias Metzke-Bernstein made changes -
            Description Original: *Use case*:
            I write a migration plan for my process instances.
            We did not set a {{versionTag}} in the beginning, so I have several old instances running with {{null}} for the version tag.
            The new target definition comes with versionTag = "1".

            To build a migration plan, I need the {{sourceProcessDefinitionIds}} of all instances running on a {{versionTag}} equal to null.

            However, I can not query for those definitions, because a query parameter {{null}} is not allowed for {{versionTag}}.

            *Suggestion*:
            Since having a {{null}} version tag is common, allow querying for it with a new query method {{withoutVersionTag}}.
            New: *Use case*:
            I write a migration plan for my process instances.
            We did not set a {{versionTag}} in the beginning, so I have several old instances running with {{null}} for the version tag.
            The new target definition comes with version tag {{1}}.

            To build a migration plan, I need the {{sourceProcessDefinitionIds}} of all instances running on a {{versionTag}} equal to null.

            However, I can not query for those definitions, because a query parameter {{null}} is not allowed for {{versionTag}}.

            *Suggestion*:
            Since having a {{null}} version tag is common, allow querying for it with a new query method {{withoutVersionTag}}.
            Tobias Metzke-Bernstein made changes -
            Description Original: *Use case*:
            I write a migration plan for my process instances.
            We did not set a {{versionTag}} in the beginning, so I have several old instances running with {{null}} for the version tag.
            The new target definition comes with version tag {{1}}.

            To build a migration plan, I need the {{sourceProcessDefinitionIds}} of all instances running on a {{versionTag}} equal to null.

            However, I can not query for those definitions, because a query parameter {{null}} is not allowed for {{versionTag}}.

            *Suggestion*:
            Since having a {{null}} version tag is common, allow querying for it with a new query method {{withoutVersionTag}}.
            New: *Use case*:
            I write a migration plan for my process instances.
            We did not set a {{versionTag}} in the beginning, so I have several old instances running with {{null}} for the version tag.
            The new target definition comes with version tag {{1}}.

            To build a migration plan, I need the {{sourceProcessDefinitionIds}} of all instances running on a {{versionTag}} equal to {{null}}.

            However, I can not query for those definitions, because a query parameter {{null}} is not allowed for {{versionTag}}.

            *Suggestion*:
            Since having a {{null}} version tag is common, allow querying for it with a new query method {{withoutVersionTag}}.
            Tobias Metzke-Bernstein made changes -
            Status Original: Open [ 1 ] New: Ready [ 10005 ]
            Tobias Metzke-Bernstein made changes -
            Assignee New: Thorben Lindhauer [ thorben.lindhauer ]
            Tobias Metzke-Bernstein made changes -
            Link New: This issue is related to CAMTEAM-44 [ CAMTEAM-44 ]

              Unassigned Unassigned
              jan.galinski@holisticon.de Jan Galinski
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: