Controlling dupilcate tickets while running sub process.

130 views
Skip to first unread message

banerjee...@gmail.com

unread,
Jun 25, 2015, 2:23:17 AM6/25/15
to suppor...@runmyprocess.com
Hi Team,

For my application, i am using multiple sequential loop in the main process and passing it variable in sub process, now the issue is suppose there is 4 persons in a list who will approve the ticket,and it is one after the other.

So when the first approver approves the ticket, and it goes to the next level of approver, then a second instance of that ticket is being generated for that ticket,similarly third instance and also fourth instance is being generated for that single ticket in the report tab since there are four approvers,

I know that i can create an internal reference number for each ticket, and under it there will be multiple instances of the ticket generated by the sub process.

But this solution is not accepted according to our business rule.

So can you please tell me how to display, only the single instance of the ticket.

Please help...

Bidisha Das

unread,
Jun 25, 2015, 4:30:17 AM6/25/15
to suppor...@runmyprocess.com
Hi Somjit,
According to your design,what I could get is you have 4 sub-processes creating 4 instances.So,definitely you can't have 1 instance for all 4 sub-processes.

If you make changes in the process design like keeping 1 sub-process for all 4 approvers which will generate 1 instance for all the approvers or else use CAPI instead of sub-process which don't generate any instance, then you can have only 1 instance of the entire(main) process. Otherwise using 4 sub-processes,there is no way you can display a single instance.

Moreover,if you save your process report and attach it to a report widget on Web Interface,then it will only display the main process instance until you double-click on it which will lead you to the sub-process instances.



Thanks & Regards
Bidisha

Somjit Banerjee

unread,
Jun 25, 2015, 4:47:20 AM6/25/15
to suppor...@runmyprocess.com
Hi Bidisha,

I am using, one sub process for all the four approvers which are selected in the multiple selection list. When the ticket is approved by first, approver and then when it is routed to the next user, then a new instance for the next level of approver is created in the web interface report.

So basically every time when the approver approves or reject the ticket, and after that when it is routed to next level, then a new instance of the web interface report is created.

So please help me how to control it.

Regards,

--
Fujitsu - RunMyProcess
---
You received this message because you are subscribed to a topic in the Google Groups "Fujitsu RunMyProcess Developer Community" group.
To unsubscribe from this topic, visit https://groups.google.com/a/runmyprocess.com/d/topic/supportforum/yYiFjwXPXS0/unsubscribe.
To unsubscribe from this group and all its topics, send an email to supportforum...@runmyprocess.com.
To post to this group, send email to suppor...@runmyprocess.com.
Visit this group at http://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/CAMGV9zs%3DA%2BCrgycNUs%3D76M1w%2BNU4nYty1_F55dkNFSXRZdO-Zg%40mail.gmail.com.

Bidisha Das

unread,
Jun 25, 2015, 6:22:03 AM6/25/15
to suppor...@runmyprocess.com
Hi Somjit,
Would you please let me know if you have one or more than one manual activities in the sub-process for a particular loop(4 approvers)?



Thanks & Regards
Bidisha

Somjit Banerjee

unread,
Jun 25, 2015, 10:17:46 PM6/25/15
to suppor...@runmyprocess.com
Hi Bidisha,

For a particular loop of four approvers, i have only one manual activity. Is the way i am doing it is wrong?

Please help...

--
Fujitsu - RunMyProcess
---
You received this message because you are subscribed to a topic in the Google Groups "Fujitsu RunMyProcess Developer Community" group.
To unsubscribe from this topic, visit https://groups.google.com/a/runmyprocess.com/d/topic/supportforum/yYiFjwXPXS0/unsubscribe.
To unsubscribe from this group and all its topics, send an email to supportforum...@runmyprocess.com.
To post to this group, send email to suppor...@runmyprocess.com.
Visit this group at http://groups.google.com/a/runmyprocess.com/group/supportforum/.

Somjit Banerjee

unread,
Jun 26, 2015, 12:29:08 AM6/26/15
to suppor...@runmyprocess.com
Hi Bidisha,

I have also checked, this issue with some testings and found out that, when the first iteration ends and it goes to the next iteration,for the second approver in the list, at that time the second instance in the web interface report has been created. Same goes for the third and fourth level of the approver.

So please help....

Bidisha Das

unread,
Jun 26, 2015, 3:01:56 AM6/26/15
to suppor...@runmyprocess.com
Hi Somjit,
This is related to platform.I don't think there is any way to stop it whether you take 1 manual activity or more than that.It will always generate 4 instances in WI report for each iteration(Approver).


Thanks & Regards
Bidisha

Somjit Banerjee

unread,
Jun 26, 2015, 3:07:34 AM6/26/15
to suppor...@runmyprocess.com
Hi Bidisha,

Can you please tell me is there any other alternative solution to this is available or not?

Regards


--
Fujitsu - RunMyProcess
---
You received this message because you are subscribed to a topic in the Google Groups "Fujitsu RunMyProcess Developer Community" group.
To unsubscribe from this topic, visit https://groups.google.com/a/runmyprocess.com/d/topic/supportforum/yYiFjwXPXS0/unsubscribe.
To unsubscribe from this group and all its topics, send an email to supportforum...@runmyprocess.com.
To post to this group, send email to suppor...@runmyprocess.com.
Visit this group at http://groups.google.com/a/runmyprocess.com/group/supportforum/.

