Skip to main content
saahilm4696
Known Participant
Dec 15, 2023 7:49 AM UTC
Solved

Multiple Active tasks on hit of "Back" from browser

Hi all,

I have a scenario where a related action opens a pop-screen for users input. If user hits the back button the pop-up goes away but the instance is active in backend, and on hitting the related action again it creates a new instance. Is there any way by which the instance is cancelled on hit of back from browser.

stefanhelzle0001
Brainy
Dec 15, 2023 10:00 AM UTC

Before trying to solve the problem, I suggest to prevent it. Try that first!

One option is to follow the pattern described in my blog post: appian.rocks/.../

9 replies

stefanhelzle0001
Brainy
Dec 15, 2023 7:57 AM UTC

For this record action, do you use the process start form or an initial user input task in the process model?

saahilm4696
Known Participant
Dec 15, 2023 7:58 AM UTC

Its an activity chained UIT

stefanhelzle0001
Brainy
Dec 15, 2023 8:00 AM UTC

Do you have a specific reason for that design decision? A record action using this design will automatically start that process instance. If the use navigates away, you have to issue of orphaned process instances. Try to use a start form. That way the process is only started as the user submits the form.