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
- Download the attached .ZIP file below to your computer. *Remember the location of the saved file on your computer.
- Unzip the file on your computer. Should end up with a .WFDX file.
- Log in to UCS Director as a user that has "system-admin" privileges.
- Navigate to "Policies-->Orchestration" and click on "Import".
- Click "Browse" and navigate to the location on your computer where the .WFD file resides. Choose the .WFD file and click "Open".
- Click "Upload" and then "OK" once the file upload is completed. Then click "Next".
- Click the "Select" button next to "Import Workflows". Click the "Check All" button to check all checkboxes and then the "Select" button.
- Click "Submit".
- 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:
The Cloupia script task that updates the user input:
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