Extracting data from other records

Ok so I have a slightly strange requirement that requires a bit of explaining.

I have the following table layout
| id | reporting_work_task_id | status_id | updated_by | status_entry_date | status_exit_date | sequence |

and the following source data:
| Request Code | Status | Change Date |

now the background to this is a history of all tickets which have changed their status (for example from open, to with someone, to closed). My problem occurs when I need to fill in the status_exit_date which would be set to the next status Change Date from source data. For example ticket A has the history of (from source data):
> Open | 10/08/2014
> With Client | 11/08/2014
> Closed | 12/08/2014

Open should have a status_entry_date of 10/08/2014 and an exit date of 11/08/2014, With Client would be 11/08/2014 and 12/08/2014 respectively and so on.

Now how would I achieve this in clover. I have tried the relational joiner however that seems to be cartesian joining as Open would join to With Client and Closed.
Any help would be appreciated,

Many thanks

Jack :slight_smile:

Hello Jack,

If I understand your goal correctly, you do not need any special component for this task, just a regular Reformat and a pair of ExtSorts. You can preserve date from the previous record in a global variable and then use it in the following record.

Please see the attached example graph.
tickets.zip
Regards,

OMG it worked! Thank you!