Bidisha Das

unread,
Jun 26, 2015, 3:27:03 AM6/26/15
to suppor...@runmyprocess.com
Hi Somjit,
Would you let me know why you want it this way and what exactly is your requirement so that I can help you in alternate way. Since instances are generated by platform,so you can't stop it.


Thanks & Regards
Bidisha

Somjit Banerjee

unread,
Jun 26, 2015, 3:40:06 AM6/26/15
to suppor...@runmyprocess.com
Hi Bidisha,

The following are the conditions for my application.

1) There is an approver multiple selection list in my web interface, this list is fetched from the collection, on entering certain required fields, like proposed amount, guarantee type, channel group, and the branch code.

2) The requirement of doing this was the work-flow is based on one after the other. i.e when the ticket goes to first approver, and if he approves then only move to the next approver in the list, this is the reason why i was using sequential loop.

3) another scenario is approver can route the ticket to the user for asking more info, once he does this the ticket will go the logger who logs the ticket, after the logger responds it will come back to the approver for further routing of the next level.

due to this scenario, i cannot use multiple sequential loop with the main process only, if i do so , until and unless all the 4-5 approvers responds, the ticket will not move. so if any approver ask the logger for more info, he will not be notified. because other approvers have not perform their action.

So these are all the main scenarios to use the multiple sequential loop and passing the variable into sub process.

So please tell me if i am doing any mistake?

Regards,




--
Fujitsu - RunMyProcess
---
You received this message because you are subscribed to a topic in the Google Groups "Fujitsu RunMyProcess Developer Community" group.
To unsubscribe from this topic, visit https://groups.google.com/a/runmyprocess.com/d/topic/supportforum/yYiFjwXPXS0/unsubscribe.
To unsubscribe from this group and all its topics, send an email to supportforum...@runmyprocess.com.
To post to this group, send email to suppor...@runmyprocess.com.
Visit this group at http://groups.google.com/a/runmyprocess.com/group/supportforum/.

Bidisha Das

unread,
Jun 26, 2015, 4:13:48 AM6/26/15
to suppor...@runmyprocess.com
Hi Somjit,
Your Design is correct.You don't need to do any modifications because anyways you can't stop instance getting generated as it is from platform side.


Thanks & Regards
Bidisha

Somjit Banerjee

unread,
Jun 26, 2015, 4:19:07 AM6/26/15
to suppor...@runmyprocess.com
Hi Bidisha,

Thanks for your response.

Regards,

Somjit

--
Fujitsu - RunMyProcess
---
You received this message because you are subscribed to a topic in the Google Groups "Fujitsu RunMyProcess Developer Community" group.
To unsubscribe from this topic, visit https://groups.google.com/a/runmyprocess.com/d/topic/supportforum/yYiFjwXPXS0/unsubscribe.
To unsubscribe from this group and all its topics, send an email to supportforum...@runmyprocess.com.
To post to this group, send email to suppor...@runmyprocess.com.
Visit this group at http://groups.google.com/a/runmyprocess.com/group/supportforum/.

Somjit Banerjee

unread,
Jun 26, 2015, 4:30:06 AM6/26/15
to suppor...@runmyprocess.com
Hi Bidisha,

There is one more issue, once the ticket is submitted, it is redirected to the report page, in the report section under the tab , the first ticket is not loading properly for the first time, until and unless the page is refreshed, now can you tell me why this is happening?

i have checked it thoroughly but nothing found.... is something else do i need to implement?

Bidisha Das

unread,
Jun 26, 2015, 5:45:57 AM6/26/15
to suppor...@runmyprocess.com
Hi Somjit,
You can use the below js in the report page which will automatically refresh your report every 5 secs:

function myFunction() {
    setInterval(function(){ id_report.refresh(); },5000);
}
myFunction();

You can change the time span(5000) if you want.


Or else,you can also use the below code which will refresh your page once on re-direct.

$(document).ready(function(){    
    if(document.URL.indexOf("#")==-1){
        url = document.URL+"#";
        location = "#";
        location.reload(true);
    }
});


Thanks & Regards
Bidisha

Somjit Banerjee

unread,
Jun 26, 2015, 6:30:31 AM6/26/15
to suppor...@runmyprocess.com
Hi Bidisha,

Thanks for your help, its working.


Regards,
Somjit

--
Fujitsu - RunMyProcess
---
You received this message because you are subscribed to a topic in the Google Groups "Fujitsu RunMyProcess Developer Community" group.
To unsubscribe from this topic, visit https://groups.google.com/a/runmyprocess.com/d/topic/supportforum/yYiFjwXPXS0/unsubscribe.
To unsubscribe from this group and all its topics, send an email to supportforum...@runmyprocess.com.
To post to this group, send email to suppor...@runmyprocess.com.
Visit this group at http://groups.google.com/a/runmyprocess.com/group/supportforum/.
Reply all
Reply to author
Forward
0 new messages