Skip to first unread message

arman_...@icloud.com

unread,
Sep 4, 2018, 1:25:59 AM9/4/18
to Fujitsu RunMyProcess Developer Community, bjo...@berendsen.com.au
Hi RMP Team,

I have several file upload widgets in one of my processes whose contents I need to be accessible by others both within the process and out of it (i.e. I'm creating URL's and using the file ID's of the uploaded files).

I'm aware I can use FreeMarker from (https://docs.runmyprocess.com/Developer_Guide/Process/Freemarker_Examples/File_Visibility) and set these files to be 'PUBLIC' so anyone with the URL can access them, but I would prefer that only those with a registered RMP account be able to view these files.

Can someone please advise the specific code to change this setting? Based on the fact that I can create files within the process (HTML doc's) and have these visible to anyone in the process I suspect that there is a setting somewhere I can toggle to enable the feature I need.

Any help would be appreciated.


Regards,

Ben Jones

Gunjan Rajgure

unread,
Sep 4, 2018, 2:44:13 PM9/4/18
to Fujitsu RunMyProcess Developer Community, bjo...@berendsen.com.au
Hello Ben,

You can check access right document for Uploaded files below. 


Also you can create one lane in which you can add users who wants to give access to view URL of uploaded file.
By using has_right() and is_user_in_lane() functions, you can check the access right of user. If user is in that lane, then only able to access the file url.


Please don't hesitate to contact us for any other query should you have.


Thanks & Regards,
Gunjan Rajgure
Fujitsu RunMyProcess Support


--
Fujitsu - RunMyProcess
---
You received this message because you are subscribed to the Google Groups "Fujitsu RunMyProcess Developer Community" 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 https://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/0ee5606e-5631-4a6d-9615-b7747d61cd4d%40runmyprocess.com.
For more options, visit https://groups.google.com/a/runmyprocess.com/d/optout.


--
Thanks & Regards
Gunjan Rajgure
Fujitsu - RunMyProcess Support

arman_...@icloud.com

unread,
Sep 4, 2018, 7:15:18 PM9/4/18
to Fujitsu RunMyProcess Developer Community, bjo...@berendsen.com.au
Hi Gunjan,

Thanks for the assistance but unfortunately it hasn't solved my problem. Apologies, I forgot to mention that file uploaded using the widget needs to be accessed from a dashboard (or similiar) using the URL of the file by any registered RMP user, regardless if the process is ongoing or complete.

Unfortunately adding more users to the lane is not possible as it will add tasks to other baskets who should not have them.

A possible solution is to read the content of the file then create a new file with its content, however my experiments with this cause the process to throw errors. Any chance you have something similiar or an example I can work with?

My priority is PDF's as I need our users to upload confidential documents to be shared with anyone with access to the dashboard.

arman_...@icloud.com

unread,
Sep 4, 2018, 8:28:57 PM9/4/18
to Fujitsu RunMyProcess Developer Community, bjo...@berendsen.com.au, arman_...@icloud.com
Update:
I've been able to get it to recreate files but the issue of other users within the process being able to access the file via the URL remains.

For clarity: I want a user to upload a file and have that file accessible to anyone with the URL and a registered RMP account (i.e. not accessible by URL only) both during process execution and when the process is complete. Similiar to the access rights a file created from a markdown template has.

If this cannot be done then I'm open to alternatives. Is it possible to store on a Google drive and restrict access that way?

Any assistance would be appreciated.

Pankaj Kumar

unread,
Sep 5, 2018, 7:30:33 AM9/5/18
to Fujitsu RunMyProcess Developer Community, bjo...@berendsen.com.au, arman_...@icloud.com
Hi Ben,

To achieve this, please create a lane with "everybody" checkbox checked, also kindly create project in which access right tab, please configure this lane in "USER" access  level.

Kindly create a Web-Interface to upload a file however do not configure any process in the web-interface. This Web-interface will be used to upload the file.

Once any file will be uploaded using this web_interface, it will not be accessible" Publicly", only to all the user in the account.

INSIDE A PROJECT OUTSIDE PROCESS/ PRIVATERead/Write/DeleteRead/Write/DeleteRead/Write/DeleteReadNoneReadNone
Thank you,
Pankaj Kumar
Fujitsu RunMyProcess Support


--
Fujitsu - RunMyProcess
---
You received this message because you are subscribed to the Google Groups "Fujitsu RunMyProcess Developer Community" 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 https://groups.google.com/a/runmyprocess.com/group/supportforum/.

arman_...@icloud.com

unread,
Sep 5, 2018, 7:43:04 AM9/5/18
to Fujitsu RunMyProcess Developer Community
Hi Pankaj,

I’m not sure I understand.

To clarify:
1. Create a new project.
2. Create an interface in the new project. The interface is to contain the file upload widget.
3. Set The access rights for the new web interface in USER to a lane set for EVERYBODY.
4. In the original interface (from the original project) create a link to the newly created interface in step 2. Have the user go to this link and then upload the file through the new window.

Is that correct? If not could you please let me know where is is wrong and if possible provide a few screen shots?

arman_...@icloud.com

unread,
Sep 5, 2018, 8:09:31 AM9/5/18
to Fujitsu RunMyProcess Developer Community
Also, how can I get the file ID back to the original interface / process so I can add the IDs to a measure for use in a report?

Pankaj Kumar

unread,
Sep 5, 2018, 8:17:37 AM9/5/18
to Fujitsu RunMyProcess Developer Community
Hi Ben,

Please find the screen-print of the configuration, uploaded file is accessible to all user in the account but not publicly available.

Thank you,
Pankaj Kumar
Fujitsu RunMyProcess Support

On Wed, Sep 5, 2018 at 5:39 PM arman_chaser via Fujitsu RunMyProcess Developer Community <suppor...@runmyprocess.com> wrote:
Also, how can I get the file ID back to the original interface / process so I can add the IDs to a measure for use in a report?

--
Fujitsu - RunMyProcess
---
You received this message because you are subscribed to the Google Groups "Fujitsu RunMyProcess Developer Community" 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 https://groups.google.com/a/runmyprocess.com/group/supportforum/.
1.PNG
3.png
2.PNG

arman_...@icloud.com

unread,
Sep 5, 2018, 8:22:56 AM9/5/18
to Fujitsu RunMyProcess Developer Community
Thanks Pankaj.

How can I get the id of the uploaded file in the new interface and pass it to another process / interface so it can be used in a report?

Would using a sub process solve this issue?

Gunjan Rajgure

unread,
Sep 5, 2018, 10:50:54 AM9/5/18
to Fujitsu RunMyProcess Developer Community
Hello Ben,

You can get id of uploaded file in the instance of process. It is in the form of array, starting index with zero.
See attachment for more clarification.

Please do feel free to contact us for any further query.


Thanks & Regards,
Gunjan Rajgure
Fujitsu RunMyProcess Support

--
Fujitsu - RunMyProcess
---
You received this message because you are subscribed to the Google Groups "Fujitsu RunMyProcess Developer Community" 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 https://groups.google.com/a/runmyprocess.com/group/supportforum/.
Upload_file_id_url.JPG

arman_...@icloud.com

unread,
Sep 5, 2018, 4:00:06 PM9/5/18
to Fujitsu RunMyProcess Developer Community
Message has been deleted

arman_...@icloud.com

unread,
Sep 5, 2018, 6:59:49 PM9/5/18
to Fujitsu RunMyProcess Developer Community
Hi Gunjan,

Whilst this didn't answer my question, I've managed to find another solution to it.

Thank you and Pankaj for your assistance.

Regards,

Ben Jones

arman_...@icloud.com

unread,
Sep 19, 2018, 1:30:03 AM9/19/18
to Fujitsu RunMyProcess Developer Community, bjo...@berendsen.com.au, arman_...@icloud.com
Hi Pankaj,

After some usage this has created a very annoying problem. I now have several hundred tasks showing up in the basket 'My Requests > Opened' for each time the user opens the interface in the new window.

Can you please advise how I can prevent this from occurring?


Regards,

Ben Jones

img1.jpg

Pankaj Kumar

unread,
Sep 19, 2018, 5:32:30 PM9/19/18
to Fujitsu RunMyProcess Developer Community, bjo...@berendsen.com.au, arman_...@icloud.com
Hi Ben,

It seems whenever a file is uploaded, a task is being assigned to you, kindly share your process implementation screenprint.
In my understanding, you do not need any manual task, please try to change the process with no activity, and see if the change still work as per your requirement.

Thank you,
Pankaj Kumar
Fujitsu RunMyProcess Support

--
Fujitsu - RunMyProcess
---
You received this message because you are subscribed to the Google Groups "Fujitsu RunMyProcess Developer Community" 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 https://groups.google.com/a/runmyprocess.com/group/supportforum/.

arman_...@icloud.com

unread,
Sep 23, 2018, 7:30:19 PM9/23/18
to Fujitsu RunMyProcess Developer Community, bjo...@berendsen.com.au
Hi Pankaj,

I've resolved the issue by changing to launchable interface and utilising an Abort with pre-launch script.

Thanks for your assistance.


Regards,

Ben Jones

Reply all
Reply to author
Forward
0 new messages