Absent Member.. Madhu84 Absent Member..
Absent Member..
630 views

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") )

0 Likes
3 Replies
Honored Contributor.. Enzo_Potenza Honored Contributor..
Honored Contributor..

Re: Process designer transition condition

can you post a printscreen?

does it work as ChMAdmin?

Highlighted
Audrey H. Acclaimed Contributor.
Acclaimed Contributor.

Re: Process designer transition condition

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

Established Member.. MickeyMi
Established Member..

Re: Process designer transition condition

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

0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.