Suppose I have a MobileFirst Adapter implementation like this;
var count = 0;
function doStuff() {
}
Is the count
value the same throughout the MobileFirst server (and other client apps)? Or are they maintained per client (i.e safe to use)?
Variables defined in an adapter are not available in/shareable with other adapters.
If you'd like to share this variable, what you can do is send the data to another adapter via an action called "adapter mashup". This is explained in the following tutorial: Advanced adapter usage and mashup. This is not ideal for all cases, so make sure it fits yours.