Invoke a rule event when someone in the group accepts a task

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

Parents
  • 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. 

Reply
  • 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. 

Children