Related content ( path file ?)

cancel
Showing results for 
Search instead for 
Did you mean: 
abdeljali_hmi
Active Member

Related content ( path file ?)

hello 
i am new in activiti and i have a question : 

i need to know the path of related content file ?

and how i can add related content from JavaDelegate ?

i need help !!!!

4 Replies
cjose
Senior Member II

Re: Related content ( path file ?)

You should be able to use the RelatedContentService APIs to do that.

If you are using Alfresco Process Services (Enterprise version), I may have some examples in my repo...one of them is activiti-examples/activiti-copy-attachments-from-parent-process at master · cijujoseph/activiti-exam... 

abdeljali_hmi
Active Member

Re: Related content ( path file ?)

Thanks brother,

but i use the activiti community edition if you have another solution ?

i start with POST request in activiti REST it is the true way !

cjose
Senior Member II

Re: Related content ( path file ?)

You can use the REST API, that's fine. You can also the relatedContentService, which is available in community edition V6 as well - Activiti/RelatedContentService.java at 6.x · Activiti/Activiti · GitHub  

Also if you want to get the actual path from the storeId, you can use this class - Activiti/PathConverter.java at 6.x · Activiti/Activiti · GitHub 

Ciju

abdeljali_hmi
Active Member

Re: Related content  ( path file ?)

thank you very much.

but i need an example with RelatedContentService if some one have it ?