How to inject external properties in a groovy script for scriptTask

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-09-2014 05:58 AM
Hi,
I'm trying to parameterize some workflows injecting properties from an external properties file.
What is the best way to do that? Any suggestion?
Thanks in advance,
M@rco
I'm trying to parameterize some workflows injecting properties from an external properties file.
What is the best way to do that? Any suggestion?
Thanks in advance,
M@rco
Labels:
- Labels:
-
Archive
4 REPLIES 4

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-09-2014 05:59 AM
Sorry, I forgot to mention that I need them available in a groovy script for scriptTask.
M@rco
M@rco
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-10-2014 02:17 AM
Hi,
I would say that you can add properties as a spring bean to the process engine.
http://www.activiti.org/userguide/#N10A60
Regards
Martin
I would say that you can add properties as a spring bean to the process engine.
http://www.activiti.org/userguide/#N10A60
Regards
Martin

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-10-2014 04:03 AM
Hi,
Thank you for the answer.
Using <code><util
roperties></code> and loading properties from a file works fine, even though it requires a little bit more verbosity (the bean name is required for each property).
Indeed, it looks like the properties are not injected into the activiti context with <code>PropertyPlaceholderConfigurer</code> or <code>context
roperty-placeholder</code>.
Regards,
M@rco
Thank you for the answer.
Using <code><util

Indeed, it looks like the properties are not injected into the activiti context with <code>PropertyPlaceholderConfigurer</code> or <code>context

Regards,
M@rco
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-22-2019 07:26 PM
Hi Can you please post an example, how you could inject properties into processEngine using <utilroperties>. Thank you
