cancel
Showing results for 
Search instead for 
Did you mean: 

How to attach file in the start of a process?

arak1
Champ in-the-making
Champ in-the-making
Hi,

I need attach a gantt chart to the begining of a process (in the "Start event"), but, in the form property, I not find a type "upload file" ¿This exist? or ¿I need create this type?. If I need program this type ¿How do I do?.

Thanks for reply.
5 REPLIES 5

pmsevestre
Champ in-the-making
Champ in-the-making
Some ideas:

1. Save your file in a separate place using a "blob store" service and pass the URL as a parameter to the submitStartFormData method. You can then use listeners and/or a a system task to create the attachment.

2. Instead of passing initial data in the start form, model you process so there is an initial human task that plays the role of the initial form. In this scenario you'd have a process instance and task ids available, so you can create one of the createAttachment() methods.

Hope this helps.

jbarrez
Star Contributor
Star Contributor
In Alfresco, we don't store the file itself in the process,b but rather a reference to the unique id within the Alfresco repository

so is it reommended to make a mysql table in which i put the id of the process and the id of the file so  i can attach the file to a process ? 

the table is " act_wo_related_content "

arak1
Champ in-the-making
Champ in-the-making
I understand.

Thanks.