Child pages
  • JSCalculation
Skip to end of metadata
Go to start of metadata


Property Summary
String #code
Number #variableType

Method Summary
String #getName()
This method returns the name of the stored calculation.
UUID #getUUID()
Returns the UUID of the calculation.
Boolean #isStored()
Returns whether this calculation is a stored one or not.

Property Details
code
Replace with description
Returns
String
variableType
Replace with description
Returns
Number

Method Details
getName

String getName ()

This method returns the name of the stored calculation.
Returns
String – the name of the stored calculation
Sample
var calc = solutionModel.newCalculation("function myCalculation() { return 123; }", JSVariable.INTEGER, "db:/example_data/customers");
application.output(calc.getName());
getUUID

UUID getUUID ()

Returns the UUID of the calculation.
Returns
UUID
Sample
var calc = solutionModel.newCalculation("function myCalculation() { return 123; }", JSVariable.INTEGER, "db:/example_data/customers");
application.output(calc.getUUID().toString());
isStored

Boolean isStored ()

Returns whether this calculation is a stored one or not.
Returns
Boolean – true if the calculation is stored, false otherwise
Sample
var calc = solutionModel.newCalculation("function myCalculation() { return 123; }", JSVariable.INTEGER, "db:/example_data/customers");
if (calc.isStored()) application.output("The calculation is stored").
else application.output("The calculation is not stored").
  • No labels