camunda-community-hub / kotlin-coworker

Zeebe Worker with Kotlin coroutines
Apache License 2.0
9 stars 7 forks source link

Add support for a nullable variables via `@Variable` #76

Open aivinog1 opened 1 year ago

aivinog1 commented 1 year ago

We can't just use:

@Coworker
suspend fun someMethod(jobClient: JobClient, job: ActivatedJob, @Variable someValue: SomeValue?)

Right now it isn't supported. To avoid NPE we need to rewrite the whole reflection part of methods calling. Could be difficult.