Problem with custom smart foldering

cancel
Showing results for 
Search instead for 
Did you mean: 
tim1234
Active Member

Problem with custom smart foldering

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.

1 Reply
tim1234
Active Member

Re: Problem with custom smart foldering

I have solved the issue which caused by poor coding.