Information is populated by running a search query:
{
"id : "1",
"name":"Documents",
"nodes":[
{
"name":"Correspondence",
...
"search":{
"language":"fts-alfresco",
"query":"=cmg:claimDocumentType:Correspondence and cmg:claimDocumentId:<cmg:claimId>"
}
},
{
...
}
]
}
The query is run when the Smart Folder is opened, and the results displayed as the folder contents.
You can limit the query to specific types or aspects, for example:
"query":"+ASPECT:'ins:claimFolder'" "query":"+TYPE:'cm:folder'"
You can use %CURRENT_USER% to limit the search to documents relevant to the signed in user, for example:
"query":"cm:modifier:%CURRENT_USER% or cm:creator:%CURRENT_USER%"