Use a process level WTUser variable, such as
wt.org.WTUser Task_Complete_User
In the task complete transition of a task, use this to set that variable.
Task_Complete_User = (wt.org.WTUser)wt.session.SessionMgr.getPrincipal();
Then in later tasks, in the task complete transition, do something like
this.
wt.org.WTUser thisUser =
(wt.org.WTUser)wt.session.SessionMgr.getPrincipal();
if (thisUser.equals(Task_Complete_User)) {
throw new Exception("You cannot complete this task because you
already completed some other task...");
}
=======
Something along these lines should give you what you want.
Al Anderson
Solar Turbines Incorporated
"Stavish, Richard" <rstavish@sargentaerospace.com>
12/20/2010 12:21 PM
Please respond to
"Stavish, Richard" <rstavish@sargentaerospace.com>
To
"-" <->
cc
Subject
[solutions] - {Blank Subject 2010-12-20}