File Upload Widget Loses Files

497 views
Skip to first unread message

michael...@zodiac.com

unread,
Dec 2, 2013, 10:52:06 PM12/2/13
to suppor...@runmyprocess.com
Hello -

I am experiencing a strange behavior with the File Upload widget. Files are consistently not displayed when a task is called again after a loopback event. What is really strange is that I can see all files for the widget in the Parameters tab; I just can't explain why all of them don't appear in the File Upload widget.

I can repeat these steps: user submits a form that contains a File Upload widget. In this case, the user uploads one file. A validator then rejects the form and the process is sent back to the original user. The user opens the form (using the same WI and File Upload widget, but a different screen), uploads a second file and submits the form. The validator should see both uploaded files but only sees the second uploaded file even though both files are shown in the Process Parameters.

Is there something strange with File Upload widgets and loopback events?

Please help; I've tried everything I can possibly imagine to get it to work.

Michael

Dimitri MELCHIOR Pro

unread,
Dec 3, 2013, 9:02:31 AM12/3/13
to RunMyProcess Support Forum
Hi Michael,

Files viewable into the File Upload widget do not only depend on the variable but on the Web Interface Instance. Concretely, the behavior happens either when your Task is in a subprocess or when the App Instance (= Web interface instance) has been deleted.

To solve your problem, you must execute the following FreeMarker code as input parameters of your Manual Task box (just write foo as the variable label)

attach_file(list_of_file,uploaded_file_widget_id): allow you to add files to a given widget upload file (define by its identifier) for current process instance. It must be used in a Manual Task input or output variable. List of files is an array of json structure : [{"id":id of file,"name":name of file},....]

Best Regards.

--

Dimitri MELCHIOR

PreSales Consultant

     

Fujitsu RunMyProcess user? Please add a review on GoogleApps Marketplace

Afin de contribuer au respect de l'environnement, merci de n'imprimer ce message qu'en cas de nécessité.
Be environmentally friendly: do not print this email unless it is entirely necessary.



Michael

--
Fujitsu - RunMyProcess
---
You received this message because you are subscribed to the Google Groups "RunMyProcess Support Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email to supportforum...@runmyprocess.com.
To post to this group, send email to suppor...@runmyprocess.com.
Visit this group at http://groups.google.com/a/runmyprocess.com/group/supportforum/.
To view this discussion on the web visit https://groups.google.com/a/runmyprocess.com/d/msgid/supportforum/e02d3b7b-824e-4a08-988a-2dcf07e26e67%40runmyprocess.com.
For more options, visit https://groups.google.com/a/runmyprocess.com/groups/opt_out.

Wagner, Michael

unread,
Dec 3, 2013, 11:54:40 AM12/3/13
to suppor...@runmyprocess.com
Hello Dimitri -

I am not sure I understand the problem (how is a web interface instance defined?).  However, I attempted your solution, but received the same result.

This is how the file upload widget is defined:

Inline image 1

And this is how my subprocess manual task is defined:

Inline image 2

And this is the data in rmp_attachments:

Inline image 3

And this is what the user sees:

Inline image 4

Thank you for any help.

Michael




You received this message because you are subscribed to a topic in the Google Groups "RunMyProcess Support Forum" group.
To unsubscribe from this topic, visit https://groups.google.com/a/runmyprocess.com/d/topic/supportforum/4T7idaRiKpg/unsubscribe.
To unsubscribe from this group and all its topics, send an email to supportforum...@runmyprocess.com.

To post to this group, send email to suppor...@runmyprocess.com.
Visit this group at http://groups.google.com/a/runmyprocess.com/group/supportforum/.



--

MICHAEL WAGNER
PLM Systems Engineer
Zodiac Pool Systems, Inc.
2620 Commerce Way, Vista, CA 92081
michael...@zodiac.com
Ph 760-599-9600 x3087
Cell 760-473-8785

image.png
image.png
image.png
image.png

Dimitri MELCHIOR Pro

unread,
Dec 3, 2013, 12:01:58 PM12/3/13
to RunMyProcess Support Forum
Hi Michael,

You are on the way (I noticed it's about a subprocess so different Manual Task Instance).

I updated input value to : ${attach_file(rmp_attachments,"id_attachments")}

Could you relaunch the process instance 1 step forward please?

Best regards.

--

Dimitri MELCHIOR

PreSales Consultant

     

Fujitsu RunMyProcess user? Please add a review on GoogleApps Marketplace

Afin de contribuer au respect de l'environnement, merci de n'imprimer ce message qu'en cas de nécessité.
Be environmentally friendly: do not print this email unless it is entirely necessary.


image.png
image.png
image.png
image.png

Wagner, Michael

unread,
Dec 3, 2013, 12:14:24 PM12/3/13
to suppor...@runmyprocess.com
Hello Dimitri!

Yay!  That worked!  Thank you!

I am still curious though why it worked.  Or why it needs that statement to work.  If the widget's variable name is "rmp_attachments" and that variable shows an array of 2 in the Computed Parameters, why wouldn't both elements of the array appear in the widget?  What am I missing in my understanding?

Thank you for any enlightenment.

Michael



image.png
image.png
image.png
image.png

Dimitri MELCHIOR Pro

unread,
Dec 4, 2013, 4:54:12 AM12/4/13
to RunMyProcess Support Forum
ok.

Actually, RunMyProcess Approval Applications are composed of 2 main resources : 1 Process + 1 Web interface.

When you fill up a form and Submit, there are 2 instances : 1 Process Instance + 1 Web Interface instance.

Both are synchronized together. I mean, when a process instance reaches a Manual task box, the web interface instance are updated thanks to the process instance. The reverse happens when you Approve that task.

For some technical reasons, this state is not fully true for Uploaded files. That's why you need to attach that file with the function.

Best regards.

--

Dimitri MELCHIOR

PreSales Consultant

     

Fujitsu RunMyProcess user? Please add a review on GoogleApps Marketplace

Afin de contribuer au respect de l'environnement, merci de n'imprimer ce message qu'en cas de nécessité.
Be environmentally friendly: do not print this email unless it is entirely necessary.


image.png
image.png
image.png
image.png
Reply all
Reply to author
Forward
0 new messages