Skip to content

Commit

Permalink
feat(decision-table): parse FEEL input cells as unary tests
Browse files Browse the repository at this point in the history
Closes #880
  • Loading branch information
nikku committed Jun 4, 2024
1 parent a30d616 commit 8ac0e58
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,10 @@ class TableCellEditor extends Component {
return this.getExpressionLanguage() === 'feel';
}

isUnaryTests() {
return this.isFEEL() && this._isInputCell();
}

getExpressionLanguage() {
const { businessObject } = this.props;

Expand Down Expand Up @@ -229,6 +233,7 @@ class TableCellEditor extends Component {
}
<Editor
label={ this._getLabel() }
dialect={ this.isUnaryTests() && 'unaryTests' }
className={ isScript ? 'script-editor' : '' }
ctrlForNewline={ true }
onInput={ onChange }
Expand Down
1 change: 1 addition & 0 deletions packages/dmn-js-shared/src/components/LiteralExpression.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ export default class LiteralExpression extends Component {
contentAttributes: {
'aria-label': this.props.label
},
dialect: this.props.dialect || 'expression',
container: this.node,
onChange: this.handleChange,
value: this.state.value,
Expand Down

0 comments on commit 8ac0e58

Please sign in to comment.