use of org.kie.workbench.common.dmn.webapp.kogito.marshaller.js.model.dmn12.JSITArtifact in project kie-wb-common by kiegroup.
the class NodeEntriesFactory method getAssociations.
private List<JSITAssociation> getAssociations(final JSITDefinitions definitions) {
final List<JSITAssociation> associations = new ArrayList<>();
final List<JSITArtifact> artifacts = definitions.getArtifact();
forEach(artifacts, artifact -> {
if (JSITAssociation.instanceOf(artifact)) {
final JSITAssociation association = Js.uncheckedCast(artifact);
associations.add(association);
}
});
return associations;
}
use of org.kie.workbench.common.dmn.webapp.kogito.marshaller.js.model.dmn12.JSITArtifact in project kie-wb-common by kiegroup.
the class NodeEntriesFactory method getTextAnnotations.
private List<JSITTextAnnotation> getTextAnnotations(final JSITDefinitions definitions) {
final List<JSITTextAnnotation> textAnnotations = new ArrayList<>();
final List<JSITArtifact> artifacts = definitions.getArtifact();
forEach(artifacts, artifact -> {
if (JSITTextAnnotation.instanceOf(artifact)) {
final JSITTextAnnotation annotation = Js.uncheckedCast(artifact);
textAnnotations.add(annotation);
}
});
return textAnnotations;
}
Aggregations