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#1723] Allow dot character in metadata attributes #2828

Merged
merged 5 commits into from
Jan 13, 2025

Conversation

Abhitocode
Copy link
Contributor

@Abhitocode Abhitocode commented Dec 23, 2024

As a result of the work in apache/incubator-kie-kogito-runtimes#3740, the jbpm.enable.multi.con flag needs to be defines as process metadata attribute. However, the process designer does not allow the dot (.) character in the name of metadata attributes.

In order for users to define this process metadata attribute in the designer, it needs to be renamed in using only allowed characters.

Closes: apache/incubator-kie-issues#1723

@Abhitocode Abhitocode marked this pull request as ready for review December 23, 2024 15:12
@Abhitocode Abhitocode marked this pull request as draft December 23, 2024 15:12
@jomarko jomarko changed the title [Incubator kie issues#1723] Allow dot character in metadata attributes [kie-issues#1723] Allow dot character in metadata attributes Jan 2, 2025
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 changes @Abhitocode . Just one question from me inline.

@@ -36,6 +36,7 @@
public class StringUtils {

public static final String ALPHA_NUM_REGEXP = "^[a-zA-Z0-9\\-\\_]*$";
public static final String ALPHA_NUM_UNDERSCORE_DOT_REGEXP = "^[a-zA-Z0-9\\-\\_\\.]*$";
Copy link
Contributor

Choose a reason for hiding this comment

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

Maybe we should reflect also \\- in the constant name?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thank you for the suggestion @jomarko , yes it makes sense. I'll update that.

@jomarko
Copy link
Contributor

jomarko commented Jan 6, 2025

@Abhitocode thank you for pushed updates. Please let us know once the PR is done and ready for a review. Then we should convert it from a draft PR to regular PR to run all CI checks.

@yesamer
Copy link
Contributor

yesamer commented Jan 10, 2025

@Abhitocode is this ready to be reviewed, please?

@Abhitocode
Copy link
Contributor Author

Hi @yesamer @jomarko, apologies for the delay in reply as I was travelling and away from system. PR is ready but to note when I tried to test the same I had issues with building the editor, I have followed the steps, while pnpm bootstrap is successful but fails due to dependency issues when mvn clean gwt:run is run. Also tried building with .vsix approach. Not sure where Im missing. Since its a straight forward minor change I think we could merge it. Any suggestions from your side would be helpful.

@Abhitocode Abhitocode marked this pull request as ready for review January 10, 2025 08:56
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.

I can confirm I was able to use dot in metadata name
image

Steps I used to build and run editor:

  • start devbox shell
  • export NODE_OPTIONS=--max_old_space_size=4096
  • pnpm bootstrap -F @kie-tools/online-editor...
  • pnpm -F @kie-tools/online-editor... build:dev
  • pnpm -F @kie-tools/online-editor start

@yesamer
Copy link
Contributor

yesamer commented Jan 10, 2025

@Abhitocode Thank you, no worries. Please contact me in private to tackle together the issues you're facing in your local

@Abhitocode
Copy link
Contributor Author

@jomarko Thank you for the confirmation and the steps : )

@yesamer yesamer merged commit caaa4de into apache:main Jan 13, 2025
17 checks passed
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.

Rename jbpm.enable.multi.con process metadata
3 participants