Example In the event handler for the Commit event of the TContextorControl, developers can check whether or not the user was previously defined, and is now undefined or null. In this case, developers would want to do any necessary processing, and then halt. Figure : IsUserCleared Method—Example Procedure TForm1.CommitHandler(Sender: TObject) begin with do CCOWRPCBroker1 if and then WasUserDefined IsUserCleared begin // do any necessary processing before halting halt; end; end; IsUserContextPending Method Declaration function IsUserContextPending(aContextItemCollection: IContextItemCollection): Boolean; This method returns a value of True if the pending context change is related to User Context; if not, then it may be related to the Patient Context, etc. This method returns: True—CCOW pending context change is related to User Context. pending context change is related to User Context (e.g., Patient Context False—CCOW not change). This method is used in response to an OnPending event to determine if the pending change is User Context related, and if so, whether the User value in the Context Vault has been cleared. If the value has been cleared, then the application should shut down. Switching User Context is supported, since not Office of Cyber and Information Security (OCIS) policy indicates that the current user sign off the must client workstation and the new user sign on the client workstation. must REF: For an example of the IsUserContextPending method, run the RPC Broker Example (i.e., BrokerExample.exe); located in the following directory: BDK32\Samples\BrokerEx
Example In the event handler for the Commit event of the TContextorControl, developers can check whether or not the user was previously defined, and is now undefined or null. In this case, developers would want to do any necessary processing, and then halt. Figure : IsUserCleared Method—Example Procedure TForm1.CommitHandler(Sender: TObject) begin with CCOWRPCBroker1 do if WasUserDefined and IsUserCleared then begin // do any necessary processing before halting halt; end; end; IsUserContextPending Method Declaration function IsUserContextPending(aContextItemCollection: IContextItemCollection): Boolean; This method returns a value of True if the pending context change is related to User Context; if not, then it may be related to the Patient Context, etc. This method returns: True—CCOW pending context change is related to User Context. False—CCOW pending context change is not related to User Context (e.g., Patient Context change). This method is used in response to an OnPending event to determine if the pending change is User Context related, and if so, whether the User value in the Context Vault has been cleared. If the value has been cleared, then the application should shut down. Switching User Context is not supported, since Office of Cyber and Information Security (OCIS) policy indicates that the current user must sign off the client workstation and the new user must sign on the client workstation. REF: For an example of the IsUserContextPending method, run the RPC Broker Example (i.e., BrokerExample.exe); located in the following directory: BDK32\Samples\BrokerEx
xwb_1_1_dg.docx