Updating collection array data-set

423 views
Skip to first unread message

banerjee...@gmail.com

unread,
Nov 23, 2017, 6:06:17 AM11/23/17
to Fujitsu RunMyProcess Developer Community
Hi Team,

Hope you are doing good.I am facing a small issue for updating my collection data-set.

Below is what the collection looks like

"package_key":"1511430906266",
"references": [
{
"memberno": "08537987",
"other_state_province": "",
"city": "",
"reference_detail_desc_3": "",
"reference_detail_desc_1": "",
"name": "Colin",
"refernce_detail_desc_2": "",
"us_or_canadian_state_province": ""
}
]

Now i was trying to update it through free-marker from the process , like this

<#assign pattern>{"package_key":"1511430906266",refernces.memberno:"08537987"}</#assign>
<#assign my_field=[]>
<#assign my_field_one={}>
<#assign my_field_one= P_json_put(my_field_one, "refernces.memberno", "00011404", true)>
<#assign my_field=my_field+[my_field_one]>
${update_objects( pattern,{'$set':my_field},"col_test", "true")}

which throws me this error

Error while processing <#assign pattern>{"package_key":"1511430906266",refernces.memberno:"08537987"}</#assign>
<#assign my_field=[]>
<#assign my_field_one={}>
<#assign my_field_one= P_json_put(my_field_one, "refernces.memberno", "00011404", true)>
<#assign my_field=my_field+[my_field_one]>
${update_objects( pattern,{'set':my_field},"col_test", "true")}

No enum constant org.runmyprocess.json.JSON.JSONKeyword.MY


can you please me know what i am doing wrong and what i have to do?

Prachi Chandak

unread,
Nov 23, 2017, 8:49:25 PM11/23/17
to banerjee...@gmail.com, Fujitsu RunMyProcess Developer Community
Hi Somjit,

According to the code you have provided the idea about updating the object is not clear. Please let us know which field are you trying to update.
Also, please refer the link  to update collection.

Please elaborate if you still face any issue.

Thank you for contacting us.


Thanks & Regards,
Prachi Chandak
Fujitsu RunMyProcess Support


--
Fujitsu - RunMyProcess
---
You received this message because you are subscribed to the Google Groups "Fujitsu RunMyProcess Developer Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to supportforum+unsubscribe@runmyprocess.com.
To post to this group, send email to suppor...@runmyprocess.com.
Visit this group at https://groups.google.com/a/runmyprocess.com/group/supportforum/.
To view this discussion on the web visit https://groups.google.com/a/runmyprocess.com/d/msgid/supportforum/28be0910-cde7-4027-9799-cc3958b3221e%40runmyprocess.com.
For more options, visit https://groups.google.com/a/runmyprocess.com/d/optout.

Somjit Banerjee

unread,
Nov 23, 2017, 11:14:49 PM11/23/17
to Prachi Chandak, Fujitsu RunMyProcess Developer Community
Hi Prachi,

I forgot to give you guys the update , the issue was resolved yesterday only. You can close the case.

Regards,
Somjit
Reply all
Reply to author
Forward
0 new messages