public class MarshalVariablesProcessEventListener
extends org.kie.api.event.process.DefaultProcessEventListener
Process event listener to be used with plugable variable strategies to make sure that upon process instance completion
process variables will be persisted in back end store. This is important as by default this was not required
because process instance (that contains all variables) was removed from db any way and thus there was no need to trigger marshaling.
In case of external data store (e.g. data base over JPA or CMIS) this must be invoked otherwise data in external
system might not be up to date with processing outcome from process instance.