public void PI_Init(int nToolID, EngineInterface engineInterface, XmlElement pXmlProperties) { _config = pXmlProperties["Configuration"]; _toolId = nToolID; _engine = engineInterface; _output = new PluginOutputConnectionHelper(nToolID, engineInterface); }
/// <summary> /// Initializes a new instance of the <see cref="OutputHelper" /> class. /// </summary> /// <param name="hostEngine">The host engine.</param> /// <param name="connectionName">Name of the outgoing connection.</param> public OutputHelper(IBaseEngine hostEngine, string connectionName) { this._hostEngine = hostEngine; this._connectionName = connectionName; this._helper = new PluginOutputConnectionHelper(this._hostEngine.NToolId, this._hostEngine.Engine); }
public void PI_Init(int nToolID, EngineInterface engineInterface, XmlElement pXmlProperties) { DebugMessage($"PI_Init() Entering; ToolID={_toolID}"); _toolID = nToolID; _engineInterface = engineInterface; _xmlProperties = pXmlProperties; // Use the information in the pXmlProperties parameter to get the input xml field name XmlElement configElement = XmlHelpers.GetFirstChildByName(_xmlProperties, "Configuration", true); if (configElement != null) { getConfigSetting(configElement, Constants.SELECTEDFIELDKEY, ref _selectedField); getConfigSetting(configElement, Constants.PATHDELIMITERKEY, ref _pathDelimiter); getConfigSetting(configElement, Constants.ATTRDELIMITERKEY, ref _attrDelimiter); getConfigSetting(configElement, Constants.INDEXGROUPSKEY, ref _sIndexGroups); _indexGroups = isTrueString(_sIndexGroups); } _outputHelper = new PluginOutputConnectionHelper(_toolID, _engineInterface); DebugMessage($"PI_Init() Exiting; ToolID={_toolID}"); }
private string _sbExceptionsLock = "sbExceptionsLock"; // Lock object public void PI_Init(int nToolID, EngineInterface engineInterface, XmlElement pXmlProperties) { DebugMessage($"PI_Init() Entering; ToolID={_toolID}"); _toolID = nToolID; _engineInterface = engineInterface; _xmlProperties = pXmlProperties; // Use the information in the pXmlProperties parameter to get the user control info XmlElement configElement = XmlHelpers.GetFirstChildByName(_xmlProperties, "Configuration", true); if (configElement != null) { getConfigSetting(configElement, Constants.EXEPATHFIELDKEY, ref _exePathField); getConfigSetting(configElement, Constants.STDOUTFIELDKEY, ref _stdOutField); getConfigSetting(configElement, Constants.RETCODEFIELDKEY, ref _retCodeField); getConfigSetting(configElement, Constants.EXCEPTIONFIELDKEY, ref _exceptionsField); getConfigSetting(configElement, Constants.DIAGNOSTICFIELDKEY, ref _diagnosticField); getConfigSetting(configElement, Constants.AUTOESCAPEKEY, ref _autoEscape); getConfigSetting(configElement, Constants.SELECTEDCOLSKEY, ref _selectedCols); } _outputHelper = new AlteryxRecordInfoNet.PluginOutputConnectionHelper(_toolID, _engineInterface); DebugMessage($"PI_Init() Exiting; ToolID={_toolID}"); }
public void PI_Init(int nToolID, EngineInterface engineInterface, XmlElement pXmlProperties) { DebugMessage($"PI_Init() Entering; ToolID={_toolID}"); _toolID = nToolID; _engineInterface = engineInterface; _xmlProperties = pXmlProperties; // Use the information in the pXmlProperties parameter to get the input xml field name XmlElement configElement = XmlHelpers.GetFirstChildByName(_xmlProperties, "Configuration", true); if (configElement != null) { getConfigSetting(configElement, Constants.GROUPFIELDKEY, ref _groupField); getConfigSetting(configElement, Constants.XFIELDKEY, ref _xField); getConfigSetting(configElement, Constants.YFIELDKEY, ref _yField); getConfigSetting(configElement, Constants.CONCAVITYKEY, ref _sConcavity); getConfigSetting(configElement, Constants.SCALEFACTORKEY, ref _sScaleFactor); } // Re-initialise dictionary if the tool is run a second time. _dicPoints = new Dictionary <string, List <Tuple <Double, Double> > >(); _outputHelper = new PluginOutputConnectionHelper(_toolID, _engineInterface); DebugMessage($"PI_Init() Exiting; ToolID={_toolID}"); }
/// <summary> /// Dispose of the internal helper and release the reference /// </summary> public void Dispose() { if (this._helper != null) { this._helper.Dispose(); this._helper = null; } }
public void PI_Init(int nToolID, EngineInterface engineInterface, XmlElement pXmlProperties) { Config = pXmlProperties["Configuration"]; ToolId = nToolID; Engine = engineInterface; Output = new PluginOutputConnectionHelper(ToolId, Engine); Fields = Config?["Fields"]?.InnerText.Split(',') ?? new string[] {}; NewField = Config?["IntFieldName"]?.InnerText ?? ""; OnlyNumeric = Config?["OnlyNumeric"]?.InnerText == "True"; }
public void PI_Init(int nToolID, EngineInterface engineInterface, XmlElement pXmlProperties) { _toolID = nToolID; _engineInterface = engineInterface; _xmlProperties = pXmlProperties; // Use the information in the pXmlProperties parameter to get the user control info XmlElement configElement = XmlHelpers.GetFirstChildByName(_xmlProperties, "Configuration", true); if (configElement != null) { getConfigSetting(configElement, Constants.DATAFIELDKEY, ref _dataField); getConfigSetting(configElement, Constants.SCHEMAFIELDKEY, ref _schemaField); getConfigSetting(configElement, Constants.OUTPUTFIELDKEY, ref _outputField); } _outputHelper = new AlteryxRecordInfoNet.PluginOutputConnectionHelper(_toolID, _engineInterface); }