mumps.mumps_function()

Calls a MUMPS extrinsic function.

Arguments

ArgumentData TypeRequiredDescription
fnstringYesThe function to be called
argsarrayYesAn array of arguments to be passed to fn
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 any, representing the value specified by fn's QUIT command.

Example

This example returns the PID of the MUMPS process running fn.

MUMPS Routine
KBBMDEMO
    QUIT
    ;
PID()
    QUIT $J
CFScript
var mumps = new lib.cfmumps.Mumps();
mumps.open();

var pid = mumps.mumps_function("PID^KBBMDEMO", []);
writeOutput("<p>Process ID is #pid#</p>");

mumps.close();
CFML
<cfset mumps = new lib.cfmumps.Mumps()>
<cfset mumps.open()>

<cfset pid = mumps.mumps_function("PID^KBBMDEMO", [])>

<cfoutput>
	<p>Process ID is #pid#</p>
</cfoutput>

<cfset mumps.close()>