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

We are happy to announce the new Windchill Customization board! Learn more.

Manually Exclusive Workflow Routing

bwilson-2
4-Participant

Manually Exclusive Workflow Routing

I have three dispostions in a activity routing. I need to set it up so that if I pick options A & B I can't select C. Or if I select C I can't select A or B.
Any thoughts,
Brian
6 REPLIES 6

What I think could be done, is to
- Create boolean task variables for each of your options.
- In the routing, set the variables based on the user input.
- Under Transitions, verify that the logic you want is selected, either
under the complete transition, or each of the routing transitions
individually.
- If the logic isn't met, throw an exception with detail for the user.

Below is some sample code that I have that throws an exception if the PBO
isn't checked in when completing a task.

Can't do this in the workflow w/o code. Can add code to the Complete transition.

Thanks Stephen, I will certainly begin testing this. My confusion stems around how to programmatically evaluate multiple choices.

You said "In the routing, set the variables based on the user input". How is this done code wise on the routing page if you have multiple sections?

thanks!


Steve Vinyard
Application Engineer

Here is an example I have in a task that requires some voting. These are
manually exclusive. To get the value from a non-exclusive routing you
may need to iterate over result.
AL_ANDERSON
5-Regular Member
(To:bwilson-2)

Does this help explain where to enter the code to grab the information
input and/or selected by the user?

Al Anderson





Steve Vinyard <->
12/08/2010 11:28 AM
Please respond to
Steve Vinyard <->


To
Stephen Drzewiczewski <->,
"-" <->
cc

Subject
[solutions] - RE: Manually Exclusive Workflow Routing




Caterpillar: Confidential Green Retain Until: 01/07/2011



Thanks Stephen, I will certainly begin testing this. My confusion stems
around how to programmatically evaluate multiple choices.

You said "In the routing, set the variables based on the user input". How
is this done code wise on the routing page if you have multiple sections?

thanks!


Steve Vinyard
Application Engineer

OK Anderson that does help.

thanks!

[cid:image001.gif@01CB96CE.09ADB700]

Steve Vinyard
Application Engineer
Top Tags