Return boolean from search string

This workflow will check Operating System information and return a boolean vaule using the Javascript test() method which returns true if it finds a match, otherwise it returns false.

For this example:
If OS Family is Linux, returns true
If OS Family is Windows, returns false

This method can be used to search string values and then pass the results as true or false into workflow elements.

The result parameter was added as a global attribute of type boolean and added as an ouptut from the OS-Check-Boolean workflow element and passed into the decision element for processing as shown.

Workflow attached:

Example usage, I use this when detecting which package to install the VMware Log Insight Agent and automatically configure it for either Windows or Linux.


Sign in to be able to add comments.

Comments 0