Package pro.taskana.routing.dmn.service
Class XlsxWorksheetConverter
java.lang.Object
pro.taskana.routing.dmn.service.XlsxWorksheetConverter
Converter for XLSX worksheets to DMN 1.1 decision tables.
- Author:
- Thorben Lindhauer, Holger Hagen
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected org.camunda.bpm.dmn.xlsx.DmnConversionContextprotected org.camunda.bpm.dmn.xlsx.api.SpreadsheetAdapterprotected org.camunda.bpm.dmn.xlsx.XlsxWorksheetContext -
Constructor Summary
ConstructorsConstructorDescriptionXlsxWorksheetConverter(org.camunda.bpm.dmn.xlsx.XlsxWorksheetContext worksheetContext, org.camunda.bpm.dmn.xlsx.api.SpreadsheetAdapter spreadsheetAdapter) -
Method Summary
Modifier and TypeMethodDescriptionorg.camunda.bpm.model.dmn.DmnModelInstanceconvert(StringBuilder serializedRules) protected voidconvertInputsOutputs(org.camunda.bpm.model.dmn.DmnModelInstance dmnModel, org.camunda.bpm.model.dmn.instance.DecisionTable decisionTable) protected voidconvertRule(org.camunda.bpm.model.dmn.DmnModelInstance dmnModel, org.camunda.bpm.model.dmn.instance.DecisionTable decisionTable, org.camunda.bpm.dmn.xlsx.api.SpreadsheetRow ruleRow, StringBuilder serializedRules) protected voidconvertRules(org.camunda.bpm.model.dmn.DmnModelInstance dmnModel, org.camunda.bpm.model.dmn.instance.DecisionTable decisionTable, List<org.camunda.bpm.dmn.xlsx.api.SpreadsheetRow> rulesRows, StringBuilder serializedRules) protected org.camunda.bpm.model.dmn.instance.DescriptiongenerateDescription(org.camunda.bpm.model.dmn.DmnModelInstance dmnModel, String content) <E extends org.camunda.bpm.model.dmn.instance.DmnElement>
EgenerateElement(org.camunda.bpm.model.dmn.DmnModelInstance modelInstance, Class<E> elementClass) <E extends org.camunda.bpm.model.dmn.instance.DmnElement>
EgenerateElement(org.camunda.bpm.model.dmn.DmnModelInstance modelInstance, Class<E> elementClass, String id) <E extends org.camunda.bpm.model.dmn.instance.NamedElement>
EgenerateNamedElement(org.camunda.bpm.model.dmn.DmnModelInstance modelInstance, Class<E> elementClass, String name) protected org.camunda.bpm.model.dmn.instance.TextgenerateText(org.camunda.bpm.model.dmn.DmnModelInstance dmnModel, String content) protected Stringprotected org.camunda.bpm.model.dmn.DmnModelInstanceprotected voidserializeRuleToStringBuilder(org.camunda.bpm.model.dmn.instance.Rule rule, org.camunda.bpm.dmn.xlsx.api.SpreadsheetRow ruleRow, org.camunda.bpm.model.dmn.instance.Description description, StringBuilder serializedRules) protected voidsetHitPolicy(org.camunda.bpm.model.dmn.instance.DecisionTable decisionTable)
-
Field Details
-
worksheetContext
protected org.camunda.bpm.dmn.xlsx.XlsxWorksheetContext worksheetContext -
dmnConversionContext
protected org.camunda.bpm.dmn.xlsx.DmnConversionContext dmnConversionContext -
spreadsheetAdapter
protected org.camunda.bpm.dmn.xlsx.api.SpreadsheetAdapter spreadsheetAdapter
-
-
Constructor Details
-
XlsxWorksheetConverter
public XlsxWorksheetConverter(org.camunda.bpm.dmn.xlsx.XlsxWorksheetContext worksheetContext, org.camunda.bpm.dmn.xlsx.api.SpreadsheetAdapter spreadsheetAdapter)
-
-
Method Details
-
convert
-
generateNamedElement
-
generateElement
-
generateElement
public <E extends org.camunda.bpm.model.dmn.instance.DmnElement> E generateElement(org.camunda.bpm.model.dmn.DmnModelInstance modelInstance, Class<E> elementClass) -
setHitPolicy
protected void setHitPolicy(org.camunda.bpm.model.dmn.instance.DecisionTable decisionTable) -
convertInputsOutputs
protected void convertInputsOutputs(org.camunda.bpm.model.dmn.DmnModelInstance dmnModel, org.camunda.bpm.model.dmn.instance.DecisionTable decisionTable) -
convertRules
protected void convertRules(org.camunda.bpm.model.dmn.DmnModelInstance dmnModel, org.camunda.bpm.model.dmn.instance.DecisionTable decisionTable, List<org.camunda.bpm.dmn.xlsx.api.SpreadsheetRow> rulesRows, StringBuilder serializedRules) -
convertRule
protected void convertRule(org.camunda.bpm.model.dmn.DmnModelInstance dmnModel, org.camunda.bpm.model.dmn.instance.DecisionTable decisionTable, org.camunda.bpm.dmn.xlsx.api.SpreadsheetRow ruleRow, StringBuilder serializedRules) -
serializeRuleToStringBuilder
protected void serializeRuleToStringBuilder(org.camunda.bpm.model.dmn.instance.Rule rule, org.camunda.bpm.dmn.xlsx.api.SpreadsheetRow ruleRow, org.camunda.bpm.model.dmn.instance.Description description, StringBuilder serializedRules) -
getDefaultCellContent
-
initializeEmptyDmnModel
protected org.camunda.bpm.model.dmn.DmnModelInstance initializeEmptyDmnModel() -
generateText
protected org.camunda.bpm.model.dmn.instance.Text generateText(org.camunda.bpm.model.dmn.DmnModelInstance dmnModel, String content) -
generateDescription
protected org.camunda.bpm.model.dmn.instance.Description generateDescription(org.camunda.bpm.model.dmn.DmnModelInstance dmnModel, String content)
-