Post-processing event handler id175UB30E05Z
UUID and Cloud Service
ÃÛ¶¹ÊÓƵ Experience Manager Guides exposes com/adobe/guides/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
- Create
- Modify
You need to create an ÃÛ¶¹ÊÓƵ Experience Manager event handler to read the properties available in this event and do further processing.
Event details are explained below:
Event name:
com/adobe/guides/postprocess/complete
Parameters:
path
eventType
status
- SUCCESS: The post-processing operation completed successfully.
- FAILED: The post-processing operation failed due to some error.
errorMsg
uuid
Sample Event Listerner
@Component(service = EventHandler.class,
immediate = true,
property = {
EventConstants.EVENT_TOPIC + "=" + "com/adobe/guides/postprocess/complete",
})
public class PostProcessCompleteEventHandler implements EventHandler {
protected final Logger log = LoggerFactory.getLogger(this.getClass());
@Override
public void handleEvent(final Event event) {
Set<String> propertyNames = new HashSet<>(Arrays.asList(event.getPropertyNames()));
Map<String, String> properties = new HashMap<>();
properties.put("path", (String) event.getProperty("path"));
properties.put("eventType", (String) event.getProperty("eventType"));
properties.put("status", (String) event.getProperty("status"));
if(propertyNames.contains("errorMsg")) {
properties.put("errorMsg", (String) event.getProperty("errorMsg"));
}
if (propertyNames.contains("uuid")) {
properties.put("uuid", (String) event.getProperty("uuid"));
}
String eventTopic = event.getTopic();
log.debug("eventTopic {}", eventTopic);
for(Map.Entry entry:properties.entrySet()) {
log.debug(entry.getKey() + " : " + entry.getValue());
}
}
}
Non UUID
ÃÛ¶¹ÊÓƵ Experience Manager Guides 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
You need to create an ÃÛ¶¹ÊÓƵ Experience Manager event handler to read the properties available in this event and do further processing.
Event details are explained below:
Event name:
com/adobe/fmdita/postprocess/complete
Parameters:
path
status
- SUCCESS: The post-processing operation completed successfully.
- COMPLETED WITH ERRORS: The post-processing operation completed, but with some errors.
- FAILED: The post-processing operation failed due to some error.
message
operation
- Addition
- Updation
- Deletion