Hi,
I'm trying to develop a custom process step where it extracts metadata from from an XML file and stores it's values on a node. Just wondering what would the code be
to implement the storing process and if there is a path name involved i would appreciate it as well!
Im assuming you create a node based on the session and set the metadata properties to it?
Thanks,
Ram
Solved! Go to Solution.
Views
Replies
Total Likes
TO learn how to persist data in the AEM JCR -- see this AEM article:
http://helpx.adobe.com/experience-manager/using/persisting-cq-data-java-content1.html
You use the JCR API to store data - as shown in this article. You can place that logic into an OSGi bundle.
To learn how to query data from the AEM JCR - see this article:
http://helpx.adobe.com/experience-manager/using/querying-experience-manager-data-using1.html
TO learn how to write a custom workflow step - see this community article:
http://helpx.adobe.com/experience-manager/using/creating-custom-aem-workflow-steps.html
That custom workflow step creates an workflow step that sends email - but once you understand how to create a custom step - you can change the application logic to meet your business requirements.
You can also use W3C Java APIS to read and write to XML. SO you can use this logic in custom steps. I believe there is an example of dynamically creating XML in the Query article listed above.
Views
Replies
Total Likes
TO learn how to persist data in the AEM JCR -- see this AEM article:
http://helpx.adobe.com/experience-manager/using/persisting-cq-data-java-content1.html
You use the JCR API to store data - as shown in this article. You can place that logic into an OSGi bundle.
To learn how to query data from the AEM JCR - see this article:
http://helpx.adobe.com/experience-manager/using/querying-experience-manager-data-using1.html
TO learn how to write a custom workflow step - see this community article:
http://helpx.adobe.com/experience-manager/using/creating-custom-aem-workflow-steps.html
That custom workflow step creates an workflow step that sends email - but once you understand how to create a custom step - you can change the application logic to meet your business requirements.
You can also use W3C Java APIS to read and write to XML. SO you can use this logic in custom steps. I believe there is an example of dynamically creating XML in the Query article listed above.
Views
Replies
Total Likes
Thanks very much my next question would of been querying data from nodes but glad you answered it already!
Views
Replies
Total Likes
Also note -- if you are using AEM 6 and want to query data -- be sure to reference this community article. A new way to create a Session object:
Querying Adobe Experience Manager 6 data using the Sling getServiceResourceResolver method
Views
Replies
Total Likes