cancel
Showing results for 
Search instead for 
Did you mean: 

Private Document

messmeister
Champ in-the-making
Champ in-the-making
Hello,

I'm looking for a solution for the following problem:
(Alfresco Activiti Suite 1.4)

During my workflow I collect data from several people (employees) using many user tasks and different forms. Now at the end I create a pdf document using the "Generate document task". After that, a "User task" displays the generated document using a form and this form is assigned to a manager in the company. That's working fine.
The problem is: The generated document is confidential, so nobody may view it besides the manager. How can I achieve this? For now, everyone who did something during the workflow can view it and therefore the generated document as well. They can even view entered values of other people which are confidential as well.

I'm very thankful for any ideas about this.
Thank you very much and best regards!

Manuel
4 REPLIES 4

jbarrez
Star Contributor
Star Contributor
I don't think that is currently possible, as indeed the document would be visible to all involved.
It's something we heard before (more ways to set permissions on tasks/process instances), and on our backlog, I'll bring it up again for discussion.

messmeister
Champ in-the-making
Champ in-the-making
Thank you very much!
In the meantime, how can I delete a document from the process? As a workaround I’m thinking of publishing the generated document to alfresco and then remove it from the workflow. I guess I'll need a script task for that? How to get the document and remove it from Java?

jbarrez
Star Contributor
Star Contributor
For that you'd need a custom Spring bean that has the the ContentStorage service Autowired in it.
If you have the id of the document (its in the database), you can remove it through there.

messmeister
Champ in-the-making
Champ in-the-making
Thank you very much!