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

[incubator-kie-issues#1596] Adding Business Calendar Example #2031

Closed
wants to merge 7 commits into from

Conversation

Abhitocode
Copy link

@Abhitocode Abhitocode commented Oct 31, 2024

Closes: apache/incubator-kie-issues#1596

Add an example ensuring business calendar functionality to kogito-quarkus-examples.
The example should include a simple process that uses a business calendar. The example should contain a good README with clear step by step instructions, and has to incorporate all supporting resources required. The priority would be having this example for Quarkus.

Note: PR still in progress, files needs to be updated.

@Abhitocode Abhitocode marked this pull request as draft October 31, 2024 14:04
@gitgabrio
Copy link
Contributor

gitgabrio commented Oct 31, 2024

Hi @Abhitocode Thanks for the PR!

Some comments:

  1. please declare the newly added business-calendar-example module to parent pom
  2. please add a pom.xml to this new module
  3. please add some integration tests - if this example is using something already tested in kogito-runtimes, you may use the same approach, even if behind a rest invocation
  4. is this correct -> business.cal.timezone= system default timezone.. ?

@Abhitocode Abhitocode changed the title Adding Business Calendar Example [incubator-kie-issues#1596] Adding Business Calendar Example Oct 31, 2024
@kie-ci3
Copy link
Contributor

kie-ci3 commented Nov 4, 2024

PR job #5 was: UNSTABLE
Possible explanation: This should be test failures

Reproducer

build-chain build full_downstream -f 'https://raw.githubusercontent.com/${AUTHOR:apache}/incubator-kie-kogito-pipelines/${BRANCH:main}/.ci/buildchain-config-pr-cdb.yaml' -o 'bc' -p apache/incubator-kie-kogito-examples -u #2031 --skipParallelCheckout

NOTE: To install the build-chain tool, please refer to https://github.com/kiegroup/github-action-build-chain#local-execution

Please look here: https://ci-builds.apache.org/job/KIE/job/kogito/job/main/job/pullrequest_jobs/job/kogito-examples-pr/job/PR-2031/5/display/redirect

Test results:

  • PASSED: 391
  • FAILED: 4

Those are the test failures:

org.kie.kogito.examples.OrdersProcessIT.testOrderProcessWithError Process instance with id 7a6449f6-7784-445c-b8d4-a2d0e58a1842 failed becuase of Process instance with id 7a6449f6-7784-445c-b8d4-a2d0e58a1842 failed becuase of [demo.orders:7a6449f6-7784-445c-b8d4-a2d0e58a1842 - Dump order:[uuid=_0617D7DF-047A-4EC4-85E7-E201D640F4F5]] -- Cannot invoke "String.toUpperCase()" because "" is null
org.kie.kogito.examples.OrdersRestIT.testOrdersWithErrorRest 1 expectation failed.
JSON path [0].id doesn't match.
Expected: is "57e0a65a-6b46-4be2-a618-4722b2cf531c"
Actual: null
org.kie.kogito.examples.demo.OrdersProcessIT.testOrderProcessWithError Process instance with id bae56bf0-7a4d-4602-a8a5-44c6b1905afd failed becuase of Process instance with id bae56bf0-7a4d-4602-a8a5-44c6b1905afd failed becuase of [demo.orders:bae56bf0-7a4d-4602-a8a5-44c6b1905afd - Dump order:[uuid=_0617D7DF-047A-4EC4-85E7-E201D640F4F5]] -- Cannot invoke "String.toUpperCase()" because "approver" is null
org.kie.kogito.examples.demo.OrdersRestIT.testOrdersWithErrorRest 1 expectation failed.
JSON path [0].id doesn't match.
Expected: is "f698f2ae-0910-4b29-9473-4d3a9f6027a3"
Actual: null

business.start.hour=0
business.holiday.date.format=yyyy-MM-dd
business.days.per.week =7
business.cal.timezone= system default timezone..
Copy link
Contributor

Choose a reason for hiding this comment

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

@Abhitocode I guess this property should be commented on, right?

Copy link
Author

Choose a reason for hiding this comment

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

@yesamer Yes, you're right, missed on it, will update in the reopened pr #2036

@Abhitocode Abhitocode closed this Nov 5, 2024
@Abhitocode Abhitocode deleted the Business-Calendar-Example branch November 5, 2024 16:25
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