quarkus-zeebe icon indicating copy to clipboard operation
quarkus-zeebe copied to clipboard

Empty @JobWorker annotation doesn't use method name as job type on Kotlin method

Open falko opened this issue 2 years ago • 1 comments

package com.example.camunda.poc

import io.quarkiverse.zeebe.JobWorker
import io.quarkiverse.zeebe.Variable
import jakarta.enterprise.context.ApplicationScoped

@ApplicationScoped
class MyJobWorker {

    @JobWorker
    fun myMethod(@Variable a: String, @Variable b: String): Map<String, String> {
        print("a: $a")
        return mapOf("foo" to "bar")
    }

}

The log does not show a job type

2023-08-02 12:36:03,990 INFO  [io.qua.zee.run.ZeebeRecorder] (Quarkus Main Thread) Starting worker com.example.camunda.poc.MyJobWorker.myMethod for job type

falko avatar Aug 02 '23 10:08 falko

@falko currently I have not implemented any support for Kotlin. It would great to have the support for Kotlin. PR's are welcome The extension quarkus-scheduler could serve as an example.

andrejpetras avatar Aug 02 '23 11:08 andrejpetras

New issue to add and check the Kotlin support: https://github.com/quarkiverse/quarkus-zeebe/issues/278

andrejpetras avatar May 20 '24 07:05 andrejpetras

Log message fix: https://github.com/quarkiverse/quarkus-zeebe/pull/279

andrejpetras avatar May 20 '24 09:05 andrejpetras