Commit 8264e4b5 authored by Klaus Hamberger's avatar Klaus Hamberger
Browse files

Debugged relations from attributes transformation.

git-svn-id: svn+ssh://svn.code.sf.net/p/tip-puck/code/trunk@2326 fbf60bc9-78ff-467a-80f5-d9f1d8e511fc
parent 4029f2fa
......@@ -1286,6 +1286,7 @@ public class NetUtils {
for (Individual individual : segmentation.getCurrentIndividuals()){
String relationValue = null;
roleLabel = criteria.getRoleName();
for (Attribute attribute : individual.attributes()) {
......@@ -1305,11 +1306,11 @@ public class NetUtils {
result++;
}
}
if (roleLabel==null && attribute.getLabel().equals("ROLE")) {
if (StringUtils.isEmpty(roleLabel) && attribute.getLabel().equals("ROLE")) {
roleLabel = attribute.getValue();
}
if (relationValue!=null){
if (relationValue!=null && !StringUtils.isEmpty(roleLabel)){
net.createRelationRole(model, roleLabel);
if (StringUtils.isNotBlank(eponymRoleLabel)){
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment