Wait for Condition gets cancelled

Rudi2
Giga Guru

Hi Everyone

I have a simple "wait for condition" on a true/false option. So for a wait for condition it will check that property every time the record gets updated. This works if I want to use it for state, but not for true/false option. My workflow gets cancelled every time even before that property gets changed. any suggestions?

Thanks

1 ACCEPTED SOLUTION

Hi Mike



I found the problem



Demand is extended from task, and there's a business rule called "Cancel Workflows Upon Cancellation"



The problem with this business rule is that it cancels on the 'state' value of 4, which is 'closed incomplete' or 'cancelled' in most tables that's also extended from task.



I just added the demand table to the condition to exclude it and it works.



Thanks for your help!


View solution in original post

4 REPLIES 4

mike_donathan
Kilo Guru

I'd have to test it, but it's probably because a true/false variable always has a value (either true or false), so the condition is always going to be satisfied, and the workflow will continue.


Hi Mike



I changed it to a choice type and it does the same, This workflow runs on the demand form. When I take the state to screening its fine, but as soon as I Qualify the demand it gets cancelled.. Its very weird.


Hi Mike



I found the problem



Demand is extended from task, and there's a business rule called "Cancel Workflows Upon Cancellation"



The problem with this business rule is that it cancels on the 'state' value of 4, which is 'closed incomplete' or 'cancelled' in most tables that's also extended from task.



I just added the demand table to the condition to exclude it and it works.



Thanks for your help!


ahh.. i wish i had seen this post earlier. i just wasted my whole day debugging the workflow and went on to create custom business rules instead of workflow.



Thanks