Skip to content
DataMiner DoJo

More results...

Generic selectors
Exact matches only
Search in title
Search in content
Post Type Selectors
Search in posts
Search in pages
Search in posts
Search in pages
Log in
Menu
  • Blog
  • Questions
  • Learning
    • E-learning Courses
    • Open Classroom Training
    • Certification
      • DataMiner Fundamentals
      • DataMiner Configurator
      • DataMiner Automation
      • Scripts & Connectors Developer: HTTP Basics
      • Scripts & Connectors Developer: SNMP Basics
      • Visual Overview – Level 1
      • Verify a certificate
    • Tutorials
    • Video Library
    • Books We Like
    • >> Go to DataMiner Docs
  • Expert Center
    • Solutions & Use Cases
      • Solutions
      • Use Case Library
    • Markets & Industries
      • Media production
      • Government & defense
      • Content distribution
      • Service providers
      • Partners
      • OSS/BSS
    • DataMiner Insights
      • Security
      • Integration Studio
      • System Architecture
      • DataMiner Releases & Updates
      • DataMiner Apps
    • Agile
      • Agile Webspace
      • Everything Agile
        • The Agile Manifesto
        • Best Practices
        • Retro Recipes
      • Methodologies
        • The Scrum Framework
        • Kanban
        • Extreme Programming
      • Roles
        • The Product Owner
        • The Agile Coach
        • The Quality & UX Coach (QX)
    • DataMiner DevOps Professional Program
  • Downloads
  • More
    • Feature Suggestions
    • Climb the leaderboard!
    • Swag Shop
    • Contact
      • General Inquiries
      • DataMiner DevOps Support
      • Commercial Requests
    • Global Feedback Survey
  • PARTNERS
    • All Partners
    • Technology Partners
    • Strategic Partner Program
    • Deal Registration
  • >> Go to dataminer.services

Visio: Complex condition strange behavior

Solved1.79K views8th September 2020condition show Visio
0
Jeroen Geldhof [SLC] [DevOps Enabler]5.04K 4th September 2020 0 Comments

I have following condition:

(<A>and(<B>or<C>))and((<D>and(<F>or<G>))or(<E>and(<H>or<I>)))-A|ASI Switch|PARAMETER:81|=0-B|DCM Main|1849,[Param:DCM Main,1943,*/[Property:channel]]|Regex=.*[Property:Inbound Main Multicast].*|DefaultReturnValue=False-C|DCM Main|1849,[Param:DCM Main,1943,*/[Property:channel] (*)]|Regex=.*[Property:Inbound Main Multicast].*|DefaultReturnValue=False-D|Next ASI Switch|PARAMETER:81|=0-E|Next ASI Switch|PARAMETER:81|=1-F|Next DCM Main|PARAMETER:1943,*/[Property:Next DCM Output Service Name]|=[Property:Next DCM Input Port A]|DefaultReturnValue=False-G|Next DCM Main|PARAMETER:1943,*/[Property:Next DCM Output Service Name] (*)|=[Property:Next DCM Input Port A]|DefaultReturnValue=False-H|Next DCM Backup|PARAMETER:1943,*/[Property:Next DCM Output Service Name]|=[Property:Next DCM Input Port A]|DefaultReturnValue=False-I|Next DCM Backup|PARAMETER:1943,*/[Property:Next DCM Output Service Name] (*)|=[Property:Next DCM Input Port A]|DefaultReturnValue=False

Condition D is false, and condition E is true.

(<A>and(<B>or<C>))and((<D>and(<F>))or(<E>and(<H>or<I>))) shows the object

(<A>and(<B>or<C>))and((<D>and(<G>))or(<E>and(<H>or<I>))) shows the object

((<D>and(<F>or<G>))or(<E>and(<H>or<I>))) shows the object

(<A>and(<B>or<C>))and((<D>and(<F>or<G>))or(<E>and(<H>or<I>))) does not show the object

It doesn't seem to be the conditions themselves, but the logical equation that somehow behaves strange in this specific situation.

Is there a maximum number of conditions?
Is there a way to investigate this further?

Jeroen Geldhof [SLC] [DevOps Enabler] Selected answer as best 8th September 2020

2 Answers

  • Active
  • Voted
  • Newest
  • Oldest
3
Sebastiaan Dumoulein [SLC] [DevOps Enabler]12.72K Posted 6th September 2020 4 Comments

First of all, there is no limit on the amount of conditions. You can use as many as you want.

