Pulse 9.0.3 Release Notes

June 13, 2018

Enhancements

Option to Hide Constant Values

You now have the option to hide your Constant values, by selecting the 'Make value hidden' check box when editing a Constant in the Pulse Rules editor. This is beneficial for hiding Constant values, such as passwords, tokens, or other ID's. If you choose to hide your Constant values you will not be able to unhide them. Additionally, you can not export a hidden Constant value.

To hide a Constant value, do the following:

  1. From the Pulse homepage, select the Constants tab.

  2. Locate the Constant for which you would like to hide the value and select the edit button. The Modify Constant widget opens.

  3. Select the 'Make value hidden' check box and Submit.

  4. The Constant value will no longer be shown on the Constants page.

Pulse Actions Now Support a Callback Method for Including Response Messages

Pulse actions now support the optional callback parameter. You can use it to explicitly return information back in the event log. (Eyeball)

The general syntax is: callback(Error error, Object result);

Where: error – is an optional parameter that you can use to provide results of the failed Action execution. When an Action function succeeds, you can pass null as the first parameter. result – is an optional parameter that you can use to provide the result of a successful Action execution. The result provided must be JSON.stringify compatible. If an error is provided, this parameter is ignored.

The following are example callbacks:

callback();  // Indicates success but no information returned to the caller.
callback(null);  // Indicates success but no information returned to the caller.
callback(null, "success");  // Indicates success with information returned to the caller.
callback(error);  // Indicates error with error information returned to the caller.

Example Action Code:

Copy
var message = body.message || "Hello World!";  const PASSED = true;  console.log('Message =' + message);  if (PASSED) {  // Indicates success with information returned to the caller.  callback(null, "success");   } else {  // Indicates error with error information returned to the caller.      callback("Something went horribly wrong!");     } 

Example Result= Success:

Example Result= Null:

Bug Fixes

  • Previously, when not using an SSL, the service would still provide an HTTPS URL instead of an HTTP URL. This issue has been resolved.