Ask Your Question

Using Runtime Resources

asked 2018-10-05 15:12:17 -0500

KRT gravatar image

updated 2018-10-05 15:12:31 -0500

I am using the below to use the runtime resources

${runtime:loadResource(<file name>, <restricted: true | false>)}

Is there any way to be pipeline specific? The point here is, we have plenty of resource files created for different pipeline and messing up with others.

or something like is possible?

${runtime:loadResource("<file path>/<file name>", <restricted: true | false>)}

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2018-10-05 15:41:52 -0500

iamontheinet gravatar image

updated 2018-10-05 15:49:49 -0500


Yes, you can specify file path like so ${runtime:loadResource("runtime_resource_1/hello.txt", false)} where file path is relative to $SDC_RESOURCES folder.

The other option is to use pipeline ID as your folder name (or file name) and then use expression like so ${runtime:loadResource(str:concat(pipeline:id(),"/hello.txt"), false)} -- Note that this option requires a bit more work in that you'll need to either 1) Manually copy-paste pipeline IDs to create folders/files or 2) use REST API to retrieve pipeline IDs and create folders/files programmatically.

Cheers, Dash

edit flag offensive delete link more
Login/Signup to Answer

Question Tools

1 follower


Asked: 2018-10-05 15:12:17 -0500

Seen: 388 times

Last updated: Oct 05 '18