on 09-02-2014 1:58 PM
Hi,
I would like to read a value in one action and pass it to another question.
The element is defined as boolean (not bound to data dictionary) in the data elements. The actions (call procedure) are in two different rule sets. In each rule set I have the element in the list of used variables in the rule set. Both use the same function. When I debug the program the export of my boolean (as Value X) looks good. But the values is not working as importing parameter for the next procedure call. I added the element in the method signature and added the parameter to the procedures.
But when I run the program it seems as if there is some additional binding necessary that I don't know where to do.
Any ideas?
Regards, Vanessa
Hi Vanessa,
you have to distinguish two types of contexts in BRF+:
So if you want to transfer the data/results from one ruleset to another within the same function the element has to be available in the context of the function.
The flow would then be:
Hope that helps
BR
Christian
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Christian,
that sounds really good and I think this is the point I don't understand.
- There is my boolean field "flag"
- I have the ruleset Convert (that takes an import parameter and fills some fields) There the field flag gets is set as export parameter.
- I have the ruleset Create (that creates based upon the values in the convert)
Here I need the value for flag.
Maybe I used the flag at to much places. Is it right that I don't need the field flag as variable in the ruleset? And I just need it in the global context and the context of my function?
Which context (level) are you talking about in the ruleset 1 and 2? Is it the global or the one from the function or some other context.
Thank you for bringing some light into the darkness... and sorry that the darkness is really dark.
Regards, Vanessa
Hi Vanessa,
so you have to do the following steps:
Now the "flag" is assigned with an value when the procedure is called
Afterwards you have the "flag" with its value from the ruleset convert available in the ruleset create
If you have used variables in your ruleset up to now, remove them as you do not need them anymore
Let's see if the darkness became a bit brighter now 🙂
BR
Christian
User | Count |
---|---|
93 | |
11 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.