Task Name | There is a rather large list of LOV providers in UCSD. Not every one does have a end user variable associated or needs a new variable type associated. This workflow and custom task takes as input a new variable name and the embedded LOV provider name. |
Description | |
Prerequisites | Minimum UCSD version: 5.4.0.2 |
Category | Custom task |
Components |
|
User Inputs | |
User Output | |
Instructions for Regular Workflow Use:
Instructions for Regular Workflow Use:
- 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 .WFD 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.
Inspired by Tejeswar Sahu
A list of LOV providers can be found here:
UCSD LOV Providers (How to find them)
The workflow:
This workflow could also be set to execute at system start up to make sure the new variable is re-registerd:
The user inout for this run:
The workflow run:
The resulting variable Creation:
The use of the new variable:
Original Code:
importPackage(java.lang);
importPackage(java.util);
importPackage(com.cloupia.service.cIM.inframgr);
importPackage(com.cloupia.model.cIM);
importPackage(com.cloupia.service.cIM.inframgr.reservation);
importPackage(com.cloupia.service.cIM.inframgr.forms.wizard);
var registry = CustomFeatureRegistry.getInstance();
registry.registerWorkflowInputFieldType("vlan policy name", "vlan policy name", FormFieldDefinition.FIELD_TYPE_EMBEDDED_LOV, "vlanPoolPolicyNames");
Code in the custom task:
importPackage(java.lang);
importPackage(java.util);
importPackage(com.cloupia.service.cIM.inframgr);
importPackage(com.cloupia.model.cIM);
importPackage(com.cloupia.service.cIM.inframgr.reservation);
importPackage(com.cloupia.service.cIM.inframgr.forms.wizard);
var a1 = input.NewLOVname;
var a2 = input.EmbeddedLOVname;
var registry = CustomFeatureRegistry.getInstance();
//registry.registerWorkflowInputFieldType("vlan policy name", "vlan policy name",
//FormFieldDefinition.FIELD_TYPE_EMBEDDED_LOV, "vlanPoolPolicyNames");
registry.registerWorkflowInputFieldType(a1, a1, FormFieldDefinition.FIELD_TYPE_EMBEDDED_LOV, a2);