Skip to content

Commit

Permalink
connector fix ConstraintDeclarationException method override (#1192)
Browse files Browse the repository at this point in the history
  • Loading branch information
simonhir authored Jan 10, 2024
1 parent d44d25f commit 671decf
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
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

0 comments on commit 671decf

Please sign in to comment.