Appian Task

Hi Everyone,

I am handling the task assignment through database tables. But when two users will click simultaneouly on the link which will start the process model. How to ensure that only one user should be given the task.

  Discussion posts and replies are publicly visible

Parents
  • 0
    Certified Associate Developer

    Hi  ,

    I have a solution for this, please follow below steps :

    • User clicks the link

    • Start a process model

    • Checks if the task is already assigned :

      • If Yes → show user “Task already assigned” or end process.

      • If No -> Change the assigned_to to the process initiator .  
      • Check if the assignment succeeded.

      • Move forward and assign the task.

    Note : 

    • Make sure the assigned_to column is NULL by default.

    • Consider placing a unique constraint on task_id + assigned_to if you want stricter DB rules.

    Hope this helps you!!!

Reply
  • 0
    Certified Associate Developer

    Hi  ,

    I have a solution for this, please follow below steps :

    • User clicks the link

    • Start a process model

    • Checks if the task is already assigned :

      • If Yes → show user “Task already assigned” or end process.

      • If No -> Change the assigned_to to the process initiator .  
      • Check if the assignment succeeded.

      • Move forward and assign the task.

    Note : 

    • Make sure the assigned_to column is NULL by default.

    • Consider placing a unique constraint on task_id + assigned_to if you want stricter DB rules.

    Hope this helps you!!!

Children