SOROLLS - Ziehen
Posted: 13 Feb 2025, 19:51
Für das Leben von mir kann ich keine einfache String -ArrayList aus meinem generischen HashMap: HashMap < /p>
Ich habe viel kompliziertere Strukturen wie die Liste geschafft. von Objekten, die verschachtelt sind und andere Sammlungen besitzen, da sie beim Abrufen als LinkedHasMap behandelt werden. /p>
$nonNull: SomeObject(mappings != null)
$mappings: HashMap() from $nonNull.getMappings()
$test: ArrayList() from $mappings["role"]
< /code>
Ich habe auch viele andere Iterationen ausprobiert. < /p>
$nonNull: SomeObject(mappings != null)
$mappings: HashMap() from $nonNull.getMappings()
$test: ArrayList(size > 0) from (ArrayList) $mappings["role"]
< /code>
$nonNull: SomeObject(mappings != null)
$mappings: HashMap() from $nonNull.getMappings()
$test: List(size > 0) from (List) $mappings["role"]
< /code>
$nonNull: SomeObject(mappings != null)
$mappings: HashMap() from $nonNull.getMappings()
$test: List() from $mappings["role"]
< /code>
$nonNull: SomeObject(mappings != null)
$mappings: HashMap() from $nonNull.getMappings()
$test: List() from $mappings.get("role")
< /code>
$nonNull: SomeObject(mappings != null)
$mappings: HashMap() from $nonNull.getMappings()
$test: ArrayList() from $mappings.get("role")
< /code>
$nonNull: SomeObject(mappings != null)
$mappings: HashMap() from $nonNull.getMappings()
ArrayList($test : size > 0) from $mappings.get("role")
< /code>
Why is it so difficult to pull a simple ArrayList when I can pull incredibly nested structures from this hashmap.
I have ensured I have the proper imports in the .drl file.
I am using mvn dependency Drools 7.58
Ich habe viel kompliziertere Strukturen wie die Liste geschafft. von Objekten, die verschachtelt sind und andere Sammlungen besitzen, da sie beim Abrufen als LinkedHasMap behandelt werden. /p>
$nonNull: SomeObject(mappings != null)
$mappings: HashMap() from $nonNull.getMappings()
$test: ArrayList() from $mappings["role"]
< /code>
Ich habe auch viele andere Iterationen ausprobiert. < /p>
$nonNull: SomeObject(mappings != null)
$mappings: HashMap() from $nonNull.getMappings()
$test: ArrayList(size > 0) from (ArrayList) $mappings["role"]
< /code>
$nonNull: SomeObject(mappings != null)
$mappings: HashMap() from $nonNull.getMappings()
$test: List(size > 0) from (List) $mappings["role"]
< /code>
$nonNull: SomeObject(mappings != null)
$mappings: HashMap() from $nonNull.getMappings()
$test: List() from $mappings["role"]
< /code>
$nonNull: SomeObject(mappings != null)
$mappings: HashMap() from $nonNull.getMappings()
$test: List() from $mappings.get("role")
< /code>
$nonNull: SomeObject(mappings != null)
$mappings: HashMap() from $nonNull.getMappings()
$test: ArrayList() from $mappings.get("role")
< /code>
$nonNull: SomeObject(mappings != null)
$mappings: HashMap() from $nonNull.getMappings()
ArrayList($test : size > 0) from $mappings.get("role")
< /code>
Why is it so difficult to pull a simple ArrayList when I can pull incredibly nested structures from this hashmap.
I have ensured I have the proper imports in the .drl file.
I am using mvn dependency Drools 7.58