-
Task
-
Resolution: Done
-
Major
-
None
-
10
-
False
-
False
-
Undefined
-
---
-
---
-
-
2021 Week 04-06 (from Jan 25), 2021 Week 07-09 (from Feb 15), 2021 Week 10-12 (from Mar 8)
Goal of this task is to catch blockers caused by the integration of the React BoxedExpressionEditor component inside the existing DMN Editor (implemented in GWT).
For sure, several classes used in this task will be reused (e.g. jsInterop classes for loading/saving definitions).
From the React component point of view: since there is a conflict regarding the global rules defined in PFv3 vs PFv4 (look at https://app.slack.com/client/T293J2PL4/C9Q224EFL/thread/C9Q224EFL-1614271076.016500) it will be necessary to:
- Import base-no-reset.css instead of base.css
- Include missing global rules (from base.css) at the root level of BoxedExpressionEditor component, so that they will be isolated, but look&feel will be preserved.
From the DMN editor point of view: any commit will be pushed to already existing branch dmn-boxed-react-poc. Obviously there will be few limitations (before the final version):
- Right-click context menu, that it is generally blocked in the DMN editor (https://github.com/kiegroup/kie-wb-common/blob/master/kie-wb-common-stunner/kie-wb-common-stunner-client/kie-wb-common-stunner-widgets/src/main/java/org/kie/workbench/common/stunner/client/widgets/presenters/session/impl/SessionPresenterView.java#L121) has been enabled by commenting this block. For sure, another strategy will be used, like we are doing for having the context menu in the (old) decision table.
- "Back to" link is not present, but for sure it will be (in the final version).
- Introduce the usage of ids for each element (e.g. column in Relation) used by the editor
- Use enum instead of const for strings like logicType and dataType
- Changes (changing expression name) from the external world (e.g. properties panel) should be reflected in the editor
- When changing expression name, the updated value should be immediately reflected in the decision navigator
- Selected logic type should be immediately reflected in the decision navigator
- Evaluate the removal of automatic creation of LiteralExpression cell for empty context entry - ref.
https://github.com/kiegroup/kie-wb-common/blob/7a8d98411a666742b37c83c21de990246119f6a9/kie-wb-common-dmn/kie-wb-common-dmn-api/src/main/java/org/kie/workbench/common/dmn/api/definition/model/ContextEntry.java#L36
https://github.com/kiegroup/kie-wb-common/blob/97079a64d9c5b55ef1dead45e6d43c2bc77a534a/kie-wb-common-dmn/kie-wb-common-dmn-backend/src/main/java/org/kie/workbench/common/dmn/backend/definition/v1_1/ContextEntryPropertyConverter.java#L59
Maybe empty Expression is enough.
Open questions:
- Where to save "width" property? for example width of a relation column, or width of literal expression
- Can you confirm that every literal expression wrapped (as cell) in the Relation component has "text" type?
- clones
-
KOGITO-3661 Integrate boxed-expression-component inside dmn-loader and define jsInterop classes for loading/saving expressions
- Closed