Skip to main content
saahilm4696
December 15, 2023
Solved

Multiple Active tasks on hit of "Back" from browser

  • December 15, 2023
  • 9 replies
  • 0 views

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.

Best answer by stefanhelzle0001

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
December 15, 2023

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

saahilm4696
December 15, 2023

Its an activity chained UIT

stefanhelzle0001
Brainy
December 15, 2023

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.