AWS 插件扩展开发参考指南

简单查询示例

com.actionsoft.apps.poc.plugin.web.SampleWeb#searchFS

// 调用方
String sourceAppId = "com.actionsoft.apps.poc.plugin";
// 服务地址
String aslp = "aslp://com.actionsoft.apps.fullsearch/search";
Map<String, Object> params = new HashMap<String, Object>();
// 给定必填参数
params.put("repositoryName", "db1");
params.put("searchText", searchText);
ResponseObject ro = SDK.getAppAPI().callASLP(SDK.getAppAPI().getAppContext(sourceAppId), aslp, params);
return ro.toString();
}

验证

进入AWS CONSOLE > 应用管理并打开你的应用,在部署中点击FullSearchSample,在查询录入框输入订单,点击简单查询按钮,返回JSON搜索结果的结构如下

{"data":{"result":[{"customerName":"环球科技","content":"订单确认","customerId":"CUST00009","documentId":"38799b80-eb92-45c3-9300-e354d321a487"}]},"msg":"","id":":responseobject;","result":"ok"}


Seven
 010-62962343-690
 liujx@actionsoft.com.cn
感谢您对该文档的关注!如果您对当前页面内容有疑问或好的建议,请与我联系。如果您需要解答相关技术问题请登录AWS客户成功社区