Skip to content

Commit

Permalink
more code cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
tracyhires committed Aug 28, 2023
1 parent 72da365 commit b171f49
Showing 1 changed file with 0 additions and 25 deletions.
25 changes: 0 additions & 25 deletions src/main/scala/org/camunda/dmn/parser/DmnParser.scala
Original file line number Diff line number Diff line change
Expand Up @@ -344,31 +344,6 @@ class DmnParser(
}
}

private def createReferenceForImportedBkm(importedModel: ImportedModel, reference: ModelReference)(
implicit
ctx: ParsingContext): ImportedBusinessKnowledgeModel = {
ImportedBusinessKnowledgeModel(dmnRepository, reference.namespace, reference.id, Some(importedModel.name))
// ImportedBusinessKnowledgeModel(() => {
// // todo: extract loading, try to move to evaluation phase
// dmnRepository.getBusinessKnowledgeModel(
// namespace = reference.namespace,
// bkmId = reference.id
// ) match {
// case Right(bkm) => EmbeddedBusinessKnowledgeModel(
// id = reference.id,
// // todo: replace the hack to add the namespace to the name
// name = s"${importedModel.name}.${bkm.name}",
// logic = bkm.logic,
// parameters = bkm.parameters,
// requiredBkms = bkm.requiredBkms
// )
// case Left(failure) =>
// ctx.failures += Failure(failure.message)
// EmbeddedBusinessKnowledgeModel(reference.id, "", EmptyLogic, Iterable.empty, Iterable.empty)
// }
// })
}

private def parseBusinessKnowledgeModel(bkm: BusinessKnowledgeModel)(
implicit
ctx: ParsingContext): ParsedBusinessKnowledgeModelReference = {
Expand Down

0 comments on commit b171f49

Please sign in to comment.