Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
falko opened this issue Aug 2, 2023 · 3 comments

Comments

@falko
Copy link

falko commented Aug 2, 2023

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
@andrejpetras
Copy link
Member

@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
Copy link
Member

New issue to add and check the Kotlin support: #278

@andrejpetras
Copy link
Member

Log message fix: #279

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants