cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1165
Views
0
Helpful
6
Replies

How to pass result of Execute cloupia script to workflow output field?

tejeshkhimani
Level 1
Level 1

Hi,

 

How to pass result of 'Execute Cloupia Script' activity to workflow output field? I tried with output object & ctxt.setOutputValue('yyy',yy), but fails with object not found. I'm trying to set workflow Output variable from 'Execute Cloupia Script'. 

 

6 Replies 6

Orf Gelbrich
Cisco Employee
Cisco Employee

var url = "http://" + ctxt.getInput(UCSM_URI) + ":80/nuova";

ctxt.updateInput("UCS_SERVERS", manifest);

 

var vmID = ctxt.getOutput("VMProvisionEngineConfig_235.PROVISIONED_VM_ID", childSrId);

 ctxt.setOutputValue("vHBA0_P",vHBA0_P)

 

the variables have to be defined in the Workflow as workflow global variables either input or output. 

 

here are your options... but I would use a custom task. 

Thanks for quick reply. I have defined Workflow User Output , and when i try to use ctxt.setOutputValue("Result","some result") , script fails with  setOutputValue not defined. 

Note: i'm using "Execute Cloupia Script" activity, the result of this activity must be set in Workflow Output field.

Orf Gelbrich
Cisco Employee
Cisco Employee

I created a bug for this:  CSCvk64432

 

I would recommend using a custom task in the mean time.  Then you can re-use the task in other workflows.  

var x = input.some_var;

 

output.some_var = xx; 

 

 

Thank Gelbrich. For now, i will go with the workaround provided by you. Can you let me know, how can i track this bug & when can i get the patch and from where i can get the patch for this? I'm using UCSD 6.6.

I am not sure if this is a Cisco internal page or not, but try out the link
https://cdetsng.cisco.com/webui/#view=CSCvk64432

I am not sure if this is a Cisco internal page or not, but try out the link

https://cdetsng.cisco.com/webui/#view=CSCvk64432

 

Review Cisco Networking for a $25 gift card

Cisco UCS X-Series Energy Efficiency Offer