开发介绍:
k3cloud开发消息Send接口实时接收金蝶工作流的每个动作,中转接口调用后台网站程序生成对应的跳转页面地址,把地址当做参数一并传入oa代办已办接口中,用户点击对应的代办连接,单点登录跳转到金蝶k3审批页面进行审批,审批后接着执行下一次的消息接收环节....................................
部分代码分享:
开发者需要实现接口Kingdee.BOS.Mobile.Contract.IOtherPlatformMessage中的方法Send,并完成具体的业务逻辑,接口定义如下:
/// 第三方平台消息接口
ServiceContract]
RpcServiceError]
OperationContract]
FaultContract(typeof(ServiceFault))]
MobileResponse Send(Context ctx, MobileMessage message);
OtherPlat.mobile.ServicePlugIn.OtherPlatMessage,OtherPlat.mobile.ServicePlugIn
    参数及返回值的定义:
返回参数MobileMessage类的定义  | ||
Title  | 待办任务标题  | String  | 
Text  | 待办任务内容  | String  | 
SourceType  | 消息类型  | String  | 
SourceId  | 待办任务id  | String  | 
Status  | 消息状态枚举,待办todo=1;已办done=2  | MsgStatus  | 
Uses  | 接受者用户列表  | List<String>  | 
返回类型MobileResponse的定义  | ||
Errcode  | 返回结果: 0成功,小于0失败  | Long  | 
Errmsg  | 错误信息  | String  | 
接口实现示例:
接口实现示例:
public class OtherPlatformMessage15032213342 :IOtherPlatformMessage
{
public MobileResponse Send(Context ctx, MobileMessage message)
{
var response = new MobileResponse();
response.Errcode = 0;
response.Errmsg = "Test";
return response;
}
}
部分截图:














