Process Report - children processes

154 views
Skip to first unread message

rcpet...@gmail.com

unread,
Nov 25, 2016, 12:38:55 PM11/25/16
to Fujitsu RunMyProcess Developer Community
Hi guys,

I have a main process that starts N subprocesses.

What I'm trying to do is create a process report that queries directly all the subprocesses. But when I try to do this, the report doesn't show any results.

I tried removing the PARENT IS NULL condition from the URL, but RMP always puts it back.

How should I do this? Is it even possible?
Or the way is to loop through the parent instances and query each ones children

Best Regards,
Rodrigo

Murali

unread,
Nov 26, 2016, 2:21:37 AM11/26/16
to suppor...@runmyprocess.com, rcpet...@gmail.com
Hi Rodrigo,

When you create a Process Report, we assume that you have chosen the respective Process and it's Mode of execution correctly to look for the results.

Could you share the Report configurations and elaborate more on how you are trying below?

 "I tried removing the PARENT IS NULL condition from the URL, but RMP always puts it back."

And brief us the exact report requirements to make a suggestion.

Regards,
Murali
Fujitsu RunMyProcess Support

rcpet...@gmail.com

unread,
Nov 28, 2016, 11:32:39 AM11/28/16
to Fujitsu RunMyProcess Developer Community, rcpet...@gmail.com
Hi Murali, thanks for your reply.

Actually, my problem is not the report creation itself. I'm trying to get information from a report using a connector. Therefore, I use only the URL of the report in the connector and work with the returned xml (as described in http://docs.runmyprocess.com/Developer_Guide/Reporting/Process_Reporting_API)

But as I described above, my main process starts lots of subprocesses in parallel, and I would like to get in the report one entry per subprocess. But the results come grouped by parent process, with a link to query the children (please find the xml attached).

my doubt is about the query URL:
live/${P_customer}/request?first=0&nb=20&filter=PROJECT+MODE+PARENT+PROCESS+REQUEST_REQUESTOR&operator=EE+EE+IS+EE+EE&value=173919+${P_mode}+NULL+185492+600908&column=NAME+PUBLISHED+UPDATED

in the URL you can see the filters that are executed. One of them is the PARENT filter (filter=PARENT operator=IS value=NULL). I tried removing this filter, but it's not possible. Even though I delete it from the URL, it still executes the filter and bring only processes with parent=null.

For now, I solved the problem by putting 2 steps in my process, one to get the parent processes, and a multiple one to query the children of each of them (please find the process attached)

Hope it's clearer now.
If you have more doubts, please let me know.

Best Regards,
Rodrigo

process.png
report.xml

Pankaj Kumar

unread,
Nov 29, 2016, 4:18:26 AM11/29/16
to Fujitsu RunMyProcess Developer Community
Hi Rodrigo,

Currently getting the process instance data and all children process instance with a single query url (process report fed url) is not possible. Your implementation is correct since you are getting all sub-process instance in a loop by passing the parent instance id in another request and later combining this data.


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/4fb816e6-7239-4314-9d08-088ae21d8aa1%40runmyprocess.com.

rcpet...@gmail.com

unread,
Dec 2, 2016, 11:16:50 AM12/2/16
to Fujitsu RunMyProcess Developer Community
Hi Pankaj,

thanks for the reply. I have one more doubt: I created some measures in the child process, but I'm not being able to get their values in the report.

I added MEASURE_1 in the column list of the report URL, but I don't get the value in the returned xml.

Is this way correct? Is it even possible to do it?

Regards,
Rodrigo

On Tuesday, November 29, 2016 at 7:18:26 AM UTC-2, Pankaj Kumar wrote:
> Hi Rodrigo,
>
>
> Currently getting the process instance data and all children process instance with a single query url (process report fed url) is not possible. Your implementation is correct since you are getting all sub-process instance in a loop by passing the parent instance id in another request and later combining this data.
>
>
>
>
>
>
>
> Thank you,
> Pankaj Kumar
> Fujitsu RunMyProcess Support
>
>
> On Mon, Nov 28, 2016 at 10:02 PM, <rcpet...@gmail.com> wrote:
> Hi Murali, thanks for your reply.
>
>
>
> Actually, my problem is not the report creation itself. I'm trying to get information from a report using a connector. Therefore, I use only the URL of the report in the connector and work with the returned xml (as described in http://docs.runmyprocess.com/Developer_Guide/Reporting/Process_Reporting_API)
>
>
>
> But as I described above, my main process starts lots of subprocesses in parallel, and I would like to get in the report one entry per subprocess. But the results come grouped by parent process, with a link to query the children (please find the xml attached).
>
>
>
> my doubt is about the query URL:
>
> live/${P_customer}/request?first=0&nb=20&filter=PROJECT+MODE+PARENT+PROCESS+REQUEST_REQUESTOR&operator=EE+EE+IS+EE+EE&value=173919+${P_mode}+NULL+185492+600908&column=NAME+PUBLISHED+UPDATED
>
>
>
> in the URL you can see the filters that are executed. One of them is the PARENT filter (filter=PARENT operator=IS value=NULL). I tried removing this filter, but it's not possible. Even though I delete it from the URL, it still executes the filter and bring only processes with parent=null.
>
>
>
> For now, I solved the problem by putting 2 steps in my process, one to get the parent processes, and a multiple one to query the children of each of them (please find the process attached)
>
>
>
> Hope it's clearer now.
>
> If you have more doubts, please let me know.
>
>
>
> Best Regards,
>
> Rodrigo
>
>
>
> --
>
> 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.

Pankaj Kumar

unread,
Dec 4, 2016, 8:27:49 AM12/4/16
to Fujitsu RunMyProcess Developer Community
Hi,

Please construct the url to get the child process instances details as per below format:-

https://live.runmyprocess.com/live/${account_id}/request?first=0&nb=20&filter=MODE+PARENT&operator=EE+EE&value=TEST+${parent_instance_id}&column=ID+CUSTOMER+PROCESS+PARENT+STATUS+MODE+OWNER+NAME+PUBLISHED+UPDATED+KEYWORD+ORIGIN_CUST+DATA_ID+NAME+STATUS+EVENTS+PUBLISHED+UPDATED+MEASURE_1+OWNER

Please make sure, measure_1 is existed (measure is created and some value assigned to measure variable) in sub_process instance, if in sub_process instance, if measure is not existed, this value is ignored.



Thank you,
Pankaj Kumar
Fujitsu RunMyProcess Support

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/.
10619_1.png
Reply all
Reply to author
Forward
0 new messages