protected internal virtual ProcessesXml parseProcessesXml(URL url) { //JAVA TO C# CONVERTER WARNING: The original Java variable was marked 'final': //ORIGINAL LINE: final org.camunda.bpm.application.impl.metadata.ProcessesXmlParser processesXmlParser = new org.camunda.bpm.application.impl.metadata.ProcessesXmlParser(); ProcessesXmlParser processesXmlParser = new ProcessesXmlParser(); ProcessesXml processesXml = processesXmlParser.createParse().sourceUrl(url).execute().ProcessesXml; return(processesXml); }
public virtual void testParseProcessesXmlOneEngine() { ProcessesXml processesXml = parser.createParse().sourceUrl(getStreamUrl("process_xml_one_engine.xml")).execute().ProcessesXml; assertNotNull(processesXml); assertEquals(1, processesXml.ProcessEngines.Count); assertEquals(0, processesXml.ProcessArchives.Count); ProcessEngineXml engineXml = processesXml.ProcessEngines[0]; assertEquals("default", engineXml.Name); assertEquals("default", engineXml.JobAcquisitionName); assertEquals("configuration", engineXml.ConfigurationClass); assertEquals("datasource", engineXml.Datasource); IDictionary <string, string> properties = engineXml.Properties; assertNotNull(properties); assertEquals(2, properties.Count); assertEquals("value1", properties["prop1"]); assertEquals("value2", properties["prop2"]); }