cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
810
Views
0
Helpful
0
Comments
Orf Gelbrich
Cisco Employee
Cisco Employee

 

 

Task Name

Update user input variables with in the workflow

Description

 

Prerequisites

Validated on UCSD 6.6

Category

Workflow Task

Components

 

User Inputs

 

Output

Result of operation

 

 

Installation

  1. Download the attached .ZIP file below to your computer. *Remember the location of the saved file on your computer.
  2. Unzip the file on your computer. Should end up with a .WFDX file.
  3. Log in to UCS Director as a user that has "system-admin" privileges.
  4. Navigate to "Policies-->Orchestration" and click on "Import".
  5. Click "Browse" and navigate to the location on your computer where the .WFD file resides. Choose the .WFD file and click "Open".
  6. Click "Upload" and then "OK" once the file upload is completed. Then click "Next".
  7. Click the "Select" button next to "Import Workflows". Click the "Check All" button to check all checkboxes and then the "Select" button.
  8. Click "Submit".
  9. A new folder should appear in "Policies-->Orchestration" that contains the imported workflow. You will now need to update the included tasks with information about the specific environment.

 

 The workflow example: 

 

Screen Shot 2018-09-06 at 8.09.07 PM.png

 

The Cloupia script task that updates the user input: 

 

Screen Shot 2018-09-06 at 8.09.21 PM.png

 

 

The log

 

Service Request ID: 4774

---------------------------------------------------

Workflow Inputs

--Admin Inputs--

--User Inputs--

MyInput1: Hello World

--------------

Sep 07, 2018 01:08:17 UTC Request submitted

Sep 07, 2018 01:08:19 UTC Executing workflow item number 1

Sep 07, 2018 01:08:19 UTC Completed workflow item number 1, with status Completed

Sep 07, 2018 01:08:25 UTC Executing workflow item number 2

Sep 07, 2018 01:08:25 UTC Trigger context executeWorkFlowStep called

Sep 07, 2018 01:08:25 UTC Executing custom action Manipulate_Workflow_Input_v1 (custom_Logger)

Sep 07, 2018 01:08:25 UTC Executing custom action Manipulate_Workflow_Input_v1 (custom_Logger)

Sep 07, 2018 01:08:25 UTC Executing custom script for Logger

Sep 07, 2018 01:08:25 UTC Logging: 1234

Sep 07, 2018 01:08:25 UTC Processing output: B

Sep 07, 2018 01:08:25 UTC Task #2 (Manipulate_Workflow_Input_v1 (custom_Logger)) completed successfully in 0 seconds

Sep 07, 2018 01:08:25 UTC Input/Output values for Task #2 (Manipulate_Workflow_Input_v1 (custom_Logger)):

Sep 07, 2018 01:08:25 UTC [Mapped Input: A = 1234]

Sep 07, 2018 01:08:25 UTC [Output: B = 1234]

Sep 07, 2018 01:08:25 UTC Completed workflow item number 2, with status Completed

Sep 07, 2018 01:08:31 UTC Executing workflow item number 3

Sep 07, 2018 01:08:31 UTC Trigger context executeWorkFlowStep called

Sep 07, 2018 01:08:31 UTC Executing custom action Manipulate_Workflow_Input_v1 (ExecuteCloupiaScript)

Sep 07, 2018 01:08:31 UTC Executing custom action Manipulate_Workflow_Input_v1 (ExecuteCloupiaScript)

Sep 07, 2018 01:08:31 UTC Executing cloupia script: Set Var1

Sep 07, 2018 01:08:31 UTC Completed cloupia script Set Var1

Sep 07, 2018 01:08:31 UTC Task #3 (Manipulate_Workflow_Input_v1 (ExecuteCloupiaScript)) completed successfully in 0 seconds

Sep 07, 2018 01:08:31 UTC Input/Output values for Task #3 (Manipulate_Workflow_Input_v1 (ExecuteCloupiaScript)):

Sep 07, 2018 01:08:31 UTC [Local Input: Label = Set Var1]

Sep 07, 2018 01:08:31 UTC [Local Input: Script = importPackage(java.util); importPackage(java.lang); importPackage(java.io); importPackage(com.cloupia.model.cEvent.notify); importPackage(com.cloupia.model.cIM); importPackage(com.cloupia.lib.util.mail); importPackage(com.cloupia.fw.objstore); importPackage(com.cloupia.lib.util.managedreports); importPackage(com.cloupia.service.cIM.inframgr.profiles); importPackage(com.cloupia.service.cIM.inframgr); ctxt.updateInput('MyInput1', 'Hello World'); ]

Sep 07, 2018 01:08:31 UTC [Local Input: Undo Script = ]

Sep 07, 2018 01:08:31 UTC Completed workflow item number 3, with status Completed

Sep 07, 2018 01:08:34 UTC Executing workflow item number 4

Sep 07, 2018 01:08:34 UTC Trigger context executeWorkFlowStep called

Sep 07, 2018 01:08:34 UTC Executing custom action Manipulate_Workflow_Input_v1 (custom_Logger)

Sep 07, 2018 01:08:34 UTC Executing custom action Manipulate_Workflow_Input_v1 (custom_Logger)

Sep 07, 2018 01:08:34 UTC Executing custom script for Logger

Sep 07, 2018 01:08:34 UTC Logging: Hello World

Sep 07, 2018 01:08:34 UTC Processing output: B

Sep 07, 2018 01:08:34 UTC Task #4 (Manipulate_Workflow_Input_v1 (custom_Logger)) completed successfully in 0 seconds

Sep 07, 2018 01:08:34 UTC Input/Output values for Task #4 (Manipulate_Workflow_Input_v1 (custom_Logger)):

Sep 07, 2018 01:08:34 UTC [Mapped Input: A = Hello World]

Sep 07, 2018 01:08:34 UTC [Output: B = Hello World]

Sep 07, 2018 01:08:34 UTC Completed workflow item number 4, with status Completed

Sep 07, 2018 01:08:37 UTC Executing workflow item number 5

Sep 07, 2018 01:08:37 UTC Completed workflow item number 5, with status Completed

 

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community:

Quick Links

Review Cisco Networking for a $25 gift card