[RESOLVED] Dynamic destination folder for Alfresco connector

1
0
-1

How can I make a dynamic destination folder for Alfresco connector, so that the path is not always the same?
For example, I need to make a new folder in Alfresco whenever the process is started so that the documents for the process would be saved as in tree hierarchy as in /User%20Homes/BPM/Process1, /User%20Homes/BPM/Process2 etc.

Comments

Submitted by vivek.paranthaman on Thu, 02/11/2016 - 13:01

Hi,

In available community version, you can upload document to specified path, however, you can check this repo
the implementation of the connector, and make necessary changes.

Alternatively, you have to build your process with iteration, where you can append a value in process variable.. multi-instantiation will give you an option to store the incrementing value in to it.

If you can give an idea how you have implemented your process, may be I can take a look into it... And assist you further.

Regards,
Vivek

Submitted by tresnjica93_1 on Thu, 02/11/2016 - 13:53

Hi Vivek,

Thanks for your help. It's not actually necessary for the path to be named Process 1, 2, 3, so I won't really need any loop for incrementation. I just gave that as an example. Most probably the path would have an exact name of a measure taken, since I am building a process for submitting a corrective or preventive measures for the management system of my university.

I had in mind something like defining the name of the measure in the first step of the process which would be saved in a simple text variable, and then append that name to destination folder in the connector. Since the measureName variable would be initiated every time when starting the process and saved as such, that could be an effective way to make automatic changes of the destination path. Is it possible to do something like this?

Regards,
Jovana

Submitted by vivek.paranthaman on Thu, 02/11/2016 - 16:21

Hi,

If the value in your "measure" variable changes dynamically for every-time, then, you can do that absolutely.

Regards,
Vivek

Submitted by tresnjica93_1 on Fri, 02/12/2016 - 12:04

It worked. Thanks Vivek.

Regards,
Jovana

1 answer

1
0
-1

Hi,

In available community version, you can upload document to specified path, however, you can check this repo
the implementation of the connector, and make necessary changes.

Alternatively, you have to build your process with iteration, where you can append a value in process variable.. multi-instantiation will give you an option to store the incrementing value in to it.

If you can give an idea how you have implemented your process, may be I can take a look into it... And assist you further.

Regards,
Vivek

PS: if solved, you can mark it as Answered, will assist few more..

Notifications