Invoking Operations Through Data Change Notification

Data change notifications (DCNs) can instruct Unwired Server to invoke a mobile business object (MBO) operation with a set of specified parameters. Changes to the Unwired Server cache are dependent on the operation’s specified behavior, which was defined during MBO development.

These examples show DCN without payload.

Syntax

DCNs that invoke operations require a JavaScript Object Notation (JSON) string (dcn_request) that contains information about the MBO operation:

http://unwired_server.sybase.com:unwired_server_port/onepage/servlet/UWPServlet?
&cmd=dcn
&username=userName
&password=password
&package=unwired_server_PackageName 
&dcn_request={"pkg":“TestPackage",
	"messages":[{"id":"1","mbo":"mboName","op":“operationName",
  "cols":{"operationParameters"}}]}
&dcn_filter=fully_qualified_name_of_dcn_filter

Parameters

Examples

Usage

A DCN that invokes an operation follows these rules:
  • All parameters used in the MBO operation must be included.
  • All columns used in the operation must use the MBO parameter name.
  • Any explicit value specified in the DCN request takes precedence over a personalized value. To use a personalized value in DCN processing, do not include the personalized parameter name and its value in the DCN request. The personalized value is then inferred by Unwired Server and added to the supplied bindings. Similarly, omit parameters with default values to use previously specified default values.