Skip to main content
October 19, 2024
Question

How do I fetch value after I accept a task?

  • October 19, 2024
  • 6 replies
  • 0 views

I am creating a vehicle rental application. I wanted to change the rental status of the application after the supervisor accepts the task

Here in this process model, how do I get the value after supervisor (supervisor change status node) accepts a task. I want to use write records to change the value of rental status to false. 

Could someone help me with this.

    6 replies

    stefanhelzle0001
    October 19, 2024

    I typically do such things using a bunch of a!save() calls in the saveInto parameter of the submit button. The other option is to add a script task before the "Write Records" node to adjust your values.

    October 19, 2024

    I added the script task before write records. I used a custom output and added this in the expression. 

    and gave this as target value. 

    This just overwrites a full at the top of record list rather than just updating the record I want it to. How can I fix this.

    mathieud0001
    October 19, 2024
    prasantap0900
    October 21, 2024

    As per [mention:a11f77a729fb4db2af76b09948583328:e9ed411860ed4f2ba0265705b8793d05] , you can use a!save() and configure your isActive as false and another way is script task.