cancel
Showing results for 
Search instead for 
Did you mean: 

Add but not remove file during workflow

dranakan
Champ on-the-rise
Champ on-the-rise
Hello,

I would like to add a document at the beginning of a workflow. During the other steps of the workflow the users will not be able to remove this first document but can add other documents. How can I do that ?

My ideas :
1.Changing in the model the properties below can't do what I want.

<overrides>
          <property name="bpm:packageActionGroup">
                  <default>add_package_item_actions</default>
          </property>
          <property name="bpm:packageItemActionGroup">
                  <default>…./default>
          </property>
</overrides>
2. My second idea is to add a new block to add document (like "field id="packageItems2" set="items" />". I have try to add to a text field the link to the packageitems.ftl and change some code inside packageitems.ftl but for the moment it's not working… I don't know if it's possible…
<field id="sgfwf:libelle4" set="items" >
                <control>
                        <control template="/org/alfresco/components/form/controls/workflow/packageitems.ftl" />
                </control>
2 REPLIES 2

kris-sh
Champ in-the-making
Champ in-the-making
Hello!
Do you have solution?
I have the same problem…

dranakan
Champ on-the-rise
Champ on-the-rise
Not for the moment… I think we can do it like this :

1) Add another packageItem to the worfklow (and we can set the first packageItem readable et the second writable).
2) Copy the nodeRef of the document that we dont' want to delete to a field and after each userTask, add the document if it has been deleted.