in src/MIMConfigDocumenter/ConnectorDocumenter.cs [133:193]
protected static string GetRunProfileStepType(XElement runProfileStepType)
{
Logger.Instance.WriteMethodEntry("Sync Rule Report Type: '{0}'.", runProfileStepType != null ? (string)runProfileStepType.Attribute("type") : null);
var stepType = string.Empty;
try
{
if (runProfileStepType != null)
{
var type = ((string)runProfileStepType.Attribute("type") ?? string.Empty).ToUpperInvariant();
switch (type)
{
case "DELTA-IMPORT":
{
var importType = ((string)runProfileStepType.Element("import-subtype") ?? string.Empty).ToUpperInvariant();
stepType = importType == "TO-CS" ? "Delta Import (Stage Only)" : "Delta Import and Delta Synchronization";
break;
}
case "FULL-IMPORT":
{
var importType = ((string)runProfileStepType.Element("import-subtype") ?? string.Empty).ToUpperInvariant();
stepType = importType == "TO-CS" ? "Full Import (Stage Only)" : "Full Import and Delta Synchronization";
break;
}
case "EXPORT":
{
stepType = "Export";
break;
}
case "FULL-IMPORT-REEVALUATE-RULES":
{
stepType = "Full Import and Full Synchronization";
break;
}
case "APPLY-RULES":
{
var subType = ((string)runProfileStepType.Element("apply-rules-subtype") ?? string.Empty).ToUpperInvariant();
stepType = subType == "APPLY-PENDING" ? "Delta Synchronization" : subType == "REEVALUATE-FLOW-CONNECTORS" ? "Full Synchronization" : subType;
break;
}
default:
{
stepType = type;
break;
}
}
}
return stepType;
}
finally
{
Logger.Instance.WriteMethodExit("Sync Rule Report Type: '{0}'.", stepType);
}
}