Welcome Guest! Log in
×

Notice

The forum is in read only mode.
Stambia versions 2.x, 3.x, S17, S18, S19 and S20 are reaching End of Support January, 15th, 2024. Please consider upgrading to the supported Semarchy xDI versions. See Global Policy Support and the Semarchy Documentation.

The Stambia User Community is moving to Semarchy! All the applicable resources have already been moved or are currently being moved to their new location. Read more…

Topic-icon Question Condition on a DirectBind Link

More
05 Feb 2016 12:07 #1 by Afaf ABOUTABIT
Condition on a DirectBind Link was created by Afaf ABOUTABIT
Hello,

I'm using an SQL Operation to select some records. For each record I need to do a test in order to know whether to execute an action or not
For that I set a condition to the DirectBind Link as follows :





But action "ExecuteDelivery" is executed anyway even if the condition I set is not verified.
Can anybody please tell me what is wrong about my settings ?

Thank you :)
Attachments:
More
09 Feb 2016 14:30 #2 by Cyril Dussud
Replied by Cyril Dussud on topic Condition on a DirectBind Link
Hello,

Why not filtering the rows directly in your SQL Query, with a WHERE clause for example ?
This would optimize the data flow and simplify the process.

Otherwise, to use the bind variables on a bind link, you have to use the following rhino syntax
%b(rhino){<yourExpressionhere>}b(rhino)%

E.g.
%b(rhino){":{CUS_ID}:"=="1"}b(rhino)%
More
12 Feb 2016 16:23 #3 by Afaf ABOUTABIT
Replied by Afaf ABOUTABIT on topic Condition on a DirectBind Link
In fact, I don't want to filter the data. I want to do two tests on two Direct Bind links coming from the select sql operation. The condition I used in my question is just a simplified condition of what I need.

Now it's working thank you, i just needed to use the rhino syntax :)