Anyone know if/how/can a task could cancel a workflow transition?
I can think of at least two times that would be handy:
- The design checker finds a problem, forbid the file from being approved
- The print/convert task fails, forbid the file from being approved
Pretty sure this cannot be done with the out of the box tasks, (???) so I am investigating writing my own, but not even sure if a custom task could stop a transition even if it wanted to...and in my case it does!
Does a task have any hooks to a transition if it called by it?
Does it have to be a task? I know you can with a dispatch script. you could simply create a script that says:
if VAR = TRUE
CANCEL SOLDIWORKS ENTERPRISE PDM COMMAND
then in you task, set that variable when you need to cancel out.