Description of problem: When using DocumentMarshallingStrategy the storage directory for the documents is hardcoded https://github.com/droolsjbpm/jbpm/blob/6.2.x/jbpm-document/src/main/java/org/jbpm/document/service/impl/DocumentStorageServiceImpl.java#L42-L45 Please externalize this storage. i.e. via system property Version-Release number of selected component (if applicable): BPMS 6.1 How reproducible: always Steps to Reproduce: 1. Run bpm in location where user 2. 3. Actual results: it's not possible to change location of document storage Expected results: it's possible to change the location of document storage Additional info: A customer is running JBoss as a service under such directory where he doesn't have full access to the .docs dir, hence bpm is unable to write in here.. directories for git, maven repo are configurable, this one should be too.
Created attachment 1037964 [details] Specifying storage path on a DocumentMarshallingStrategy
From now it will be possible to specify what is the path where the docs are going to be stored by adding a string parameter to specify the full path on the kie-deployment-descriptor.xml. If there is no parameter, by default, it will take the .docs folder. Commit (master): https://github.com/droolsjbpm/jbpm/commit/e7f5bc0abc3972c7bfab2aff0749358c8f2f3f7c
I can confirm that it works as intended. Verified on 6.2.0.ER2.