数据服务主题,资源需求主题,期间主题都支持下列接口

Object status(ASRequest aRequest,String  asOperation ,Long aRecId) throws ASException ;        

数据服务和字段值服务主题支持:

public void setFieldValue(ASRequest aRequest,Long  aRecId,String asFieldCode,Object aValue) throws ASException; 

public Object getFieldValue(ASRequest aRequest,Long  aRecId,String asFieldCode) throws ASException;        



调用举例:

system.service(“.CGDD.DATA”).status(request,”lock”,flow.tranid);//锁定采购订单

system.service(“.CGDD.DATA”). setFieldValue (request, flow.tranid,

”tranmemo”,flow. shortmemo);//将流程的备注信息更新到单据。 


数据服务可以触发事件

system.service(“.CGDD.DATA”).triggerEntityEvent(request,String asType,Long lRecId) 

asType事件类型, lRecId 业务id


system.service('.CLAZDJ.DATA').status(request,'unlock',flow.tranid); 设置单据的状态

system.service('.CLAZDJ.DATA').setFieldValue(request,flow.tranid,'sfkaz','否'); 更新字段值

system.service('.CLAZDJ.DATA').setFieldValue(request,flow.tranid,'tranmemo',event.eventParam('comcontent')); 将点评内容更新到字段中

Created with the Personal Edition of HelpNDoc: What is a Help Authoring tool?