Quantcast
Channel: VMware Communities : Discussion List - Site Recovery Manager
Viewing all articles
Browse latest Browse all 3691

workflow présentation does not work on vCenter

$
0
0

Hello

when I want to start a workflow with a presentation linked to actions filters

the workflow does not work

can some one help me to figure-out this issue?

 

Regards

 

more informations

the présentation filter uses an action that uses the currentldapuser and compares it's groups to groups in configuration and export a Parent folder associated to this group

 

here is the code I use in the action  and it works when using it directly in a scriptable task

it does not work when used as a presentation filter

specify a root object to be shown in the chooser. getaction("ingenierie",getParentFolderFromConnectedUser").call(#Prod)

 

var currentLdapUser = System.getModule("com.vmware.library.ldap").getCurrentLdapUser() ;
var groups = currentLdapUser.groups;
var category = Server.getConfigurationElementCategoryWithPath("groupesFTV");
Server.log(currentLdapUser.groups);
var elements = category.configurationElements;

for (i= 0; i < elements.length; i++) {  var currentElement = elements[i];  for (x=0; x < groups.length; x++) {  if( currentElement.getAttributeWithKey("groupe").value == groups[x]) {  if(!Prod) {  var attribute = currentElement.getAttributeWithKey("folderNonProduction");  }  else var attribute = currentElement.getAttributeWithKey("folderProduction");  Server.log(attribute.value);  return attribute.value;  }  }
}

Viewing all articles
Browse latest Browse all 3691

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>