Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[NO-ISSUE] Adding additional DMN examples to the editor #2844

Closed

Conversation

LightGuard
Copy link
Contributor

Three new examples for the DMN Editor:

  • Flight Has Capacity
  • Insurance Pricing
  • Payroll

Three new examples for the DMN Editor:

* Flight Has Capacity
* Insurance Pricing
* Payroll

Signed-off-by: Jason Porter <[email protected]>
@LightGuard LightGuard requested a review from tiagobento as a code owner January 9, 2025 21:01
@LightGuard LightGuard requested a review from ljmotta January 9, 2025 21:01
@LightGuard LightGuard changed the title Adding additional DMN examples to the editor [NO-ISSUE] Adding additional DMN examples to the editor Jan 10, 2025
@ljmotta
Copy link
Contributor

ljmotta commented Jan 10, 2025

@LightGuard Could you please include screenshots of the added models in Storybook in the PR description?

@LightGuard
Copy link
Contributor Author

LightGuard commented Jan 10, 2025

Payroll:
Screenshot 2025-01-10 at 10 46 05

Insurance Pricing:
Screenshot 2025-01-10 at 10 45 51

Flight Has Capacity:
Screenshot 2025-01-10 at 10 45 39
I can add more about the data types and decision tables, if that's needed as well.

Copy link
Contributor

@jomarko jomarko left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for the PR.

<text>had previous incidents</text>
</inputExpression>
</input>
<output id="_4612AC80-6FB9-4329-8DA4-DEA3AE628F00" name="Output-1" />
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could we please manually remove this name="Output-1"? it is because of :

</dmn:decisionService>
<dmn:decision id="_C49CC255-F44C-4E4E-B5DD-C1F328B692D9" name="compute Payroll">
<dmn:extensionElements />
<dmn:variable id="_CDD8D60D-065A-450B-80AF-8A4094EB5D9E" name="compute Payroll" typeRef="Any" />
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is Any appropriate here?

Comment on lines +42 to +50
<dmn:itemComponent id="_4A1569B0-D18E-4C7F-BF83-CE48A1E702D0" name="street" isCollection="false">
<dmn:typeRef>string</dmn:typeRef>
</dmn:itemComponent>
<dmn:itemComponent id="_FA0C1126-BDE1-4DF1-B84F-DA655F1F5E82" name="city" isCollection="false">
<dmn:typeRef>string</dmn:typeRef>
</dmn:itemComponent>
<dmn:itemComponent id="_5ADF65AB-F8B8-4EA0-ABB5-23EC33C06C4C" name="zipCode" isCollection="false">
<dmn:typeRef>string</dmn:typeRef>
</dmn:itemComponent>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the example does not touch these fields, also, we de not demonstrate feature like constraints of data types or similar, do we need to keep them in the example?

similar question for the tEmployee:

  • firstname
  • lastname
  • personalId
  • birthDate

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I believe this builds on a tax demo that we have in some other examples, honestly not sure why that one isn't here.

Copy link
Contributor

@jomarko jomarko left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for the PR. After a private conversation, here I changes I think we need to address before we proceed with the merge LightGuard#1

Copy link
Contributor

@jomarko jomarko left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you @LightGuard

@tiagobento
Copy link
Contributor

As per private discussion, we're not adding those examples to the StoryBook right now. Thank you though @LightGuard for the effort.

@tiagobento tiagobento closed this Jan 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants