I have a process A which calls process B using CallActivity. Process B is calling a SOAP service and if the SOAP service responds with error, process B ends with ErrorEndEvent. I need to access the errorCode that was sent from the SOAP service in process A. However, I am not able to access any variables from process B in process A (even not with the <activitiut> tag).
How can I access variables from the call activity process to the parent process, if the call activity process is in the error boundary?
A call activity start a sub process with its own variable scope. The parent process doesn't have access directly to the variable scope of the sub process. You can use the Activiti service api to get the variable values.