Skip to content

Commit

Permalink
Merge branch 'KnowledgeContainers' into ISOLA2016
Browse files Browse the repository at this point in the history
  • Loading branch information
vladamatena committed Apr 15, 2016
2 parents 25f0ee8 + da98d63 commit 39cc0a4
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -123,9 +123,13 @@ public void commitChanges() throws KnowledgeCommitException, KnowledgeAccessExce
private ChangeSet createChangeSet(Map<Field, KnowledgePath> fieldKnowledgePaths, Object trackedInstance) throws RoleClassException {
ChangeSet result = new ChangeSet();

for (Entry<Field, KnowledgePath> fieldAndValue : fieldKnowledgePaths.entrySet()) {
for (Entry<Field, KnowledgePath> fieldAndValue : fieldKnowledgePaths.entrySet()) {
Field field = fieldAndValue.getKey();
KnowledgePath knowledgePath = fieldAndValue.getValue();
if (field.getName().equals("id")) {
continue;
}

try {
result.setValue(knowledgePath, field.get(trackedInstance));
} catch (IllegalArgumentException | IllegalAccessException e) {
Expand Down

0 comments on commit 39cc0a4

Please sign in to comment.