holunda-io / camunda-bpm-taskpool

Library for pooling user tasks and process related business objects.
https://www.holunda.io/camunda-bpm-taskpool/
Apache License 2.0
66 stars 26 forks source link

Serialization of List Variables #988

Closed MichaelVonB closed 1 month ago

MichaelVonB commented 1 month ago

Scenario

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