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

Honor rest signal template method return type

    XMLWordPrintable

Details

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

    Description

      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()

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: