Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Calls a MUMPS extrinsic procedure subroutine that does not return a value. Requires CFMumps 0.6.0 or later

Note that any output of the called procedure will be logged to Tomcat's catalina.out logfile.

Arguments

ArgumentData TypeRequiredDescription
fn
procedurestringYesThe procedure to be called
argsarrayYesAn array of arguments to be passed to 
fn
procedure
autoRelink (CFMumps 0.05 and later only)booleanNoIf true, the routine called through this API will be automatically re-linked before being executed. This allows you to use the most recent version of a routine without re-starting the CF application server. Omitting this parameter is equivalent to supplying it with a value of false.

Return Value

Returns a value of type boolean, which will be true if there was no error in the course of procedure execution.

Example

This example returns the PID of the MUMPS process running fnwill simply write "Hello, world!" to Tomcat's catalina.out.

Code Block
titleMUMPS Routine
linenumberstrue
KBBMDEMO
    QUIT
    ;
PID()
    QUIT $J	QUIT
	;
	;
KBBMHELO
	W "Hello, world!",!
	QUIT


Code Block
languagejs
titleCFScript
linenumberstrue
var mumps = new lib.cfmumps.Mumps();
mumps.open();

mumps.mumps_procedure("KBBMHELO^KBBMDEMO", []);

mumps.close();


Code Block
languagecoldfusion
titleCFML
linenumberstrue
<cfset mumps = createObject("component", "new lib.cfmumps.mumps")Mumps()>
<cfset mumps.open()>

<cfset pid = mumps.mFunctionmumps_procedure("$$PID^KBBMDEMOKBBMHELO^KBBMDEMO", [])>
<cfoutput>
<p>Process ID is
#pid#</p>
</cfoutput>
<cfset mumps.close()>