vRO 8 - Tree View Export

vRO 8 - Tree View Export

Hi all,

vRO8 is out and the Java Client is gone. The HTML Client has some very nice features but will hopefully get some improvements soon.

What I personal missing the most is the tree view of the Workflows, Actions, Resources and the Configuration. Especially the Workflows and Actions are bugging me as one needs to know what the workflow or Action is called...and that's a bit tricky...at least for me...I know where stuff is not necessarily that its called.

so I came up with a mini Workflow that will just export (to the local disk of the vRO) all Workflows, Actions, Configuration Elements and Resource Elements.

PLEASE NOTE: Even if you write to /var/run/vco/ in the vRO, the real path via SSH is /data/vco/var/run/vco (Container!!!)

I attached the Package but here is the Code too:

//do Workflows

var myFileWriter = new FileWriter("/var/run/vco/workflows.txt");

myFileWriter.open();

myFileWriter.clean();

for each (wfc in Server.findAllForType("WorkflowCategory")){

  myFileWriter.writeLine(wfc.path);

   for each (wf in wfc.allWorkflows){

  myFileWriter.writeLine("- "+wf.name) 

  } 

}

myFileWriter.close();


//do Actions

var myFileWriter = new FileWriter("/var/run/vco/actions.txt");

myFileWriter.open();

myFileWriter.clean();

for each (mod in System.getAllModules()){

  myFileWriter.writeLine(mod.name);

   for each (act in mod.actionDescriptions){

  myFileWriter.writeLine("- "+act.name) 

  } 

}

myFileWriter.close();


//do Resources

var myFileWriter = new FileWriter("/var/run/vco/resourses.txt");

myFileWriter.open();

myFileWriter.clean();

for each (resCat in Server.getAllResourceElementCategories()){

  myFileWriter.writeLine(resCat.name);

   for each (res in resCat.allResourceElements){

  myFileWriter.writeLine("- "+res.name) 

  } 

}

myFileWriter.close();


//do Configs

//do Resources

var myFileWriter = new FileWriter("/var/run/vco/configurations.txt");

myFileWriter.open();

myFileWriter.clean();

for each (confCat in Server.getAllConfigurationElementCategories()){

  myFileWriter.writeLine(confCat.name);

   for each (conf in confCat.allConfigurationElements){

  myFileWriter.writeLine("- "+conf.name) 

  } 

}

myFileWriter.close();

Attachments
Version history
Revision #:
1 of 1
Last update:
‎10-30-2019 02:17 AM
Updated by: