Ask Your Question
1

Using Runtime Resources

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

KRT gravatar image

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

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
2

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

iamontheinet gravatar image

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

Hi!

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

Stats

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

Seen: 32 times

Last updated: Oct 05