Process designer transition condition

Hi Experts,

 

WE have a requirement of setting a field to true and only certain people with access should get the option "Request for approval" transition button control in process designer.

 

The following code doesnt work , please suggest whwther any syntax missing.

 

( index("ChMAdmin", $lo.ucapex)>0 or index("SysAdmin", $lo.ucapex)>0 or index("change owner",$G.role)>0 and (field1 in $L.file="true") )

  • can you post a printscreen?

    does it work as ChMAdmin?

  • Hi,

    If your field1 is a typical logical field, try putting the "=true" part of your expression with no quotation marks around the word true.

    ( index("ChMAdmin", $lo.ucapex)>0 or index("SysAdmin", $lo.ucapex)>0 or index("change owner",$G.role)>0 and (field1 in $L.file=true) )

    Also, it depends which conditions you want evaluated together if you want all the "or" and additionally the "and" then perhaps

    ( index("ChMAdmin", $lo.ucapex)>0 or index("SysAdmin", $lo.ucapex)>0 or index("change owner",$G.role)>0) and (field1 in $L.file=true)

     

    Audrey

  • Sometimes you are confused whether something wrong with you condition.

    A easier way to check it.  You 'd" in your rad debugger to display it. if  the condition is incorrect, you can easier to know it.

    The following are samples: 

    >d index("ChMAdmin", $lo.ucapex)>0 or index("SysAdmin", $lo.ucapex)>0
    true
    >d index("ChMAdmin", $lo.ucapex)>0
    false
    >d index("ChMAdmin", $lao.ucapex)>0
    unknown

    >d indexs("ChMAdmin", $lo.ucapex)>0
    Invalid expression, or statement