RPC HELP BROKER XWBLIB

From VistApedia
Jump to: navigation, search

RPC Broker Help Home

$$BROKER^XWBLIB

Use this function in the M code called by an RPC to determine if the current process is being executed by the RPC Broker.

Format

   $$BROKER^XWBLIB

Input

   (none)	

Output

   Return Value 1 if the current process is being executed by the Broker; 0 if not.

Example

   IF $$BROKER^XWBLIB DO
   . ; broker-specific code