cancel
Showing results for 
Search instead for 
Did you mean: 

How to persist the variable

zicongwang
Champ in-the-making
Champ in-the-making
Hi all,
   I want to persist some variables into database,Does activiti provide any feature to do that
eg,
RuntimeService runtimeService = activitiRule.getRuntimeService();
Map<String, Object> variableMap = new HashMap<String, Object>();
variableMap.put("name", "Activiti");

I want to get the value of variable name and put it into mysql database,Does Activiti 5.2 provide any feature to do that such as JPA, and How to do that

Thanks in advance
1 REPLY 1

jbarrez
Star Contributor
Star Contributor
For regular variables: runtimeService.setVariables() -> all these variables will be stored in the database.

For JPA, see userguide http://activiti.org/userguide/index.html#N1140A