This condition syntax is error prone so I would double check that everything is correctly configured. If no syntax issues are found, i would reduce the condition complexity until it's working as expected. Then you can gradually add more complexity to the condition. Hopefully this identifies the underlying problem.

Note that the condition is evaluated when all data is retrieved. If some data is missing, you can use the DefaultReturnValue option to provide a fallback value.

Jeroen Geldhof [SLC] [DevOps Enabler] Edited comment 8th September 2020
Toon Casteele [SLC] [DevOps Enabler] commented 7th September 2020

I would also like to add that when you’re using placeholders in your conditions, the rule of “DefaultReturnValue” will not apply to these. The option only applies to the actual condition itself. This means that all placeholders need to be resolved before DefaultReturnValue is even considered.

However, as always we have an option to ignore these placeholders as well. Setting option “AllowEmptyDynamicValues” in the “Options” shape data will allow a shape to be displayed from the very start, with the placeholders resolving to an empty value by default.

Jeroen Geldhof [SLC] [DevOps Enabler] commented 8th September 2020

Both DefaultReturnValue and AllowEmptyDynamicValues are used.

The strange thing is following:

A and (B or C) = true
(D and (F or G)) = false
(E and (H or I)) = true
(D and (F or G)) or (E and (H or I)) = true

combining these returns false, which is very strange
(A and (B or C)) and ((D and (F or G)) or (E and (H or I))) = false

On testing by removing items from the equation, I end up with following strange situation, where it returns true again
(D and (F or G)) and ((D and (F)) or (E and (H or I))) = true
(D and (F or G)) and ((D and (G)) or (E and (H or I))) = true

Sebastiaan Dumoulein [SLC] [DevOps Enabler] commented 8th September 2020

Edit:
This is indeed weird behavior. If this is the case i suggest development takes a look at it.

Jeroen Geldhof [SLC] [DevOps Enabler] commented 8th September 2020

Ok, I’ve created a task to investigate it further.

I tried following simplified test
(A and (A or A)) and ((A and (A or A)) or (A and (A or A))) = false
(A and (A or A)) and ((A and (A)) or (A and (A or A))) = true

I removed conditions B, C, D, E, F and G from the Show field

0
Jarno Lernou [SLC] [DevOps Enabler]5.00K Posted 7th September 2020 1 Comment

I see that you haven't changed the default separators ('|' and '-'). Can you double-check that none of the dynamic parts contain these characters?

You can change the default separators by using the placeholder Sep.

Jeroen Geldhof [SLC] [DevOps Enabler] Edited comment 8th September 2020
Jeroen Geldhof [SLC] [DevOps Enabler] commented 8th September 2020

I checked and both conditions F and G and these properties don’t seem to hold ‘-‘ or ‘|’ characters.
I also simplified the conditions by removing all the property placeholders and replacing it with the actual values.
The strange behavior remains.

Please login to be able to comment or post an answer.

My DevOps rank

DevOps Members get more insights on their profile page.

My user earnings

0 Dojo credits

Spend your credits in our swag shop.

0 Reputation points

Boost your reputation, climb the leaderboard.

Promo banner DataMiner DevOps Professiona Program
DataMiner Integration Studio (DIS)
Empower Katas

Recent questions

Alarm Dashboard PDF/CSV Export 1 Answer | 0 Votes
Is the Microsoft SharePoint Connector Still Usable 0 Answers | 0 Votes
Is the Microsoft SharePoint Connector Still Usable 0 Answers | 0 Votes

Question Tags

adl2099 (115) alarm (62) Alarm Console (82) alarms (100) alarm template (83) Automation (223) automation scipt (111) Automation script (167) backup (71) Cassandra (180) Connector (108) Correlation (68) Cube (150) Dashboard (194) Dashboards (188) database (83) DataMiner Cube (57) DIS (81) DMS (71) DOM (139) driver (65) DVE (55) Elastic (83) Elasticsearch (115) elements (80) Failover (104) GQI (159) HTTP (76) IDP (74) LCA (151) low code app (166) low code apps (93) lowcodeapps (75) MySQL (53) protocol (203) QAction (83) security (88) services (51) SNMP (86) SRM (337) table (54) trending (87) upgrade (62) Visio (539) Visual Overview (345)
Privacy Policy • Terms & Conditions • Contact

© 2025 Skyline Communications. All rights reserved.

DOJO Q&A widget

Can't find what you need?

? Explore the Q&A DataMiner Docs

[ Placeholder content for popup link ] WordPress Download Manager - Best Download Management Plugin