/// <summary> /// Creates a new camunda input parameter extension element with the /// given name and value. /// </summary> /// <param name="name"> the name of the input parameter </param> /// <param name="value"> the value of the input parameter </param> /// <returns> the builder object </returns> public virtual B camundaInputParameter(string name, string value) { CamundaInputOutput camundaInputOutput = getCreateSingleExtensionElement(typeof(CamundaInputOutput)); CamundaInputParameter camundaInputParameter = createChild(camundaInputOutput, typeof(CamundaInputParameter)); camundaInputParameter.CamundaName = name; camundaInputParameter.TextContent = value; return(myself); }
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes: //ORIGINAL LINE: @Ignore("Test ignored. CAM-9441: Bug fix needed") @Test public void testInputParameterListChildAssignment() public virtual void testInputParameterListChildAssignment() { try { CamundaInputParameter inputParamElement = modelInstance.newInstance(typeof(CamundaInputParameter)); inputParamElement.CamundaName = "aVariable"; CamundaList listElement = modelInstance.newInstance(typeof(CamundaList)); inputParamElement.addChildElement(listElement); } catch (Exception e) { fail("CamundaList should be accepted as a child element of CamundaInputParameter. Error: " + e.Message); } }
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes: //ORIGINAL LINE: @Ignore("Test ignored. CAM-9441: Bug fix needed") @Test public void testIntputParameterScriptChildAssignment() public virtual void testIntputParameterScriptChildAssignment() { try { CamundaInputParameter inputParamElement = modelInstance.newInstance(typeof(CamundaInputParameter)); inputParamElement.CamundaName = "aVariable"; CamundaScript scriptElement = modelInstance.newInstance(typeof(CamundaScript)); scriptElement.CamundaScriptFormat = "juel"; scriptElement.TextContent = "${'a script'}"; inputParamElement.addChildElement(scriptElement); } catch (Exception e) { fail("CamundaScript should be accepted as a child element of CamundaInputParameter. Error: " + e.Message); } }