invocationContext.setServiceName(jobContext.getServiceName());
invocationContext.getExecutionContext().setRegistryService(gfacConfig.getAiravataAPI());
invocationContext.getExecutionContext().addNotifiable(workflowNotification);
invocationContext.getExecutionContext().addNotifiable(loggingNotification);
GSISecurityContext gssContext = new GSISecurityContext();
// if (gridMyproxyRepository == null) {
gssContext.setMyproxyPasswd(gfacConfig.getMyProxyPassphrase());
gssContext.setMyproxyUserName(gfacConfig.getMyProxyUser());
gssContext.setMyproxyLifetime(gfacConfig.getMyProxyLifeCycle());
gssContext.setMyproxyServer(gfacConfig.getMyProxyServer());
// } else {
// gssContext.setMyproxyPasswd(gridMyproxyRepository.getPassword());
// gssContext.setMyproxyUserName(gridMyproxyRepository.getUsername());
// gssContext.setMyproxyLifetime(gridMyproxyRepository.getLifeTimeInhours());
// gssContext.setMyproxyServer(gridMyproxyRepository.getMyproxyServer());
// }
gssContext.setTrustedCertLoc(gfacConfig.getTrustedCertLocation());
invocationContext.addSecurityContext("myproxy", gssContext);
/*
* Add workflow context