This business process places a document into a specific folder within the employee’s folder. The document’s name is the same as the name of the Employee folder and is also the name field in the “HR Employees Folder” template. The BP creates %(EmployeeFolderName) to hold the document name. That token is used to find the employee’s folder with the following template search:
{[HR Employees Folder]:[Last First I XXXX]="%(EmployeeFolderName)"} & {LF:LOOKIN="Humanresources\"}
Folder structure of the HR root folder. Each employee folder within HR EE Personnel Files has the HR Employees Folder template attached.
This is the structure down to the folder that needs to receive the document
So, the path to Dusty’s CBC folder is \HR EE Personnel Files\Rhodes Dusty 4321\Employee File\Criminal Background Check
HR also has work-in-progress folder that contains employee folders that also have the HR Employees Folder template attached. Note that Gern’s employee folder is in a second level folder (Form 500)
I want to move the document to \%(SearchRepository_FirstResult_Path)\%(EmployeeFolderName)\Employee File\Criminal Background Check
If the BP is executed to place Elvis’s CBC, %(SearchRepository_FirstResult_Path = \HR EE Personnel Files\Presley Elvis 0000
and the document is placed correctly.
The Problem:
When the BP executes to place Gern’s document, %(SearchRepository_FirstResult_Path should equal \HR To Be Processed\Form 500\Blanston Gern 1234 but instead, Gern’s folder is not found …. SearchRepository_FirstResult_FullPath=\ ….and a new folder is built for Gern in the root.
(For grins, I moved Gern’s folder out of Form 500 and placed it in HR To Be Processed and the BP works as expected.)
So, it appears that if the employee’s folder is in the first level folder, the BP works …if it is in a lower level folder (Form 500) it doesn't work correctly.
Is this expected behavior?....Is this a bug?
We are using Workflow v9.0.2
Help is certainly appreciated.
Thanks in advance…..
Dennis