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

[ Java documentation issue ] How to customize your Activity Type is faulty #2240

Open
suiz0 opened this issue Jul 27, 2023 · 0 comments
Open

Comments

@suiz0
Copy link

suiz0 commented Jul 27, 2023

Faulty Doc

What is the issue?
According to the example in the documentation ActivityInterface namePrefix and ActivityMethod name should work together but that's not the case

How can we reproduce the issue?
Define a simple Activity definition

@ActivityInterface(namePrefix = "Test_")
public interface HelloWorldActivities {
    @ActivityMethod(name = "abc")
    String composeGreeting(String name);

    String sendGreeting(String input);
}

What is the expected behavior?

According to the docs both activity types should have included the namePrefix value. Ex:
Test_sendGreeting
Test_abc

But that's not the case for the first method (composeGreeting) with the ActivityMethod (name...) annotation.

Additional context

With the ``ActivityMethod (name...)``` annotation:

with-activity-method

Without the ``ActivityMethod (name...)``` annotation:

without-activity-method

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

No branches or pull requests

1 participant