How to obtain the process instance ID

197 views
Skip to first unread message

lto...@gmail.com

unread,
Sep 27, 2018, 12:14:11 PM9/27/18
to Fujitsu RunMyProcess Developer Community
Hello

Could you please inform how can I obtain a process instance id?

I need to trigger a CAPI that calls a connector (reassign a task). One of the parameter is the instance ID.

I tried to obtain it using ${P_document.id} but it generated an error on my task: Expression P_document is undefined on line 21, column 78 in Execute Task.

I also tried to obtain it using ${entityId} as specified in the documentation but the error I received was the same.

Could you help?

Regards,
Luiz

Gunjan Rajgure

unread,
Sep 27, 2018, 12:40:17 PM9/27/18
to Fujitsu RunMyProcess Developer Community
Hi There,

Have you tried ${P_request}. You can get unique identifier of the current process request. Please try it, and if you have any difficulty let us know.

Do feel free to contact us for any other query you have.


Thanks & Regards
Gunjan Rajgure
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...@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/a69fcbf1-9f3e-4ba3-a533-32bbb34c49b6%40runmyprocess.com.
For more options, visit https://groups.google.com/a/runmyprocess.com/d/optout.


--
Thanks & Regards
Gunjan Rajgure
Fujitsu - RunMyProcess Support

lto...@gmail.com

unread,
Sep 27, 2018, 12:50:11 PM9/27/18
to Fujitsu RunMyProcess Developer Community, lto...@gmail.com
Hello Gunjan
Yes. I can retrieve the request ID using ${P_request}
However to use the connector that Reassign a task, I need both ${P_request} and also the INSTANCE ID. Both are required

live/${customer_id}/request/${request_id}/todo/${instance_id}?P_mode=${P_mode}

Regards
Luiz

Gunjan Rajgure

unread,
Sep 27, 2018, 1:13:47 PM9/27/18
to Fujitsu RunMyProcess Developer Community, lto...@gmail.com
Hello,

The instance id you needed can be retrieved from a Web Interface report. Instance id is the same as the Request id apart from when :
 - The process manages parallel tasks or
 - The process manages multiple Web interfaces.

Please try this and let us know.


Best Regards,
Gunjan Rajgure
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...@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/.

lto...@gmail.com

unread,
Sep 27, 2018, 2:00:41 PM9/27/18
to Fujitsu RunMyProcess Developer Community, lto...@gmail.com
Sorry, I don't think I understood your suggestion clearly. Could you please, give me more details?

I have several processes running in parallel, generated by a loop in an Array of tasks
I know that one of the columns from a web report is the instance id but our users must be able to reassign a task using a custom web interface. It contains a list of tasks and a button (Reassign). Users will select a task, a new responsible e-mail and then press the button. It will trigger a CAPI passing the required values (assignee, P_request, Instance ID, etc.)

It looks like that ${P_document.id) parameter is not available at the same time the process is created. Just for testing, I tried to add it as an input variable in the manual task and it didn't work. But when I add it as an output variable the value could be retrieved

It does not solve the issue because I need the instance ID even when the task was never executed.

lto...@gmail.com

unread,
Sep 27, 2018, 2:36:05 PM9/27/18
to Fujitsu RunMyProcess Developer Community, lto...@gmail.com
I am attaching some screenshots
input_variables.jpg
error.jpg

lto...@gmail.com

unread,
Oct 8, 2018, 1:29:23 PM10/8/18
to Fujitsu RunMyProcess Developer Community, lto...@gmail.com
Hello

This topic can be marked as closed O was able to obtain the ID by using the connector "Get Details of a Process Instance"

Regards,
Luiz

Reply all
Reply to author
Forward
0 new messages