Search code examples
tibcobusinessworks

TIBCO - BusinessWorks - Get path of the process dynamically


I am developing a process that will read and send an image in an e-mail. This image is a folder within this process.

The problem is: how do I get the path where the process is running?

Something like a 'Server.MapPath' that returns the image path in the File System.

Thanks in advance.


Solution

  • If your images exist in a folder in your BW-project you can use the 'Retrieve Resource' activity to get to the content.

    You just have to set the resourcePath with the relative Path in your project and it will output the base64 data.