Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Serialization of List Variables #988

Closed
MichaelVonB opened this issue May 21, 2024 · 0 comments · Fixed by #990
Closed

Serialization of List Variables #988

MichaelVonB opened this issue May 21, 2024 · 0 comments · Fixed by #990
Assignees
Labels
Type: enhancement New feature or request
Milestone

Comments

@MichaelVonB
Copy link
Contributor

Scenario

  • camunda-bpm-taskpool version: 4.1.5
  • Camunda BPM version: any
  • Description of your use case:
    I have a List of Payload Attributes (enriched through the ProcessVariable enricher). In plf_task i can see that the variable is in the payload, however it is not serialized in plf_task_attributes.

Current Behaviour

internal fun MutableMap.MutableEntry<String, Any?>.toJsonPathWithValue(
  prefix: String = "",
  limit: Int = -1,
  filter: List<Pair<JsonPathFilterFunction, FilterType>>
): List<Pair<String, Any>> {
...
  return if (value != null && value.isPrimitiveType()) {
...
  } else if (value is Map<*, *>) {
...
  } else {
    // ignore complex objects
    listOf()
  }
}

Wanted Behaviour

define a Mapping for List with primitives

Possible Workarounds

None

@MichaelVonB MichaelVonB added the Type: enhancement New feature or request label May 21, 2024
@MichaelVonB MichaelVonB self-assigned this May 21, 2024
@MichaelVonB MichaelVonB added this to the 4.1.5 milestone May 21, 2024
S-Tim added a commit that referenced this issue May 22, 2024
@S-Tim S-Tim linked a pull request May 22, 2024 that will close this issue
@S-Tim S-Tim self-assigned this May 22, 2024
zambrovski pushed a commit that referenced this issue May 23, 2024
* [#988] adjust payload attribute mapping to handle lists

* fix(#988): adjust test for payload mapping

* [#988] updated documentation

* [#988] made list approach less restrictive

---------

Co-authored-by: Michael von Bargen <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants