How to complete a user input task automatically ?

Hello,

I wanted to know how a user input task can be completed automatically. This user interface has a message and submit button (value set through submit rule input). By default the submit button (rule input is set as False), trying to find a way to set this as True. I have tried below options/alternatives. Please review and help. Thank you.

1. Set a timer on user input task - this approach works fine but user gets a warning message in browser that task cannot be completed. This message appears when timeout happens. How to get rid off this message ?

2. Tried below code in user interface to set submit as true based on local variable that gets refreshed every minute. With this code local variable gets updated and local!timeout variable changes to TRUE but a!save doesn't work. 

a!localVariables(
      local!startTime:now(),
      local!value: a!refreshVariable(
            value: now(),
            refreshInterval: if(local!enableTimer, 1, null)
        ),
       local!timeOut: if(local!value <= local!startTime,
               false,
               true
       ),
       {
             a!buttonLayout(
                      primaryButtons:{
                                 a!buttonWidgetSubmit(
                                            label:"Click to Homepage",
                                           saveInto:a!save(
                                                      ri!submit,
                                                      local!timeOut
                                           ),
                                        
                                )
                      }
           )
    }
)

Thanks

  Discussion posts and replies are publicly visible

Parents
  • There isn't a way to have a task complete itself automatically. Having an exception timer will work because you can create a new flow from the exception. If the task can be completed automatically, then why have a task at all? Why not have logic in the process model to skip over the task?

  • Thanks for the reply. The screen that i mentioned is an application submission response screen with a back to home page button. I am looking for an option to skip this user interface screen if user has not clicked on the submit button for say 3 minutes. And this timeout shouldn't create a pop-up to the user indicating the task is completed/cancelled - meaning want to build the behavior as if like user has clicked on back to home button. 

Reply
  • Thanks for the reply. The screen that i mentioned is an application submission response screen with a back to home page button. I am looking for an option to skip this user interface screen if user has not clicked on the submit button for say 3 minutes. And this timeout shouldn't create a pop-up to the user indicating the task is completed/cancelled - meaning want to build the behavior as if like user has clicked on back to home button. 

Children