PrakashN
Joined: Jun 30, 2015
Messages: 105
Offline
|
Kata,
Thanks for posting this question in this forum here. I pulled your workflow from the question, deployed and executed. I got this after the JSON Stringify task:
2017-01-25 10:13:20,828 [WebContainer : 4] EngagementDesigner FINE - EngagementDesigner-3.2.2.0.715119 - starting data mapper: [associations] [ContextStore:uuid907e7f36_c4ee_8a97_e1d2_1485190677806:ContextStoreJSON:uuid97868095_5462_3335_96bd_1485344707942:[.:CSJSON:{"range":[0,57],"type":"CallExpression","callee":{"range":[0,14],"type":"MemberExpression","computed":false,"object":{"range":[0,4],"type":"Identifier","name":"JSON"},"property":{"range":[5,14],"type":"Identifier","name":"stringify"}},"arguments":[{"range":[15,56],"type":"Identifier","name":"uuid907e7f36_c4ee_8a97_e1d2_1485190677806"}]}]][lvars][out.put:{"outputString":"tmp","outputInt":1}, uuid97868095_5462_3335_96bd_1485344707942:{}, uuid12345678901234567890:{"wfdVersion":"1","instanceId":"301","securityIP":"10.129.177.184","wfdName":"test11"}, uuid907e7f36_c4ee_8a97_e1d2_1485190677806:{"csDataInput":{"contextId":"temptestContextId","data":{"ServiceMap":{"1":{"priority":"5","attributes":{"Service":[null],"Channel":[null],"Location":[null],"Language":[null]}}}}}}, uuidProperties1234567890:{}][rvars][uuid97868095_5462_3335_96bd_1485344707942:{}, uuid12345678901234567890:{"wfdVersion":"1","instanceId":"301","securityIP":"10.129.177.184","wfdName":"test11"}, uuid907e7f36_c4ee_8a97_e1d2_1485190677806:{"csDataInput":{"contextId":"temptestContextId","data":{"ServiceMap":{"1":{"priority":"5","attributes":{"Service":[null],"Channel":[null],"Location":[null],"Language":[null]}}}}}}, uuidProperties1234567890:{}]
As you can see above, the ServiceMap gets an array. It is getting a null because I dont have a value for your property there, but, it is an array containing a single null. So may be there is something wrong on your side... We can troubleshoot in a live session if you like.
Thanks!
|
KatalinOrbán
Joined: Jan 13, 2017
Messages: 25
Offline
|
Thank you Prakash!
I really appreciate your help on this!
I have just tried it with empty values like you and I got this:
"ServiceMap":{
"1":{
"resourceCount":0,
"rank":0,
"maxProficiency":0,
"priority":"5",
"attributes":{
"Service":"",
"Channel":"",
"Location":"",
"Language":""
},
"minProficiency":0
}
- still no arrays in the json.
I would be really happy if we could schedule a live session!
Which time is the most suitable for you?
I am in Budapest, Hungary, UTC+1.
Thank you in advance!
K.
|