0 votes
300 views
in Activities & Tasks by

2 Answers

0 votes
by (290 points)
tw.system.currentTask.reassignBackToRole()  will work if you implemented this in Exit button which will close the coach.
0 votes
by (2.1k points)

You can create a coach view and use window's onbeforeunload function , the function will get executed on window close event.

Within function you can trigger the boundary event.

var _this=this;

window.onbeforeunload = function(){
   _this.context.trigger()
};
At server side, you can wire the boundary event with a script to  (tw.system.currentTask.reassignBackToRole()) to reassign back the task.
by (290 points)
It is not working

Related questions

0 votes
1 answer 173 views
0 votes
1 answer 230 views
0 votes
0 answers 55 views
0 votes
1 answer 61 views
0 votes
1 answer 70 views
0 votes
0 answers 22 views
0 votes
4 answers 235 views
0 votes
1 answer 73 views
0 votes
1 answer 82 views
...