# Option like DelegateVariableMapping

**URL:** <https://forum.flowable.org/t/option-like-delegatevariablemapping/5296>\
**Category:** Flowable Engine\
**Created:** [January 24, 2020, 6:57am UTC](https://forum.flowable.org/t/option-like-delegatevariablemapping/5296 "2020-01-24T06:57:54Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![venugopalm59](https://avatars.discourse-cdn.com/v4/letter/v/e5b9ba/32.png) [@venugopalm59](https://forum.flowable.org/u/venugopalm59)\
**Post date:** [January 24, 2020, 6:57am UTC](https://forum.flowable.org/t/option-like-delegatevariablemapping/5296/1 "2020-01-24T06:57:54Z")

</div>

Hi,

Is there an option similar to org.camunda.bpm.engine.delegate.DelegateVariableMapping, which is available in Camunda?

I am trying to generate bpmn xml programatically as we have our own process designer. I would like to keep the xml simple by delegating the variable mapping between processes by mentioning a Delegate class.

Thanks and Regards  
Venugopal

---

<div class="post-metadata">

**Author:** ![jonathanlevis](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.flowable.org/jonathanlevis/32/1348_2.png) [@jonathanlevis](https://forum.flowable.org/u/jonathanlevis)\
**Post date:** [January 24, 2020, 4:10pm UTC](https://forum.flowable.org/t/option-like-delegatevariablemapping/5296/2 "2020-01-24T16:10:53Z")

</div>

You should be able to get the variables you need from the DelegateExecution object’s super, the VariableScope wether you want specific ones or a collection of them by name, etc.

[https://flowable.com/open-source/docs/javadocs/org/flowable/engine/delegate/DelegateExecution.html](https://flowable.com/open-source/docs/javadocs/org/flowable/engine/delegate/DelegateExecution.html)  
[https://flowable.com/open-source/docs/variable-javadocs/org/flowable/variable/api/delegate/VariableScope.html](https://flowable.com/open-source/docs/variable-javadocs/org/flowable/variable/api/delegate/VariableScope.html)
