# How to update process variable from event handler

**URL:** <https://community.ofelia.com/t/how-to-update-process-variable-from-event-handler/5134>\
**Category:** Q&A\
**Created:** [11 September 2014 13:00 UTC](https://community.ofelia.com/t/how-to-update-process-variable-from-event-handler/5134 "2014-09-11T13:00:07Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![kamalhasan](https://avatars.discourse-cdn.com/v4/letter/k/e19b73/32.png) [@kamalhasan](https://community.ofelia.com/u/kamalhasan)\
**Post date:** [11 September 2014 13:00 UTC](https://community.ofelia.com/t/how-to-update-process-variable-from-event-handler/5134/1 "2014-09-11T13:00:07Z")

</div>

There is api to update process variable like: processApi.updateProcessDataInstance(“x”,processInstanceID, 100) but within isInterested(SEvent event) method of event handler i am not getting the reference of processApi. Within groovy script i can easily write like: apiAccessor.getProcessAPI().updateProcessDataInstance(“x”, processInstanceId, 100) but within event handler class i am not getting the reference of processApi.  
Bonita BPM version is 6.3.2  
java version “1.6.0\_23”  
tomcat & windows 7
