// Extends business processes states meta data with object collections

'use strict';

var all  = require('./')
  , meta = require('./meta');

module.exports = meta;

meta.all.data      = all;
meta.pending.data  = all.filterByKeyPath('processingSteps/map/${ appNameSuffix }/isPending', true);
meta.sentBack.data = all.filterByKeyPath('processingSteps/map/${ appNameSuffix }/isSentBack', true);
meta.rejected.data = all.filterByKeyPath('processingSteps/map/${ appNameSuffix }/isRejected', true);
meta.approved.data = all.filterByKeyPath('processingSteps/map/${ appNameSuffix }/isApproved', true);

// Extends business processes states meta data with object collections

'use strict';

var forEach = require('es5-ext/object/for-each')
  , all     = require('./')
  , meta    = require('./meta');

module.exports = meta;

forEach(meta, function (conf, name) {
	if (name === 'all') {
		conf.data = all;
	} else {
		conf.data = all.filterByKeyPath('processingSteps/map/${ appNameSuffix }/resolvedStatus', name);
	}
});

Update up to latest changes
Update up to latest changes
