1.普通批处理方法,必须要参数 例子:TESTBatch
2.运行时调用
BatchHeader batchHeader;RefRecId batchJobId;SysRecurrenceData sysRecurrenceDate = SysRecurrence::defaultRecurrence();sysRecurrenceDate = SysRecurrence::setRecurrenceEndAfter(sysRecurrenceDate, 1);ListEnumerator list_E = _list.getEnumerator();batchHeader = BatchHeader::construct();batchHeader.parmCaption('标题');while(list_E.moveNext()){TESTBatch postPacking = new TESTBatch();postPacking.parmRefRecId(list_E.current());batchHeader.addTask(postPacking,batchJobId);batchHeader.parmRecurrenceData(sysRecurrenceDate);batchHeader.save();}