Here are some sample custom vRO workflows.
Custom vRO Workflow Execution
{ "id":"custom-vro-workflow", "name": "Custom vRO Workflow Execution", "description":"Execute a Custom defined vRO Workflow which is pre-uploaded / defined in vRO", "version":"1.0", "startStep":"step0", "variables": [ {"name":"vnfId", "type": "string"} ], "input": [ {"name": "STR_INPUT", "description": "Sample String Input for Workflow", "type": "string"}, {"name": "NUM_INPUT", "description": "Sample Number Input for Workflow", "type": "number"}, {"name": "BOOL_INPUT", "description": "Sample Boolean Input for Workflow", "type": "boolean"}, {"name": "PWD_INPUT", "description": "Sample Password (SecureString) Input for Workflow", "type": "password"} ], "output": [ {"name":"output", "description": "Output Result", "type": "string"} ], "steps":[ { "stepId":"step0", "workflow":"VRO_CUSTOM_WORKFLOW", "namespace": "nfv", "type":"task", "description": "Execute vRO Workflow", "inBinding":[ {"name": "vroWorkflowName", "type": "string", "default": "Custom-vRO-Workflow-Name"} ,{"name": "strInput", "type": "string", "exportName": "STR_INPUT"} ,{"name": "numInput", "type": "number", "exportName": "NUM_INPUT"} ,{"name": "boolInput", "type": "boolean", "exportName": "BOOL_INPUT"} ,{"name": "pwdInput", "type": "password", "exportName": "PWD_INPUT"} ], "outBinding": [ {"name": "result", "type": "string", "exportName": "output"} ], "nextStep":"END" } ] }
Custom vRO Workflow Execution with File Upload
{ "id":"custom-vro-workflow-with-file", "name": "Custom vRO Workflow Execution with File Upload", "description":"Execute a Custom defined vRO Workflow with File Input", "version":"1.0", "startStep":"step0", "variables": [ {"name":"vnfId", "type": "string"} ], "input": [ {"name": "STR_INPUT", "description": "Sample String Input for Workflow", "type": "string"}, {"name": "NUM_INPUT", "description": "Sample Number Input for Workflow", "type": "number"}, {"name": "BOOL_INPUT", "description": "Sample Boolean Input for Workflow", "type": "boolean"}, {"name": "PWD_INPUT", "description": "Sample Password (SecureString) Input for Workflow", "type": "password"}, {"name": "FILE_INPUT", "description": "Sample File Input for Workflow", "type": "file"} ], "output": [ {"name":"output", "description": "Output Result", "type": "string"} ], "steps":[ { "stepId":"step0", "workflow":"VRO_CUSTOM_WORKFLOW", "namespace": "nfv", "type":"task", "description": "Execute vRO Workflow with File", "inBinding":[ {"name": "vroWorkflowName", "type": "string", "default": "Custom-vRO-Workflow-Name-with-File-Input"} ,{"name": "strInput", "type": "string", "exportName": "STR_INPUT"} ,{"name": "numInput", "type": "number", "exportName": "NUM_INPUT"} ,{"name": "boolInput", "type": "boolean", "exportName": "BOOL_INPUT"} ,{"name": "pwdInput", "type": "password", "exportName": "PWD_INPUT"} ,{"name": "inFile", "type": "file", "exportName": "FILE_INPUT"} ], "outBinding": [ {"name": "result", "type": "string", "exportName": "output"} ], "nextStep":"END" } ] }