How to update the task display name when the task is already created and not completed

Certified Senior Developer

Hi All,

I have a scenario where Appian task is already created with the task display name, for example as 'Task abc with amount $100".

Now when the user opens the task form, the amount will be recalculated in local variables and and are updated in database using Store Procedure execution function in local variables .

So, every time when the form loads, the amount will get refreshed and updated in Database as well.

Now my issue is ,when the amount is refreshed, the task display name should also get refresh,

for example if the amount is refreshed from $100 to $200 , then task display name should be 'Task abc with amount $200".

Note: The amount in task will get refreshed at the time of form loads, without any user interaction inside the form.

Please help me to achieve this.

Thanks in Advance.

  Discussion posts and replies are publicly visible

Parents
  • 0
    Certified Lead Developer

    Task names are evaluated at assignment time and (AFAIK) not evaluated again at all.  The best I suspect you'll be able to do here (though other users might have some other tricks), is to give the user a "refresh" control (button, link, etc) that secretly submits the task and loops back to it again, creating a new instance with a refreshed evaluated name.  That would require 1 user click at a minimum, but as I said I don't expect you'll get a way that has zero clicks.

    Can you tell us a bit more about your use case for wanting the Task Display Name to change?  Generally speaking, the user won't really see it after they've opened the task, unless they abandon the task again without submitting.  That's possible, of course, but seems like a bit of a corner case.

  • 0
    Certified Senior Developer
    in reply to Mike Schmitt

    Hi Mike, thanks for your response.

    Here the task will be assigned to user like approval task ,so the approver can just open the task n-number of times and he can just view and close it.

    When he wish to approve/reject, he will do that, until then it will be in same approvers task list.

    Yes I agree with you Mike, showing some 'refresh' button or link will work. But without configuring this, if it automatically works without user interaction, then it suits the best with my requirement.

Reply
  • 0
    Certified Senior Developer
    in reply to Mike Schmitt

    Hi Mike, thanks for your response.

    Here the task will be assigned to user like approval task ,so the approver can just open the task n-number of times and he can just view and close it.

    When he wish to approve/reject, he will do that, until then it will be in same approvers task list.

    Yes I agree with you Mike, showing some 'refresh' button or link will work. But without configuring this, if it automatically works without user interaction, then it suits the best with my requirement.

Children
No Data