is empty condition and users in lane condition with freemarker ?

323 views
Skip to first unread message

con...@trustinvest.fr

unread,
Apr 19, 2015, 5:20:59 PM4/19/15
to suppor...@runmyprocess.com
Hi All,
I am requesting your help in order to formulate two differente conditions using freemarker:
1/ how to write a condition to check if a variable is empty (NULL) ? a = NULL ? a = [] ?
2/ how to write a condition to check if P_user belongs to a specific lane ?
Many thx,
Regards

Shobhit Tripathi

unread,
Apr 19, 2015, 6:40:22 PM4/19/15
to suppor...@runmyprocess.com
Hi,

1. You can check the condition either variable is exists or not. So for this you can use (variable_name)?? or (variable_name)?has_content
Example- <#if (value)??>   // ?? -> double question mark represent "exists"
Exists
<#else>
Not exists
</#if>
2. To check if user belongs to specific lane you can use is_user_in_lane(lanes) .


Hope this will helps you.

Feel free to ask for further queries.


--
Fujitsu - RunMyProcess
---
You received this message because you are subscribed to the Google Groups "Fujitsu RunMyProcess Developer Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to supportforum...@runmyprocess.com.
To post to this group, send email to suppor...@runmyprocess.com.
Visit this group at http://groups.google.com/a/runmyprocess.com/group/supportforum/.
To view this discussion on the web visit https://groups.google.com/a/runmyprocess.com/d/msgid/supportforum/72ff9e70-226f-4dca-89a1-a6fb2951a011%40runmyprocess.com.
For more options, visit https://groups.google.com/a/runmyprocess.com/d/optout.



--
Thanks & Regards,
Shobhit
Fujitsu- RunMyProcess
Reply all
Reply to author
Forward
0 new messages