将MobileFirst JavaScript适配器从7.1升级到8.0时,替换投票事件源



在我们现有的MFP 7.1项目中,我们依靠JavaScript适配器中的投票事件源来创建一个调度程序,该调度程序可以启用特定于间隔的操作,例如在数据库表上观看数据库表的表在服务器端处理的新记录。该实施基于以下指南:http://www.ibm.com/support/knowledgecenter/sshs8r_7.1.1.0/com.ibm.worklight.dev.doc.doc/devref/t_configurf/t_configuring_a_polling_event_event_event_source.source.html

但是,我们发现在MFP 8.0文档中找不到投票事件源,以下文档指出,不再支持投票事件源:https://mobilefirstplatform.ibmcloud.com/tutorials/en/foundation/8.0/product-overview/release-notes/deprecated-discated-discontine/

我们想知道在处理诸如此类的轮询事件源时,建议从7.1迁移到8.0的建议方法,以及如果MFP 8.0中没有可能的方法,则建议采取什么替代方法。谢谢。

Mobilefirst Foundation 8.0确实不支持投票。
https://mobilefirstplatform.ibmcloud.com/tutorials/en/foundation/8.0/upgrading/migrating-push-notifications/

我没有任何官方替代方案,但是由于投票是对新内容的一些后端检查,如果是对的,请发出通知,您仍然可以创建自己的服务,以检查您的后端,如果有新的"记录"或新的其他新内容,如果为true,则该通知构造了JSON并发送。

在V8.0中,您有多个休息端点,可以与机密客户端一起发送。

  • http://www.ibm.com/support/knowledgecenter/sshs8r_8.8.0.0/com.ibm.m.worklight.apiref.doc/rest_runtime/c_restapi_runtime.html
  • https://mobilefirstplatform.ibmcloud.com/tutorials/en/foundation/8.0/authentication-andentication-and-security/confidential-clients/

您还可以查看以下方法构建机制以使用node.js发送通知:https://mobilefirstplatform.ibmcloud.com/blog.com/blog/2016/10/10/18/using-mff-8-push-Service-rest-api-in-a-a-nodejs-server/

最新更新