Calls from external components or toolboxes to JGrafchart procedures are handled as in the figure below.
An XML Message In message is used to receive the RPC invocation message. The identifier/name of the XML Message In object should be Rpc. The arrival detection is implemented by a separate procedure associated with the XML Message In object (here named RPCDispatcher). The RPCDispatcher may be common to all RPCs. The RPCDispatcher calls a wrapper procedure associated with the JGrafchart procedure, e.g., by adding the "Wrapper" prefix to the procedure name.. The wrapper procedure extracts the procedure parameters from the message, calls the actual procedure, collects the out parameters, and generates an RPCResponse message that is sent back to the external caller.
Complete examples of external calls to JGrafchart procedures can be found in the on-line tutorial.