int count = 0;
int status = 0;
if (inputElement instanceof GetMetadataErrors) {
GetMetadataErrors getMetadataErrors = (GetMetadataErrors) inputElement;
DeploymentMetaData_Impl parentMetaData = getMetadataErrors.getParent().gParentObject();
if ( (parentMetaData instanceof AEDeploymentMetaData)
&& !((AEDeploymentMetaData) parentMetaData).isAsync() ) {
status = NameValuePair.STATUS_NON_EDITABLE;
}
objs = new Object[3];
objs[0] = new NameValuePair(getMetadataErrors, GetMetadataErrors.KIND_TIMEOUT,
GetMetadataErrors.NAME_TIMEOUT,
getMetadataErrors.getTimeout(), Integer.class);
objs[1] = new NameValuePair(getMetadataErrors, GetMetadataErrors.KIND_ERRORACTION,
GetMetadataErrors.NAME_ERRORACTION,
getMetadataErrors.getErrorAction(), String.class);
objs[2] = new NameValuePair(getMetadataErrors, GetMetadataErrors.KIND_MAX_RETRIES,
GetMetadataErrors.NAME_MAX_RETRIES,
getMetadataErrors.getMaxRetries(), Integer.class);
// ((NameValuePair) objs[0]).setStatusFlags(status);
// ((NameValuePair) objs[1]).setStatusFlags(status);
((NameValuePair) objs[2]).setStatusFlags(status);
return objs;
} else if (inputElement instanceof ProcessCasErrors) {
ProcessCasErrors processCasErrors = (ProcessCasErrors) inputElement;
AsyncAEErrorConfiguration parent = processCasErrors.getParent();
DeploymentMetaData_Impl parentMetaData = parent.gParentObject();
if (parent instanceof AsyncAggregateErrorConfiguration) {
count = 6;
} else {
count = 3;