Adding new variable

187 views
Skip to first unread message

sarita...@flowian.com

unread,
Oct 10, 2016, 1:29:21 AM10/10/16
to Fujitsu RunMyProcess Developer Community
Hello Team,

Can I add a variable into currently running process from outside(e.g CAPI or WI) .Is it possible ?


Thanks in advance.

Regards,
Sarita Gawade.

Pankaj Kumar

unread,
Oct 10, 2016, 3:06:35 AM10/10/16
to Fujitsu RunMyProcess Developer Community
Hi Sarita,

In Running Process Instance to update the process instance variable, recommended approach is you update the process instance by RunMyProcess IDE as it is safe and easy.

However you can update the process instance by making custom connectors or Composite API (CAPI). No Direct connector is available in RunMyProcess. You need to create two connectors, one for to get the details of the process instance and another a PUT request where you make an update (PUT) request sending the data in base64 encoded.

Thank you,
Pankaj Kumar
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/cb844922-3859-48fb-b708-077e5fd636db%40runmyprocess.com.
For more options, visit https://groups.google.com/a/runmyprocess.com/d/optout.

sarita...@flowian.com

unread,
Oct 10, 2016, 3:20:56 AM10/10/16
to Fujitsu RunMyProcess Developer Community, sarita...@flowian.com
Hello Pankaj,

Could you please share the Url to add/update a variable into the current running process instance. also let me know the parameters that we need to pass to that Url.

Thanks .

Regards,
Sarita

Pankaj Kumar

unread,
Oct 10, 2016, 5:03:49 AM10/10/16
to suppor...@runmyprocess.com
Hi Sarita,

Please find connectors details as below:-

Connector:- Get details of a process instance
Request:- GET


Connector:- Modify process request instance
Request:- PUT
Content:-
<title/> 
<rights>(c) RunMyProcess</rights> 
<category term="status" label="${state}"/> 
<entry><title>Comment</title><category term="comments"/><content type="text/base64">${comment}</content></entry>
<entry><title>Computed parameters</title><category term="computed"/><content type="text/base64">${computed}</content></entry> 
<entry><title>Execution path</title><category term="path"/><content type="application/json">${execution_path}</content></entry>
</feed>

Parameters details:-

comment : comment to be added to relaunch method in base64 (function encrypt)
computed : all computed parameter in base64 (function encrypt) - ${P_result.feed.entry[1].content.P_value} on Get process request instance
execution_path : not encoded - ${P_result.feed.entry[3].content.P_value} on Get process request instance
state : 102 (keep as current) - 103 (waiting for resume)

Note:- Please add a custom header "RMPData-Version" with value "v1_0" in "Advanced Parameter" tab.

Thank you,
Pankaj Kumar
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/.
Reply all
Reply to author
Forward
0 new messages