How to take action or trigger a process based on Task state change

We are attempting to write task information to the database based on the changing state of a task: Opened, Assigned, Accepted, Completed. Is there a way to accomplish this?

OriginalPostID-237255

  Discussion posts and replies are publicly visible

Parents
  • In order to use the a!writeToDataStoreEntity(), the user would have to interact with any of the components(that has 'saveInto' attribute) on the interface. So the status won't be known really unless the user starts working on the form post accepting the Task. Also, we might not be able to track the events such as Reject, Return, Reassign etc with this approach. Next to it, we need to think about the component under which we want to use the a!writeToDataStoreEntity(). If we are creating a field for interaction especially intended for this functionality, that should be fine. Else we should place either under all the components in the form or under the saveInto of Submit button, and obviously, the earlier one may not be great. Also, there is a restriction that we can use only one smart service function inside a 'saveInto'.
Reply
  • In order to use the a!writeToDataStoreEntity(), the user would have to interact with any of the components(that has 'saveInto' attribute) on the interface. So the status won't be known really unless the user starts working on the form post accepting the Task. Also, we might not be able to track the events such as Reject, Return, Reassign etc with this approach. Next to it, we need to think about the component under which we want to use the a!writeToDataStoreEntity(). If we are creating a field for interaction especially intended for this functionality, that should be fine. Else we should place either under all the components in the form or under the saveInto of Submit button, and obviously, the earlier one may not be great. Also, there is a restriction that we can use only one smart service function inside a 'saveInto'.
Children
No Data