Defines if "success" action should be invoked or not.
import Batch = require("nativescript-batch");
var b = Batch.newBatch(function(ctx) {
ctx.invokeSuccess = false;
}).success(function(ctx) {
// [0] NOT invoked
}).then(function(ctx) {
// do something without changing
// ctx.invokeSuccess
}).success(function(ctx) {
// [1] invoked
});
b.start();