-
Task
-
Resolution: Done
-
Blocker
-
None
-
None
-
False
-
False
-
Undefined
-
---
-
---
-
-
2020 Week 40-42 (from Sep 28), 2020 Week 43-45 (from Okt 19), 2020 Week 46-48 (from Nov 9), 2020 Week 49-51 (from Nov 30), 2020 Week 52-03 (from Dec 21), 2021 Week 04-06 (from Jan 25), 2021 Week 07-09 (from Feb 15), 2021 Week 10-12 (from Mar 8)
On 'Kogito', we don't have a real WID parser. Historically, William wrote a toy implementation to demo resource content API and we never invested the time to properly write one.
Now this affects the execution of real v7 projects. Some blocker issues that a real parser would fix:
- If you put an empty wid or malformed wid, breaks BPMN editor
- if you put some types that are not supported, breaks BPMN editor (we have an example with 4 wids types that breaks BPMN for some reason)
The goal of this task is to create a proper wid parser implementation
Acceptance Criteria
- WID parser should parse all supported parameters:
- name
- displayName
- icon
- parameters
- results
- category
- documentation
- WID parser shouldn’t fail on unknown/unsupported/engine only parameters see KOGITO-4372 for more details.
- All supported by engine MVEL types should be converted to Java types during WID loading:
- BooleanDataType -> Boolean
- EnumDataType -> java.lang.Object
- FloatDataType -> Float
- IntegerDataType -> Integer
- ListDataType -> java.util.List
- ObjectDataType -> java.lang.Object
- StringDataType -> String
- UndefinedDataType -> java.lang.Object
- Users' custom WID files can be placed under global directory as well as any package under src/main/resources directory (but same with bpmn file).
- It should be possible to add an icon path inside of the global directory and set up an icon in base 64 format.
- is duplicated by
-
KOGITO-3529 Object data type on WiDs are not supported
- Closed
-
KOGITO-3530 A WID with some type of parameters, breaks the editor
- Closed
- is related to
-
JBPM-9424 Stunner does not read all parameters defined in WID
- Resolved