# Custom SQL - getDbSqlSession() is undefined?

**URL:** <https://forum.flowable.org/t/custom-sql-getdbsqlsession-is-undefined/963>\
**Category:** Flowable Engine\
**Created:** [September 14, 2017, 5:06am UTC](https://forum.flowable.org/t/custom-sql-getdbsqlsession-is-undefined/963 "2017-09-14T05:06:39Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![goldthelocks](https://avatars.discourse-cdn.com/v4/letter/g/9de0a6/32.png) [@goldthelocks](https://forum.flowable.org/u/goldthelocks)\
**Post date:** [September 14, 2017, 5:06am UTC](https://forum.flowable.org/t/custom-sql-getdbsqlsession-is-undefined/963/1 "2017-09-14T05:06:39Z")

</div>

Hello there,

I am currently following this tutorial:  
[http://www.flowable.org/docs/userguide/index.html#\_xml\_based\_mapped\_statements](http://www.flowable.org/docs/userguide/index.html#_xml_based_mapped_statements)

…but for some reason, getDbSqlSession() is undefined:  
 ![Screenshot at 2017-09-14 12-58-27](https://cdck-file-uploads-canada1.s3.dualstack.ca-central-1.amazonaws.com/flex035/uploads/flowable/original/1X/eaf078ec0de543bb73b68bbfd7ad5a2af820157f.png)

So I tried to check what else are available but seems there is none applicable to what I’m trying to achieve.

Any help is appreciated. Thank you.

---

<div class="post-metadata">

**Author:** ![martin.grofcik](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.flowable.org/martin.grofcik/32/71_2.png) [@martin.grofcik](https://forum.flowable.org/u/martin.grofcik)\
**Post date:** [September 14, 2017, 5:32am UTC](https://forum.flowable.org/t/custom-sql-getdbsqlsession-is-undefined/963/2 "2017-09-14T05:32:00Z")

</div>

Hi,

Please check following jUnit test in the flowable source  
org.activiti.standalone.cfg.CustomMybatisXMLMapperTest

That’s a working example how it works.

Regards  
Martin
