cancel
Showing results for 
Search instead for 
Did you mean: 

Expressions with pipelines

ryagnik
New Contributor

we have a need here in which we want to upload expressions to pipeline dynamically.

Is there any API out there which can upload expressions file dynamically on pipelines ?

Can expressions files be loaded from file system ? currently, it cant support expression while we upload expression files.

Answers will be much appreciated here…

Thanks…
Rishi

8 REPLIES 8

ryagnik
New Contributor

any response here ? awaiting for input here.

nganapathiraju
Former Employee

Please state your use case for using dynamic expression files and what it contains.

Currently you cannot refer expression files from external file systems.

The situation you will run into is while developing the pipeline, the expression functions/variables you are referring to need to be validated and unless they are available in SLDB, it will not be successful.

You can make the expression library file reference an expression but it still has to exist within SLDB.

You can try uploading as a first step before the pipeline using the expr library; to upload to SLDB from an external file system.

Hope you got it.

  1. Write expr library file to SLDB after reading from an external file system based on whatever logic
  2. use the expression on the pipeline edit properties to derive it based on some logic.

Try it out and let us know.

It wont help here if we are changing the expression on pipeline edit properties however our use case as follows -

We expect files from 200 financial entities, every one has its own rule to parse the file and it can be changed dynamically.A business user can manage the rules and change the rules, at the same time we can leverage the same set of rules when we add the new payer.

In our design, we are building the rules in the expression files but here we need some capability to add expressions dynamically on pipeline whenever business user changes the rules.

Hope it helps here…

Thanks…
Rishi

Hello

I think there is a way to do it.

If you read the pipeline using the metadata snap (snaplogic read) you will see these properties in the settings of the pipeline.

image

so this is how you would try to do it. I have not tried it but it should work logically.

  1. Upload the expression file dynamically to SLDB using File Writer.
  2. Make the reference of the expression file an expression
    or
  3. using snaplogic update, update the pipeline settings → import to point to the correct expression library you want to use.
  4. after usage, you can delete the expression library reference of the file itself.

Hope that makes sesnse.