servicenow - can workflow activity be used as a condition in business rules? -


when try use condition

current.wf_activity.name.tostring() == "xxxx" it's not triggering business rule.

when try displaying using gs.addinfomessage(current.wf_activity.name.tostring()); displays 'xxxx'.

it's observed specific types of workflow businessrule triggers while others it's not. have tried without tostring() method not working.

using getdisplayvalue() doesnt works

can site example using workflow activity in business rule conditions?

it's possible wf_activity isn't set @ time business rule runs. may try increasing order of business rule on 1000 (so runs after engines) or changing "before" "after" rule.

if doesn't work, remove condition br , log current value , comparison result:

gs.log("mydebug: current.wf_activity.name=[" + current.wf_activity.name + "]); gs.log("mydebug: comparison?=" + (current.wf_activity.name.tostring() == "xxxx")); 

Comments

Popular posts from this blog

java - Custom OutputStreamAppender not run: LOGBACK: No context given for <MYAPPENDER> -

java - UML - How would you draw a try catch in a sequence diagram? -

c++ - No viable overloaded operator for references a map -