Hi hemantsharma,
Please see below the limit parameter, and the order clause.
var param = '[@workflow-id] = 123456789';
var query = xtk.queryDef.create(
<queryDef schema="xtk:workflowLog" operation="select" limit="30">
<select>
<node expr="@error"/>
<node expr="[@workflow-id]"/>
</select>
<where>
<node expr={param} />
</where>
<orderBy>
<node expr="[@workflow-id]" sortDesc="true"/>
</orderBy>
</queryDef>
);
By the way, might you declare as correct answer the post to complete this ticket (green status)?
Many thanks in advance.
Regards
JS