[add data] added append processor to processor_types

This commit is contained in:
Jim Unger 2016-04-07 10:35:33 -05:00
parent 889c9c1a73
commit 34dcd7f785

View file

@ -22,6 +22,28 @@ class Processor {
}
}
export class Append extends Processor {
constructor(processorId) {
super(processorId, 'append', 'Append');
this.targetField = '';
this.values = [];
}
get description() {
const target = this.targetField || '?';
return `[${target}]`;
}
get model() {
return {
processorId: this.processorId,
typeId: this.typeId,
targetField: this.targetField || '',
value: this.values || []
};
}
};
export class Gsub extends Processor {
constructor(processorId) {
super(processorId, 'gsub', 'Gsub');