Migrating Applications From Asynchronous to Synchronous Programming Model
Siebel Mobile disconnected uses a synchronous programming model
where $.callback
and $.setReturnValue
are not required.
Previous releases of Siebel Mobile, prior to Siebel Innovation Pack 2016, used an asynchronous
programming model where business services used a $.callback
and
$.setReturnValu
for every method.
Migrating Siebel Mobile disconnected from an asynchronous to a synchronous programming model involves the following
Removing
$.callback
for all calling and called functions in the core framework (buscomp.js
,applet.js
,appmgr.js
,browsercachemgr.js
,model.js
, andview.js
).Note that metadata discovery is retained as an asynchronous call.
Removing
$.callback
from all Siebel Mobile disconnected applications.Removing
$.setReturnValue
.Returning a value instead of
$.setReturnValue
in all functions.
To assist you in migrating Siebel Mobile disconnected JavaScript code from an asynchronous to a
synchronous programming model, a migration tool (async2sync.pyc
) is provided.
For more information about the JavaScript migration tool, see About the JavaScript Migration Tool.