Workflow with variables.

{
  "id":"using-variables",
  "name": "Example for showcasing Variables",
  "description":"Sample Workflow to show use of Variables - Use Output of Step 1 as Input",
  "version":"1.0",
  "startStep":"step1",
  "variables": [
    {"name":"vnfId", "type": "string"},
    {"name":"VAR_1", "type": "string"}
  ],
  "input": [
    {"name": "STEP1_USER", "description": "Step 1 Username", "type": "string"},
    {"name": "STEP1_PWD", "description": "Step 1 Password", "type": "password"},
    {"name": "STEP1_HOSTNAME", "description": "Step 1 Hostname", "type": "string"},
    {"name": "STEP1_CMD", "description": "Step 1 Command", "type": "string"},
    {"name": "STEP2_NUM_INPUT", "description": "Step 2 Number Input for Workflow", "type": "number"},
    {"name": "STEP2_BOOL_INPUT", "description": "Step 2 Boolean Input for Workflow", "type": "boolean"},
    {"name": "STEP2_PWD_INPUT", "description": "Step 2 Password (SecureString) Input for Workflow", "type": "password"}
  ],
  "output": [
    {"name":"FINAL_OUTPUT", "description": "Step 2 Output", "type": "string"}
  ],
  "steps":[
    {
      "stepId":"step1",
      "workflow":"RUN_SSH_COMMAND_IN_GUEST",
      "namespace": "nfv",
      "type":"task",
      "description": "Step 1 - SSH Workflow",
      "inBinding":[
        { "name": "initialDelay", "type": "number", "default": "60" },
        {"name": "username", "type": "string", "exportName": "STEP1_USER"},
        {"name": "password", "type": "password", "exportName": "STEP1_PWD"},
        {"name": "port", "type": "number", "default": "22"},
        {"name": "cmd", "type": "string", "exportName": "STEP1_CMD"},
        {"name": "encoding", "type": "string", "default": " "},
        {"name": "hostNameOrIP", "type": "string", "exportName": "STEP1_HOSTNAME"},
        {"name": "passwordAuthentication", "type": "boolean", "default": "true"}
      ],
      "outBinding": [
        {"name": "result", "type": "string", "exportName": "VAR_1"}
      ],
      "nextStep":"step2"
    },
    {
      "stepId":"step2",
      "workflow":"VRO_CUSTOM_WORKFLOW",
      "namespace": "nfv",
      "type":"task",
      "description": "Step 2 - Use Output of Step 1 as Input",
      "inBinding":[
        {"name": "vroWorkflowName", "type": "string", "default": "Custom-vRO-Workflow-Name"},
        {"name": "strInput", "type": "string", "exportName": "VAR_1"},
        {"name": "numInput", "type": "number", "exportName": "STEP2_NUM_INPUT"},
        {"name": "boolInput", "type": "boolean", "exportName": "STEP2_BOOL_INPUT"},
        {"name": "pwdInput", "type": "password", "exportName": "STEP2_PWD_INPUT"}
      ],
      "outBinding": [
        {"name": "result", "type": "string", "exportName": "FINAL_OUTPUT"}
      ],
      "nextStep":"END"
    }
  ]
}