# Use Process variable in System Script

**URL:** https://community.ofelia.com/t/use-process-variable-in-system-script/7876
**Category:** Q&A
**Created:** [18 October 2016 07:03 UTC](https://community.ofelia.com/t/use-process-variable-in-system-script/7876 "2016-10-18T07:03:32Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![jason.hastain](https://avatars.discourse-cdn.com/v4/letter/j/e5b9ba/32.png) [@jason.hastain](https://community.ofelia.com/u/jason.hastain)
#### Post date: [18 October 2016 07:03 UTC](https://community.ofelia.com/t/use-process-variable-in-system-script/7876/1 "2016-10-18T07:03:32Z")

</div>

Hi all.

Is there a way to reference a process variable in the “Write your script here” section of a System script connector?

I would like to use a process or business data variable in bonita as an argument to the “script” we want to run.

We have a bunch of scripts to accomplish specific tasks already. I would like to capture them all into Bonita to use.

If I can pass process or business data variables to them then I can start to convert those scripts into groovy slowly over time.

thanks for the help!  
[https://drive.google.com/file/d/0B8v-PCGQlLiERW40SXhLU2trYzA/view?usp=sharing](https://drive.google.com/file/d/0B8v-PCGQlLiERW40SXhLU2trYzA/view?usp=sharing)

---

<div class="post-metadata">

### Author: ![Sean\_McP](https://dub1.discourse-cdn.com/flex013/user_avatar/community.ofelia.com/sean_mcp/32/932_2.png) [@Sean\_McP](https://community.ofelia.com/u/Sean_McP)
#### Post date: [18 October 2016 18:56 UTC](https://community.ofelia.com/t/use-process-variable-in-system-script/7876/2 "2016-10-18T18:56:31Z")

</div>

Click Switch Editor and use the script editor to return the command to execute…

_return "command + {{parameter}};_

regards  
Seán

_PS: As this reply answers your question, please mark as resolved by ticking the tick mark on the left of this reply._
