<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
<channel>
<title>IBM BPM Tips Q&amp;A - Recent questions tagged variables</title>
<link>https://ibm.bpm.tips/tag/variables</link>
<description>Powered by Dosvak LLC</description>
<item>
<title>How to update the process variables of an instance using javascript in IBM BPM?</title>
<link>https://ibm.bpm.tips/3160/how-to-update-the-process-variables-of-an-instance-using-javascript-in-ibm-bpm</link>
<description>Hi,&lt;br /&gt;
&lt;br /&gt;
I want to update an exposed process variable for an instance from a service during the process flow using javascript in IBM BPM.&lt;br /&gt;
&lt;br /&gt;
I fetched the details using &amp;quot;tw.system.currentProcessInstance.businessData.get(mykey)&amp;quot;&lt;br /&gt;
&lt;br /&gt;
I tried updating using the same system api - tw.system.currentProcessInstance.businessData.put(key,value).&lt;br /&gt;
&lt;br /&gt;
But this seems to be not working and it doesnt update the process variable.&lt;br /&gt;
&lt;br /&gt;
I am using IBM BAW v21. Is there any alternative for this ?&lt;br /&gt;
&lt;br /&gt;
Thanks</description>
<category>Javascript API</category>
<guid isPermaLink="true">https://ibm.bpm.tips/3160/how-to-update-the-process-variables-of-an-instance-using-javascript-in-ibm-bpm</guid>
<pubDate>Fri, 07 Jun 2024 07:07:43 +0000</pubDate>
</item>
</channel>
</rss>