protected HashMap<String, CredentialsProperties> getActionCredentialsProperties(Context context, WorkflowAction action) throws Exception { HashMap<String, CredentialsProperties> props = new HashMap<String, CredentialsProperties>(); if (context != null && action != null) { String credsInAction = action.getCred(); if (credsInAction != null) { LOG.debug("Get credential '" + credsInAction + "' properties for action : " + action.getId()); String[] credNames = credsInAction.split(","); for (String credName : credNames) { CredentialsProperties credProps = getCredProperties(context, credName); props.put(credName, credProps); } } } else { LOG.warn("context or action is null"); } return props; }
protected HashMap<String, CredentialsProperties> getActionCredentialsProperties(Context context, WorkflowAction action) throws Exception { HashMap<String, CredentialsProperties> props = new HashMap<String, CredentialsProperties>(); if (context != null && action != null) { String credsInAction = action.getCred(); if (credsInAction != null) { LOG.debug("Get credential '" + credsInAction + "' properties for action : " + action.getId()); String[] credNames = credsInAction.split(","); for (String credName : credNames) { CredentialsProperties credProps = getCredProperties(context, credName); props.put(credName, credProps); } } } else { LOG.warn("context or action is null"); } return props; }
credPropertiesMap.putAll(getActionCredentialsProperties(context, action)); if (credPropertiesMap.isEmpty()) { LOG.warn("No credential properties found for action : " + action.getId() + ", cred : " + action.getCred()); return credPropertiesMap;
credPropertiesMap.putAll(getActionCredentialsProperties(context, action)); if (credPropertiesMap.isEmpty()) { LOG.warn("No credential properties found for action : " + action.getId() + ", cred : " + action.getCred()); return credPropertiesMap;
.writeStringValue("Data : ", action.getData()) .writeStringValue("Stats : ", action.getStats()) .writeStringValue("Credentials : ", action.getCred()) .writeIntValue("Retries : ", action.getRetries()) .writeIntValue("User Retry Int : ", action.getUserRetryInterval())