When someone in the group accepts a task, I want a rule event to be triggered which will be used to update the status in db for that particular request.
I tried using 'getprocesshistoryinfo' to identify if the status has changed based on "actionTypeName" to trigger the rule event(expression) but the process failed with error - Paused by Exception.
I tried the same with 'gettaskacceptedtimestamp'. Even the same issue(Paused by Exception) is observed here.
Is there a way to achieve this?
Discussion posts and replies are publicly visible
Instead of using rule event ,
1) why not store "gettaskacceptedtimestamp" in localVariable and then store while submitting the task
2) if you think the task will take too much time complete , one more hack we can do is create a web-api which writes to table and call it in a local!variable with property a!refreshVariable(refreshInterval:0.5) and condition to check whether its accepted or not.
How can we call a web-api in local variable?
Using Integration object we can invoke, is there any other way to achieve this?
Not sure this would help but you can try in this way.
1. Create a PM which will have a scrip task which calls the query process analytics
1.Create a Task report which will be having the list of tasks whose status in Assigned.
2. Post that once the task status is changed you can capture them which are changed in a specific time and update the data.
1) create a web-api with write to data store entity
2) create a integration with Usage as queries data.
3) call that integration in a!refreshVariable()
any other method requires user interaction on UI (eg: expand button, first field). as far as i know , developers dont have any control to trigger an action based on default accept/reject button.