Skip to content

Commit

Permalink
Fixed issue #32
Browse files Browse the repository at this point in the history
  • Loading branch information
lvca committed Dec 13, 2014
1 parent df71e55 commit eb9a77e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ public void configure(OETLProcessor iProcessor, final ODocument iConfiguration,
operation = iConfiguration.field("operation");
if (operation == null)
throw new OConfigurationException("Flow transformer has not mandatory 'operation' field");
if (!operation.equalsIgnoreCase("halt") && !operation.equalsIgnoreCase("halt"))
if (!operation.equalsIgnoreCase("halt") && !operation.equalsIgnoreCase("skip"))
throw new OConfigurationException("Flow transformer has invalid 'operation' field='" + operation
+ "', while supported are: 'skip' and 'halt'");
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ public Object executeTransform(final Object input) {
if (v == null)
return null;

if (vertexClass != null)
if (vertexClass != null && !vertexClass.equals(v.getRecord().getClassName()))
v.setProperty("@class", vertexClass);
return v;
}
Expand Down

0 comments on commit eb9a77e

Please sign in to comment.