quarkus-zeebe
quarkus-zeebe copied to clipboard
Empty @JobWorker annotation doesn't use method name as job type on Kotlin method
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 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.
New issue to add and check the Kotlin support: https://github.com/quarkiverse/quarkus-zeebe/issues/278
Log message fix: https://github.com/quarkiverse/quarkus-zeebe/pull/279