Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/main' into incubator-kie-issues#…
Browse files Browse the repository at this point in the history
…1497
  • Loading branch information
Gabriele-Cardosi committed Oct 8, 2024
2 parents d4824d7 + 626bbed commit 38ff992
Showing 1 changed file with 2 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,7 @@

public class CodegenNodeInstanceFactoryRegistry extends NodeInstanceFactoryRegistry {

@Override
protected NodeInstanceFactory get(Class<?> clazz) {
if (SubProcessNode.class == clazz) {
return new DefaultNodeInstanceFactory(SubProcessNode.class, LambdaSubProcessNodeInstance::new);
}
return super.get(clazz);
public CodegenNodeInstanceFactoryRegistry() {
register(SubProcessNode.class, new DefaultNodeInstanceFactory(SubProcessNode.class, LambdaSubProcessNodeInstance::new));
}
}

0 comments on commit 38ff992

Please sign in to comment.