summaryContext.isRestarted
Property Description |
Indicates whether the summarize(summaryContext) function was invoked again. To reduce negative impact to map/reduce processing if the Java virtual machine (JVM) restarts, NetSuite automatically restarts the current summary function. Summary data previously written by the incomplete function is deleted. If the value is |
Type |
boolean (read-only) |
Since |
2016.1 |
Syntax
...
function summarize(summary) {
if (summary.isRestarted)
{
log.debug('SUMMARY isRestarted', 'YES');
}
else
{
log.debug('SUMMARY isRestarted', 'NO');
}
log.debug('summarize', JSON.stringify(summary));
...