onAfterAdvance事件的event参数中有processControl,processControl中就是任务信息,获取sName的值参考
Model.prototype.processAfterAdvance = function(event){ var processControl = event.processControl; var toItems = processControl.getToItems(); if (toItems) { for ( var i = 0; i < toItems.length; i++) { var item = toItems[i]; var sName = item.getTaskRelationValue("sName"); } } };
评一波