Document State transitions
Get allowed Document State transitions for an asset.The API will return next allowed document state transitions for the user identified by userID attribute
JSONObject jsonResponse = ProfileService.getdocstateinfo(new String[] { assetPath }, userID, resourceResolver);
LOG.debug("Profile service response: {} for asset: {}", jsonResponse, assetPath);
JSONArray jsonArray = jsonResponse.getJSONObject(assetPath).getJSONArray(DOCSTATEJSON_ALLOWEDSTATES_KEY);
for (int i = 0; i < jsonArray.length(); i++) {
LOG.info("Valid transition: {}", jsonArray.getString(i));
}
Post-processing event handler
XML Documentation solution exposes com/adobe/fmdita/postprocess/complete event that is
used to perform any post-processing operations. This event is triggered whenever an operation is
performed on a DITA file. The following operations on a DITA file trigger this event:
• Upload
• Creation
• Modification
• Deletion
For more details, please refer to page 19 on https://helpx.adobe.com/content/dam/help/en/xml-documentation-solution/3-4/XML-Documentation-for-Adobe-Experience-Manager_API-Reference_EN.pdf
Fetch all DITA Map dependencies
Please refer to link: https://techrevel.blog/2020/09/09/api-fetch-all-dita-map-dependencies/
This is a very helpful guide for understanding how document state transitions work.
LikeLike