diff --git a/CHANGELOG.md b/CHANGELOG.md index ae28b00f..1d04aaf9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -13,6 +13,7 @@ v1.4.5 [unreleased] ------------------- ### Bugfixes - [#62](https://github.com/latera/camunda-ext/pull/62) Fix OTRS entity path +- [#60](https://github.com/latera/camunda-ext/pull/60) Fix saving JSON when update HOMS order v1.4.4 [2020-04-17] ------------------- diff --git a/src/org/camunda/latera/bss/utils/Order.groovy b/src/org/camunda/latera/bss/utils/Order.groovy index aafa4006..9d203d43 100644 --- a/src/org/camunda/latera/bss/utils/Order.groovy +++ b/src/org/camunda/latera/bss/utils/Order.groovy @@ -13,7 +13,9 @@ import static org.camunda.latera.bss.utils.DateTimeUtil.iso import static org.camunda.latera.bss.utils.StringUtil.forceNvl as nvlString import static org.camunda.latera.bss.utils.ListUtil.forceNvl as nvlList import static org.camunda.latera.bss.utils.ListUtil.parse as parseList +import static org.camunda.latera.bss.utils.ListUtil.isList import static org.camunda.latera.bss.utils.MapUtil.parse as parseMap +import static org.camunda.latera.bss.utils.MapUtil.isMap import org.camunda.latera.bss.connectors.Minio class Order implements GroovyObject { @@ -215,7 +217,8 @@ class Order implements GroovyObject { value = value as String } catch (Exception e) {} } - if (name.endsWith('List') || name.endsWith('JSON') || name.endsWith('Map')) { + if ((name.endsWith('List') || name.endsWith('JSON') || name.endsWith('Map')) && + (isList(value) || isMap(value))) { try { // servicesMap: [a:1, b:'2'] -> servicesMap: '{a:1, b:'2'}' // serviceList: [1, 2, '3'] -> serviceList: "[1,2,'3']"