How do I constrain the variables passed to a worker?

Michael Scott: If I have a large variable map and I’d like to reduced the scope of the variables a service task can see, I thought I could create an input variable mapping, but that just creates a new variable and adds it to the map. My use case is that there may be confidential information that I don’t want the task handler to have access to. Is it possible to only pass specific variables to a task?

Zell: You can define the variables which should be fetched by the worker, directly on the worker creation. see here.

Note: This post was generated by Slack Archivist from a conversation in the Zeebe Slack, a source of valuable discussions on Zeebe (get an invite). Someone in the Slack thought this was worth sharing!

If this post answered a question for you, hit the Like button - we use that to assess which posts to put into docs.

1 Like