Hi Diksha,
For the A/B Testing, we use the below JS (Not Complete) :
// query the database to find the winner (best open rate)
var winner = xtk.queryDef.create(
<queryDef schema="nms:delivery" operation="get">
<select>
<node expr="@id"/>
<node expr="@label"/>
<node expr="[@operation-id]"/>
<node expr="[@workflow-id]"/>
</select>
<where>
<condition expr={"@FCP=0 and [@workflow-id]= " + instance.id}/>
</where>
<orderBy>
<node expr="[indicators/@estimatedRecipientOpenRatio]" sortDesc="true"/>
</orderBy>
</queryDef>).ExecuteQuery()
So, to set the threshold you can change the WHERE condition in this QUERY.
Apart from the current where condition you can put this below condition as well :
<condition expr={"@FCP=0 and [indicators/@estimatedRecipientOpenRatio] > 0.1 and [@workflow-id]= " + instance.id}/>
I am not sure, but I think this should work.
Regards,
Kapil Sharma