Using XML, is there a way to grab the latest record? In the below example, there are multiple “OPEN” records associated with the task_id but I would only want the latest record. Also is there a resource to learn more about XML and FSM?
<data_constraint>
<constraint>
<left_operand>task_event.task_id</left_operand>
<operator>eq</operator>
<right_operand>@task_id</right_operand>
</constraint>
<constraint>
<left_operand>task_event.event_type</left_operand>
<operator>eq</operator>
<right_operand>OPEN</right_operand>
</constraint>
</data_constraint>