Reading a file from bonita workspace throws FileNotFoundException


Good morning,

My issue is the following : I have a task with a related groovy script in which I try to get information from a File that exists in the workspace of Bonita. When I run the evaluate , it gives me "FileNotFoundException" , what's the problem?

PS: When I tried to read a file from my desktop it worked fine , but from Bonita workspace throws the exception mentioned above



Submitted by romain.bioteau on Sat, 12/12/2020 - 15:18

Can you share more details about what you are trying to do and how ?
Reading a file from the Studio workspace is not something that will exist in production.
If you need to read information from a file, you might want to use a document or store its content in variable (process or business)

Submitted by FatmaGh on Sun, 12/13/2020 - 10:31

-Get information from that file stored in my workspace

- Use that information in a groovy script as static part + and I will add some dymanic information to it

-Send That content as a mail body

Clear eough ?

No answers yet.