How to add custom property in project task(in backend via crxde) in vanilla AEM 6.4 instance and fetch its value.
Hi All,
This is a requirement related to Show/hide custom button in http://localhost:4502/aem/inbox in vanilla AEM 6.4instance .
Suppose I create a task in my inbox by going to http://localhost:4502/projects/details.html/content/projects/we-retail -> Start workflow -> Project Approval Workflow.
A task then gets created in the http://localhost:4502/aem/inbox .
This task in crxde is stored somewhere under /content/projects/we-retail/jcr:content/tasks/2018-06-08/task_from_workflowlaunchedbyproject. If I add a custom property to it say 'showCustom ={Boolean}true' and I want to fetch that value to show/hide my custom button[i.e, My Complete] in AEM inbox.
How should we go about doing this.
Tried few things[not sure if its a proper approach] :
-In the task created /content/projects/we-retail/jcr:content/tasks/2018-06-08/task_from_workflowlaunchedbyproject, added some value to existing description property.
- In /libs/cq/inbox/gui/components/inbox/inboxitem/list/list.html added data element data-custom-item="${item.description}".
- In custom js code able to read the value, based on which I am able to show/hide.
- But in case I add a custom property to the task, how do I do this, is a challenge.
Any thoughts/pointers/reference code here will be helpful.
