Base transformation class, can be used/extended for custom EventStore transformations.
Is most useful when used in conjunction with a Transformer.
exportdefaultnew Transformation({
name: 'My custom transformation',
source: new AwsEventStore({tableName: 'tableA'}),
target: new AwsEventStore({tableName: 'tableB'}),
async perform(input) {
// do work within deadlinereturn result
}
})
Base transformation class, can be used/extended for custom EventStore transformations. Is most useful when used in conjunction with a Transformer.
export default new Transformation({ name: 'My custom transformation', source: new AwsEventStore({tableName: 'tableA'}), target: new AwsEventStore({tableName: 'tableB'}), async perform(input) { // do work within deadline return result } })