Defining a measure using a process variable that is not present in all processes

258 views
Skip to first unread message

tom....@mycit.ie

unread,
Jul 17, 2013, 11:40:20 AM7/17/13
to suppor...@runmyprocess.com
I have many uncompleted processes in a number of different states, and now want to define a new measure which uses a variable that only exists in some of the processes - it is created in a later part of the process.

Can I use the following Freemarker to define the value of a measure that works for all processes?
<#if my_variable?has_content>${my_variable}<#else>n/a</#if>

Gareth Thiveux

unread,
Jul 17, 2013, 11:48:16 AM7/17/13
to suppor...@runmyprocess.com
Hi Tom,

The code is even simpler, you can just put ${my_variable} into the script of your measure.
As long as the variable is not defined, nothing will be displayed in the measure. But if instead of nothing, you explicitely want to display something while my_variable is not defined, you can put ${my_variable?default("n/a")} and write whatever you want in the default().


Regards,

Gareth THIVEUX   
Consultant Avant-Vente / Pre-Sales Consultant
 Fujitsu RunMyProcess
22 rue Chauchat, 75009 Paris - France (GMT+1)
website : Fujitsu RunMyProcess      



Fujitsu RunMyProcess user? Please add a review on GoogleApps Marketplace

Afin de contribuer au respect de l'environnement, merci de n'imprimer ce message qu'en cas de nécessité.
Be environmentally friendly: do not print this email unless it is entirely necessary.


2013/7/17 <tom....@mycit.ie>
I have many uncompleted processes in a number of different states, and now want to define a new measure which uses a variable that only exists in some of the processes - it is created in a later part of the process.

Can I use the following Freemarker to define the value of a measure that works for all processes?
<#if my_variable?has_content>${my_variable}<#else>n/a</#if>

--
Fujitsu - RunMyProcess
---
You received this message because you are subscribed to the Google Groups "RunMyProcess Support Forum" 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/.
For more options, visit https://groups.google.com/a/runmyprocess.com/groups/opt_out.



Reply all
Reply to author
Forward
0 new messages