In Orbeon Forms, is form version information available in the REST API?

[亡魂溺海] 提交于 2019-12-25 06:47:23

问题


The documentation says:

In addition, the Oracle, MySQL, and DB2 implementations support versioning to some level, in that it keeps older versions. However this is not visible at the level of the REST API. If all you need is keep older versions in the database, what the Oracle, MySQL, and DB2 implementation does might be sufficient. The best will be for Form Runner and Form Builder to handle versioning natively.

http://wiki.orbeon.com/forms/doc/developer-guide/form-runner/persistence-api#TOC-Support-for-versioning

Does this mean we can't see form versions at all in the REST API?

Also, I would like to access the USERNAME of the form data owner via the REST API.


回答1:


The documentation was not quite up to date and I have now clarified the section you are quoting.

The bottom line:

  • Versioning of form definition is implemented since Orbeon Forms 4.5. This is exposed at the API layer via the Orbeon-Form-Definition-Version header. But the documentation of this header is lacking.
  • There is no versioning of form data (so nothing exposed at the API level either).

As a separate feature, the relational persistence implementation never deletes database rows, which allows for auditing of changes (including form definitions and form data). There is no API exposed for this.



来源:https://stackoverflow.com/questions/26852111/in-orbeon-forms-is-form-version-information-available-in-the-rest-api

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!