【短缺处理单列表】FW—获取流程流转数据 接口调用获取下一步处理人、节点名称、上一步处理人

This commit is contained in:
pan-houxiang 2025-12-25 14:06:44 +08:00
parent a0b39b0530
commit 4208c87783
1 changed files with 34 additions and 0 deletions

View File

@ -0,0 +1,34 @@
package tqq9.lc123.cloud.app.plugin.form.im;
import kd.bos.entity.datamodel.ListSelectedRowCollection;
import kd.bos.list.BillList;
import kd.bos.list.plugin.AbstractListPlugin;
import kd.bos.logging.Log;
import kd.bos.logging.LogFactory;
import kd.sdk.plugin.Plugin;
import tqq9.lc123.cloud.app.plugin.trd.FWImpl;
import java.util.EventObject;
/**
* 短缺处理单列表插件
* FW获取流程流转数据 接口调用获取下一步处理人节点名称上一步处理人
*/
public class ShortageBillWorkflowDataListPlugin extends AbstractListPlugin implements Plugin {
private static final Log log = LogFactory.getLog(ShortageBillWorkflowDataListPlugin.class);
@Override
public void afterBindData(EventObject e) {
super.afterBindData(e);
BillList b = this.getView().getControl("billlistap");
ListSelectedRowCollection currentListAllRowCollection = b.getCurrentListAllRowCollection();
String billSign = b.getBillFormId();
String result = FWImpl.getWorkFlowHandler(billSign, currentListAllRowCollection);
if ("调用成功".equals(result)) {
log.info("调用成功");
}else{
getView().showTipNotification("单据【"+result+"】中创建人没有填写泛微人员ID");
log.info("调用失败");
}
}
}