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

connector fix ConstraintDeclarationException method override #1192

Merged
merged 1 commit into from
Jan 10, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
package de.muenchen.oss.digiwf.connector.core.application.port.in;

import jakarta.validation.constraints.NotBlank;

public interface CreateIncidentInPort {

/**
Expand All @@ -9,6 +11,6 @@ public interface CreateIncidentInPort {
* @param messageName name of the message that should be answered
* @param messageContent optional content of message for provide detailed information
*/
void createIncident(String processInstanceId, String messageName, String messageContent);
void createIncident(@NotBlank String processInstanceId, @NotBlank String messageName, String messageContent);

}
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
package de.muenchen.oss.digiwf.connector.core.application.port.in;

import jakarta.validation.Valid;
import jakarta.validation.constraints.NotBlank;
import lombok.*;

import java.util.Map;

public interface ExecuteTaskInPort {

void executeTask(ExecuteTaskCommand command);
void executeTask(@Valid ExecuteTaskCommand command);

@Data
@ToString
Expand Down