Replies: 1 comment
-
I made a PR on java-sdk that would allow beans and deserializers to be added to an @WorkerTask #234 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I wrote some workers using the java-sdk @WorkerTask annotation. To make the task aware for spring boot beans I had to hack together a subclass of WorkflowExecutor and expose an addBean() method on the AnnotatedWorkerExecutor. Likewise when I wanted to add custom Jackson deserializers to the ObjectMapper I had to make copies of AnnotatedWorkerExector and AnnotatedWorker to be able to register the deserializers on the private ObjectMapper within AnnotatedWorker.
Anyone know if there is a better way to do this?
Beta Was this translation helpful? Give feedback.
All reactions