Question
Sending message back to user from failed workflow transition
Workflow transitions are a nice place to drop in code and run checks off a user task. I have a few versions of the "check in your changeable stupid" validations before the workflow changes their state. In one version, it's a simple if/then expression that sets result to true or false:
if (user.hasBrain())
result=true;
else result=false;
The user would get an message like this if false: COMPLETE transition expression for Check In Resulting Items returned false. Kind of cryptic for yee of few neurons. I could explain this with a little training but does anyone else relay clear messages back to the user? I believe I can throw a WTException with a message which will get displayed, I think. Just curious if that causes the task state to have issues.
Antonio Villanueva - Sr. Software Engineer - ISR Systems
UTC AEROSPACE SYSTEMS
100 Wooster Heights Road, Danbury, CT 06804
Tel: +1 203 797 5682
antonio.villanueva@utas.utc.com<">mailto:antonio.villanueva@utas.utc.com> www.utcaerospacesystems.com
CONFIDENTIALITY WARNING: This message may contain proprietary and/or privileged information of UTC Aerospace Systems and its affiliated companies. If you are not the intended recipient please 1) do not disclose, copy, distribute or use this message or its contents, 2) advise the sender by return e-mail, and 3) delete all copies (including all attachments) from your computer. Your cooperation is greatly appreciated.
if (user.hasBrain())
result=true;
else result=false;
The user would get an message like this if false: COMPLETE transition expression for Check In Resulting Items returned false. Kind of cryptic for yee of few neurons. I could explain this with a little training but does anyone else relay clear messages back to the user? I believe I can throw a WTException with a message which will get displayed, I think. Just curious if that causes the task state to have issues.
Antonio Villanueva - Sr. Software Engineer - ISR Systems
UTC AEROSPACE SYSTEMS
100 Wooster Heights Road, Danbury, CT 06804
Tel: +1 203 797 5682
antonio.villanueva@utas.utc.com<">mailto:antonio.villanueva@utas.utc.com> www.utcaerospacesystems.com
CONFIDENTIALITY WARNING: This message may contain proprietary and/or privileged information of UTC Aerospace Systems and its affiliated companies. If you are not the intended recipient please 1) do not disclose, copy, distribute or use this message or its contents, 2) advise the sender by return e-mail, and 3) delete all copies (including all attachments) from your computer. Your cooperation is greatly appreciated.

