After you add the Jedis functionality to the Connection object, you can use this functionality by creating a workflow.

Prerequisites

  • Build the plug-in.
  • Install the modified version of the plug-in to the Orchestrator server. See Deploy a Plug-In.

Procedure

  1. Log in to the vRealize Orchestrator Client.
  2. Navigate to Library > Workflows.
  3. Click New Workflow.
  4. Enter a name for the workflow, and click Create.
  5. Use Redis:Connection as a connection type to create an input parameter of the workflow.
  6. Create a Scriptable task element by inserting the following code:
    connection.set("plugin:tutorial", "Testing redis connection - success"); 
    var result = connection.get("plugin:tutorial"); 
    System.log(result); 
  7. Save the workflow, and click Run.
  8. After the workflow run finishes, select the Logs tab to verify the connection status.

Results

Example:

What to do next