AnsweredAssumed Answered

Problem with custom smart foldering

Question asked by tim1234 on Jun 13, 2017
Latest reply on Jun 15, 2017 by tim1234

On the community edition, I am trying to create a custom smart folder template as I am following through tutorial on the document (Smart Folders tutorial | Alfresco Documentation ). However, I use my own .json file and own model to fit in my case (filing leaving apply form in a company)

 

 

Here is a fragments of the .json:

{
"name": "LeaveDemo",
"nodes": [
{
"id": "1",
"name": "Leave by Type",
"nodes": [
{
"id": "11",
"name": "Annual Leave",
"nodes": [
{
"id": "111"
"name": "New",
"search": {
"language": "fts-alfresco",
"query": "=demo:docType:'Annual Leave' and =demo:docStatus:'New apply'"
},
"filing" : {
"path" : "%ACTUAL_PATH%",
"classification": {
"type": "demo:leaveApplyForm"
},
"properties" : {
"demo:docType": "Annual Leave",
"demo:docStatus": "New apply"
}
}
},
{
"id": "112",
"name": "In process",
"search": {
"language": "fts-alfresco",
"query": "=demo:docType:'Annual Leave'  and =demo:applyStatus:'In process'"
},
"filing": {
"path": "%ACTUAL_PATH%",
"classification": {
"type": "demo:leaveApplyForm"
},
"properties": {
"demo:docType": "Annual Leave",
"demo:docStatus": "In process"
}
}
},
...

 

 

 

Yet, I cannot get the smart filing working. That is, if I put in a document in the correct directory that has property of "Annual Leave" and "In Process", you cannot find the file in "Leave by Type\Annual Leave\In Process"
I would like to have some help or advice.

Outcomes