cancel
Showing results for 
Search instead for 
Did you mean: 

Workflow with multiple Items and their permissions

silverhoof
Champ in-the-making
Champ in-the-making
I am implementing a workflow to generate a batch of files and assign each file to a user for editing.
I tried to generate those files and put into the workflow items list, and set a different owner for each item and revoke all the other permission on the file.
But I found that the file creator (not the file owner) can still access all these files, that's not what I wanted.

I want to accomplish this:
In a human task with multiple assignments, every assignee can only access to the file he owns and edit it.

How to do to have this result? Any idea?
1 REPLY 1

forrest43
Champ in-the-making
Champ in-the-making
I found the same problem.
I try to modify item Property. Dosen't work.
As follows

FileInfo fi = ffs.create(companyHomeNodeRef, name, contentQName);
nodeService.setProperty(fi.getNodeRef(), ContentModel.PROP_MODIFIER,"forrest");
nodeService.setProperty(fi.getNodeRef(), ContentModel.PROP_CREATOR,"forrest");