Hi @alnavarg
I tried running a similar code and got the desired results.
var query = xtk.queryDef.create(
<queryDef schema={vars.targetSchema} operation="select">
<select>
<node expr="@id"/>
<node expr="@lastName"/>
</select>
</queryDef>
);
var resultSet = query.ExecuteQuery();
for each (var row in resultSet)
{
var condition = row.@lastName;
logInfo(condition);
if(condition == 'Test')
{
task.postEvent(task.transitionByName('english'));
} else {
task.postEvent(task.transitionByName('other'));
}
}
When you look in the transitions it will show all the records but if you do a log in individual END activities, you can see the desired no. of records being processed.



As per my record, only one record satisfied the English transition condition hence one log for English END activity.
I would request you to once try logging in the END activity and see if the desired results are being processed.
Regards
A