Mercurial > dive4elements > river
comparison artifacts/src/main/java/org/dive4elements/river/artifacts/datacage/Recommendations.java @ 6933:468d9ebda4ce
Datacage: Add dc:all-state-successors() to enable predicates like dc:contains(dc:all-state-successors($artifact-name, $current-state-id), 'state.winfo.calculation_mode') which recursively collects all successor state ids an check for containment.
author | Sascha L. Teichmann <teichmann@intevation.de> |
---|---|
date | Tue, 27 Aug 2013 19:14:12 +0200 |
parents | e89e5163973f |
children | 5030c46d8cb4 0a5239a1e46e |
comparison
equal
deleted
inserted
replaced
6932:b78d110135ec | 6933:468d9ebda4ce |
---|---|
140 D4EArtifact artifact, | 140 D4EArtifact artifact, |
141 Map<String, Object> parameters | 141 Map<String, Object> parameters |
142 ) { | 142 ) { |
143 parameters.put("CURRENT-STATE-ID", artifact.getCurrentStateId()); | 143 parameters.put("CURRENT-STATE-ID", artifact.getCurrentStateId()); |
144 parameters.put("ARTIFACT-ID", artifact.identifier()); | 144 parameters.put("ARTIFACT-ID", artifact.identifier()); |
145 parameters.put("ARTIFACT-NAME", artifact.getName()); | |
145 | 146 |
146 for (StateData sd: artifact.getAllData()) { | 147 for (StateData sd: artifact.getAllData()) { |
147 Object value = sd.getValue(); | 148 Object value = sd.getValue(); |
148 if (value == null) { | 149 if (value == null) { |
149 continue; | 150 continue; |