abhijithumbe commented on code in PR #7243:
URL: https://github.com/apache/incubator-kie/pull/7243#discussion_r4410839059


##########
kogito-codegen-modules/kogito-codegen-processes/src/main/java/org/kie/kogito/codegen/process/ProcessResourceGenerator.java:
##########
@@ -357,7 +358,12 @@ protected void 
generateSignalsEndpoints(TemplatedGenerator.Builder templateBuild
                                         .orElseThrow(() -> new 
RuntimeException("signalInstanceDeclaration doesn't have body"));
 
                                 if (signalType == null) {
-                                    signalInstanceBody.findAll(NameExpr.class, 
nameExpr -> "data".equals(nameExpr.getNameAsString())).forEach(name -> 
name.replace(new NullLiteralExpr()));
+                                    signalInstanceBody.findAll(

Review Comment:
   @martinweiler Yes, that's correct. When a static signal has no data output 
mapping, the generator removes the payload parameter and passes null to 
signalProcessInstance(). I've updated ProcessResourceGenerator to remove the 
method-level OpenAPI @RequestBody annotation  



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to