cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Learn all about the Community Ranking System, a fun gamification element of the PTC Community. X

Translate the entire conversation x

{Blank Subject 2010-12-20}

rstav
1-Visitor

{Blank Subject 2010-12-20}

Windchill Admin,

I have a custom workflow that I created for an internal document review. I would like a check in the workflow to verify that the same person is NOT used for sequential activities.

For example...I do not want the person who submitted the document to be the person who reviews the document.

I am pretty sure that it can be done within the workflow with variables(I think), but I am not sure.

Can someone point me in the right direction? Or have any examples that you have used?

Thanks
Rich

Richard Stavish
Pro/E System Administrator

[cid:image001.jpg@01CBA041.779FC970]<file: c:\documents%20and%20settings\rstav\application%20data\microsoft\signatures\sargent_logo.jpg=">

E-mail:
Office:
Fax:
Mobile:

RStavish@sargentaerospace.com
520-744-1000 x4570
520-744-7529
520-437-5811
1 REPLY 1
AL_ANDERSON
12-Amethyst
(To:rstav)

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}



Announcements

Top Tags