Using variable inside <where> condition
Hi,
I'm hoping that you can help me again. My question is: how I can insert variable intName instead of 'OP125' inside <where> condition?
My code in JS workflow activity is:
var intName = 'OP125'
var query = xtk.queryDef.create(
<queryDef schema="xtk:workflow" operation="get">
<select>
<node expr="@label"/>
<node expr="@internalName"/>
</select>
<where>
<condition expr="[operation/@internalName] = 'OP125'"/>
</where>
</queryDef>)
var res = query.ExecuteQuery()
logInfo("///// My Label: " + res.@label)
Could you please help me with this issue?
Thank you,
Marcin

