0 votes
1.7k 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 1.3k views
0 votes
1 answer 906 views
0 votes
0 answers 184 views
0 votes
1 answer 457 views
0 votes
1 answer 285 views
0 votes
0 answers 261 views
0 votes
0 answers 393 views

634 questions

495 answers

97 comments

2.7k users

Join BPM Community Discord Channel

Welcome to BPM Tips Q&A, Community wiki/forum where you can ask questions and receive answers from other IBM BPM experts and members of the community. Users with 2000 points will automatically be promoted to expert level.
Created by Dosvak LLC
Our Youtube Channel
...