Hi everyone,
I have a CSV file that has the following content "This,is,a,test". I want to able to access the content of the file from an expression rule. How can I do this?
Thanks in advance
Discussion posts and replies are publicly visible
I think you might be able to utilize a plugin called "Text File Reader", which contains an expression function called "ReadTextFromFile".
Hi Mike, thanks a lot for your help.
I have another question: I defined a rule input called "document" and the type of this rule input is "Document" inside a expression rule called "EX_example". How can I attribute the value of the rule input when calling the expression rule?
"rule!EX_example(document: ?)"
It completely depends on where you're calling the expression rule from. For example if you're in a process model where you have a PV containing the document as its value, named pv!myDocument for example, you would call "rule!EX_example(document: pv!myDocument)"
In this case, I'm using the rule input called "document" inside an integration
so have you tried calling the rule on ri!document from within the integration? I'm less familiar with Integrations so I can't guarantee whether you're able to use expression rules in the area you're trying.