documentation icon indicating copy to clipboard operation
documentation copied to clipboard

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

Open suiz0 opened this issue 2 years ago • 0 comments

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

suiz0 avatar Jul 27 '23 22:07 suiz0