Uploaded image for project: 'Kogito'
  1. Kogito
  2. KOGITO-8428

Honor rest signal template method return type

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Done
    • Icon: Minor Minor
    • 1.33.0.Final
    • 1.32.0.Final
    • Core Engine
    • None
    • False
    • None
    • False
    • ---
    • ---

      On some situations it is useful to overwrite rest templates, for instance a spring app that uses WebFlux framework, then signal template method could look like the following:

      public Mono<$Type$Output> signal(@PathVariable("id") final String id, final @RequestBody(required = false) $signalType$ data) {

        return Mono.fromCallable(() ->

          ...

        );

      }

      but right now ProcessResourceGenerator class uses fixed output type derived from modelfqcn rather than cloned.getType()

              cnicolai@redhat.com Cristiano Nicolai (Inactive)
              jmusacchio Juan Manuel Musacchio (Inactive)
              Marian Macik Marian Macik
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: