Thank you Maciej for the response. I don't think I've explained my problem well. Let me provide more details below.
We are currently using the runtime manager api to run processes in jBPM 6.2 using Spring to autowire the runtimeManager object. However, we're having trouble understanding how we can restore the I/O mapping variables and global variables in our process once we restart the jBoss server.
As an example, in the evaluation bpmn file that involves the user krisv, the HR, and the PM, the variables 'reason' and 'performance' are passed from the user krisv to both the HR and the PM. Now suppose we are using a web service to complete each of these user tasks. Right after the web service call for krisv, we have 'reason' with value 'Yearly performance evaluation' and 'performance' with value 'exceeding'.
Now the jBOSS server containing the our deployed jBPM application restarts. After restart, we send a web service call to the HR to check the previous values of 'performance' (ie: check for validation), but this value seems not to be persisted in the application (ie. has the value 'null').
So is there an API in jBPM 6.2 that we can use to restore the global and local variables (I/O mapping variables) to values prior to the server restart?
1. We are not using KIE workbench console. We are directly deploying the jBPM application through Eclipse.
2. We are loading the entity manager factory, JtaTransactionManager, runtimeEnvironment, runtimeManager through Spring autowiring.
I alse see that these local variables are persisted in the table VariableInstanceLog, but not sure what API in jBPM 6.2 we can use to restore those variable values.