[JBoss JIRA] (DROOLS-3303) [DMN Designer] Context: Default can be any expression type
by Michael Anstis (Jira)
Michael Anstis created DROOLS-3303:
--------------------------------------
Summary: [DMN Designer] Context: Default can be any expression type
Key: DROOLS-3303
URL: https://issues.jboss.org/browse/DROOLS-3303
Project: Drools
Issue Type: Enhancement
Components: DMN Editor
Affects Versions: 7.14.0.Final
Reporter: Michael Anstis
Assignee: Michael Anstis
Attachments: Qclt6jQn.dmn, Screenshot from 2018-11-09 08-16-34.png
The "default" box can be any type of expression, specially decision tables and nested contexts.
Furthermore the "default" box on contexts is optional. We must provide a way for it to be removed. When support for _any_ type of expression we'll be able to have a {{null}} value for the expression so this should fix itself.
--
This message was sent by Atlassian Jira
(v7.12.1#712002)
7 years, 6 months
[JBoss JIRA] (DROOLS-3302) [DMN Designer] The `defaultOutputValue` and the `outputValue` are being persisted when the value is empty in the UI
by Michael Anstis (Jira)
Michael Anstis created DROOLS-3302:
--------------------------------------
Summary: [DMN Designer] The `defaultOutputValue` and the `outputValue` are being persisted when the value is empty in the UI
Key: DROOLS-3302
URL: https://issues.jboss.org/browse/DROOLS-3302
Project: Drools
Issue Type: Bug
Components: DMN Editor
Reporter: Guilherme Carreiro
Assignee: Matteo Mortari
Attachments: diagram.png, dtable.png, no-outputs.png
When the user persists the following diagram:
!diagram.png|thumbnail!
..with the following Decision Table:
!dtable.png|thumbnail!
..select the "Can drink beer?" header, and set no output:
!no-outputs.png|thumbnail!
..the persisted value will be something like this:
{quote}
<dmn:output id="_E9E45B42-9506-4D66-BAAF-44B161590B43" name="output-1" typeRef="string">
<dmn:outputValues id="_F02DC5E5-ECCE-4B3A-87A8-9CDC74A7F81A">
<dmn:text></dmn:text>
</dmn:outputValues>
<dmn:defaultOutputEntry id="_A7CFCB22-3D05-4CDB-925B-D4FD52F3D018" typeRef="string">
<dmn:text></dmn:text>
</dmn:defaultOutputEntry>
</dmn:output>
{quote}
..and the expected behaviour is to not have the tags `dmn:outputValues` and `dmn:defaultOutputEntry` when the value for them is empty, like this:
{quote}
<dmn:output id="_E9E45B42-9506-4D66-BAAF-44B161590B43" name="output-1" typeRef="string">
</dmn:output>
{quote}
--
This message was sent by Atlassian Jira
(v7.12.1#712002)
7 years, 6 months
[JBoss JIRA] (DROOLS-3301) [DMN Designer] The `defaultOutputValue` is being persisted as an `outputValue`
by Michael Anstis (Jira)
Michael Anstis created DROOLS-3301:
--------------------------------------
Summary: [DMN Designer] The `defaultOutputValue` is being persisted as an `outputValue`
Key: DROOLS-3301
URL: https://issues.jboss.org/browse/DROOLS-3301
Project: Drools
Issue Type: Bug
Components: DMN Editor
Reporter: Guilherme Carreiro
Assignee: Michael Anstis
Fix For: 7.14.0.Final
Attachments: diagram.png, dtable.png
When the user persists the following diagram:
!diagram.png|thumbnail!
..with the following Decision Table:
!dtable.png|thumbnail!
.. select the "Can drink beer?" header, set the default value as {{false}} and the file:
{quote}
<dmn:outputValues id="_A117F7DC-508C-4132-8F5F-8F8F2B0B489F">
<dmn:text>false</dmn:text>
</dmn:outputValues>
<dmn:defaultOutputEntry id="_A4881AD1-7EDC-4B4D-AC00-078626795BA7" typeRef="string">
<dmn:text></dmn:text>
</dmn:defaultOutputEntry>
{quote}
..and the expected behaviour is to persist the value {{false}} in the {{defaultOutputEntry}}.
--
This message was sent by Atlassian Jira
(v7.12.1#712002)
7 years, 6 months
[JBoss JIRA] (DROOLS-3299) [DMN Designer] Decision table output data type is not stored if decision table is generated according to input data
by Michael Anstis (Jira)
Michael Anstis created DROOLS-3299:
--------------------------------------
Summary: [DMN Designer] Decision table output data type is not stored if decision table is generated according to input data
Key: DROOLS-3299
URL: https://issues.jboss.org/browse/DROOLS-3299
Project: Drools
Issue Type: Bug
Components: DMN Editor
Affects Versions: 7.14.0.Final
Reporter: Jozef Marko
Assignee: Michael Anstis
Fix For: 7.15.0.Final
Attachments: auto.dmn
The decision table output column data type is not stored, if the decision table was generated according to some input data.
An example of such table is attached [^auto.dmn] . This table was created in steps below:
- Create new DMN diagram
- Add an Input Data node : *applicant*
- Add a Decision node: *applicant score*
- Connect them
- Define new data type: *tApplicant*.
-- lang:string (Constraints: "c", "java")
-- open source: boolean
- Set *applicant* node data type as *tApplicant*
- Set *applicant score* node data type as *number*
- Open expression editor for *applicant score* node
- Set its top level expression as Decision Table
- Save and download DMN model
- It will be like the attached
{code:xml}
<dmn:output id="_E6C7E5E6-45C5-4FC2-A37B-69806046893F" name="output-1" typeRef="string">
<dmn:outputValues id="_B473BAB4-521D-4FD9-88BC-C28CD497F03A">
<dmn:text></dmn:text>
</dmn:outputValues>
<dmn:defaultOutputEntry id="_85BF133E-380C-4F0E-9E2A-0C5C6493F6B4" typeRef="string">
<dmn:text></dmn:text>
</dmn:defaultOutputEntry>
</dmn:output>
{code}
--
This message was sent by Atlassian Jira
(v7.12.1#712002)
7 years, 6 months
[JBoss JIRA] (DROOLS-3298) [DMN Editor] InformationItem's "Name" is always the same as the containing node
by Michael Anstis (Jira)
Michael Anstis created DROOLS-3298:
--------------------------------------
Summary: [DMN Editor] InformationItem's "Name" is always the same as the containing node
Key: DROOLS-3298
URL: https://issues.jboss.org/browse/DROOLS-3298
Project: Drools
Issue Type: Enhancement
Components: DMN Editor
Reporter: Michael Anstis
Assignee: Guilherme Carreiro
Whilst an {{InformationItem}} Node has a "Name" its value is always the same as the containing Node's "Name" (for {{InputData}}, {{Decision}} and {{BusinessKnowledgeModel}}). {{ContextEntry}}'s "Name" are not the same as outer most node's "Name" (as a {{ContextEntry}} is contained within a {{Context}} and not directly in a node itself).
It is proposed that this synchronization should be handled in the "Stunner to (org.kie) DMN model" marshalling. Therefore we need to remove the "Name" {{@FormField}} from {{InformationItem}}.
[~tari_manga] [~tirelli] Please confirm.
--
This message was sent by Atlassian Jira
(v7.12.1#712002)
7 years, 6 months
[JBoss JIRA] (DROOLS-3297) [DMN Designer] Information Item name is empty by default
by Michael Anstis (Jira)
Michael Anstis created DROOLS-3297:
--------------------------------------
Summary: [DMN Designer] Information Item name is empty by default
Key: DROOLS-3297
URL: https://issues.jboss.org/browse/DROOLS-3297
Project: Drools
Issue Type: Bug
Components: DMN Editor
Affects Versions: 7.14.0.Final
Reporter: Jozef Marko
Assignee: Guilherme Carreiro
The properties of decision has two sections with *Name* property. One general *Decision Name* and one *Information Item Name*.
The second *Information Item Name* reflects in <variable/> tag of the backing xml file. Its value important for the runtime.
I think we should solve this issue doing two actions:
- Make *Information Item Name* readonly
- Set *Information Item Name* automatically according to *Decision Name*
--
This message was sent by Atlassian Jira
(v7.12.1#712002)
7 years, 6 months
[JBoss JIRA] (DROOLS-3296) [DMN Designer] `inputData` and `variable` must have the same name value
by Michael Anstis (Jira)
Michael Anstis created DROOLS-3296:
--------------------------------------
Summary: [DMN Designer] `inputData` and `variable` must have the same name value
Key: DROOLS-3296
URL: https://issues.jboss.org/browse/DROOLS-3296
Project: Drools
Issue Type: Bug
Components: DMN Editor
Reporter: Guilherme Carreiro
Assignee: Guilherme Carreiro
Attachments: diagram.png, dtable.png
When the user persists the following diagram:
!diagram.png|thumbnail!
..with the following Decision Table:
!dtable.png|thumbnail!
..the {{inputData}} and {{variable}} tags don't have the same {{name}} value in the attribute {{name}}, see:
{quote}<dmn:inputData id="_67412B2F-A661-48C6-971C-6E184A519592" name="Country">
<dmn:variable id="_8F4476AB-1BEB-4FDB-8192-73BB0A520236" name="" typeRef="string"></dmn:variable>{quote}
The expected behaviour is this:
{quote}<dmn:inputData id="_67412B2F-A661-48C6-971C-6E184A519592" name="Country">
<dmn:variable id="_8F4476AB-1BEB-4FDB-8192-73BB0A520236" name="Country" typeRef="string"></dmn:variable>{quote}
--
This message was sent by Atlassian Jira
(v7.12.1#712002)
7 years, 6 months
[JBoss JIRA] (DROOLS-3295) [DMN Designer] Remove some properties from the Properties Panel
by Michael Anstis (Jira)
Michael Anstis created DROOLS-3295:
--------------------------------------
Summary: [DMN Designer] Remove some properties from the Properties Panel
Key: DROOLS-3295
URL: https://issues.jboss.org/browse/DROOLS-3295
Project: Drools
Issue Type: Enhancement
Components: DMN Editor
Reporter: Guilherme Carreiro
Assignee: Guilherme Carreiro
Remove the properties highlighted in red from the Properties Panel:
I) When an input node is selected
!input-selected.png|thumbnail!
II) When a decision table header output is selected
!decision-table-output-header-selected.png|thumbnail!
--
This message was sent by Atlassian Jira
(v7.12.1#712002)
7 years, 6 months