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

kie-issues#366: Translate the Extended Services Go App to a new Java Application. #2017

Merged
merged 9 commits into from
Oct 19, 2023

Conversation

Josephblt
Copy link
Member

Fixes kie-issue#366.

This is a shallow copy of the Extended Services Go Application but using the Java Application.
Except for the System Tray support, all functionality was copied. So everything works just the same.

Deleted Docker files for running native.
Default values for environment variables.
Fixed the problem with the dist script that did not copy the jar.
Adjustments to the README.md file.
More environment variables.
Removed unneeded nodes in the pom file.
Added a missing script for win32 support (powershell script).
-Dport=${buildEnv.env.extendedServices.port}
-DkieSandboxUrl=${buildEnv.env.extendedServices.kieSandboxUrl}
-Dquarkus.platform.version=${buildEnv.env.quarkusPlatform.version}
-Dversion.org.kie.kogito=${buildEnv.env.kogitoRuntime.version}
Copy link
Contributor

Choose a reason for hiding this comment

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

could you please help me to understand, where to find a value that is passed as buildEnv.env.kogitoRuntime.version ? I do not see it in https://github.com/kiegroup/kie-tools/pull/2017/files#diff-41cf05cc30d3a4dd3016b6ff2cf1b98a6fc39accbd993ce87bac4381380f0acb

Copy link
Member Author

Choose a reason for hiding this comment

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

Copy link
Contributor

Choose a reason for hiding this comment

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

thank you @Josephblt

@Josephblt Josephblt requested a review from jomarko October 18, 2023 12:19
@tiagobento tiagobento changed the title kie-issue#366: Translate the Extended Services Go App to a new Java Application. kie-issues#366: Translate the Extended Services Go App to a new Java Application. Oct 18, 2023
@Josephblt Josephblt temporarily deployed to ci October 18, 2023 18:35 — with GitHub Actions Inactive
@Josephblt Josephblt temporarily deployed to ci October 18, 2023 18:35 — with GitHub Actions Inactive
@Josephblt Josephblt temporarily deployed to ci October 18, 2023 18:35 — with GitHub Actions Inactive
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.

@Josephblt thank you for the PR. I was able to run DMN runner using this java extended services. Also build of this module was very quick what I think is cool. The only finding I have is related to this scenario:

  • Be sure your java extended servies module is stopped. not running
  • start online-editor module
  • try to open localhost:9001, it is the online-editor homepage
  • you will get error screen as attached [1]
  • if I start java extended servies and online editor before accessing the localhost:9001 everything works fine

Maybe somehow related to defaults we set in packages/extended-services-java/env/index.js ?
Just guess, do not know.

Not sure if this will affect also scenario of running online-editor from an image

[1]
Screenshot 2023-10-19 060633

@tiagobento
Copy link
Contributor

@jomarko I think that's the same scenario you found on other errors. Webpack was upgraded and now they have this overlay screen for untreated errors. This error is expected, as we do polling for checking if Extended Services is available.

@Josephblt Josephblt requested a review from jomarko October 19, 2023 15:18
@Josephblt
Copy link
Member Author

Hello @jomarko. This error happens because every couple of seconds the editor checks for the services. This way no user interaction is needed. This happened before with the Go app as well. The difference now is the new overlay.

@tiagobento tiagobento merged commit fe4f6ef into apache:main Oct 19, 2023
8 checks passed
@Josephblt Josephblt deleted the KIE-ISSUES-ISSUE-36 branch October 19, 2023 16:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Translate the Extended Services Go App to a new Java Application.
3 participants