1a60a492 by Ean Schuessler

Add fileSuccess callback support

Refs: #7621
1 parent dd007e1b
...@@ -163,6 +163,9 @@ define(function(require) { ...@@ -163,6 +163,9 @@ define(function(require) {
163 flowFile.flowObj.ownerContent.set('statusId', 'CTNT_AVAILABLE'); 163 flowFile.flowObj.ownerContent.set('statusId', 'CTNT_AVAILABLE');
164 flowFile.flowObj.ownerContent.save(function() { 164 flowFile.flowObj.ownerContent.save(function() {
165 console.log('MARKED', flowFile.flowObj.ownerContent, ' AVAILABLE'); 165 console.log('MARKED', flowFile.flowObj.ownerContent, ' AVAILABLE');
166 if (this.model.get('handlers') && this.model.get('handlers').fileSuccess !== undefined) {
167 this.model.get('handlers').fileSuccess(flowFile);
168 }
166 }); 169 });
167 } 170 }
168 }, 171 },
......