@ Action ( name = "Append Child" , outputs = { @ Output ( RETURN_CODE ) , @ Output ( RETURN_RESULT ) , @ Output ( RESULT_XML ) , @ Output ( ERROR_MESSAGE ) } , responses = { @ Response ( text = ResponseNames . SUCCESS , field = RETURN_CODE , value = SUCCESS , matchType = COMPARE_EQUAL ) , @ Response ( text = ResponseNames . FAILURE , field = RETURN_CODE , value = FAILURE , matchType = COMPARE_EQUAL , isDefault = true , isOnFail = true ) } ) public Map < String , String > execute ( @ Param ( value = XML_DOCUMENT , required = true ) String xmlDocument , @ Param ( value = XML_DOCUMENT_SOURCE ) String xmlDocumentSource , @ Param ( value = XPATH_ELEMENT_QUERY , required = true ) String xPathQuery , @ Param ( value = XML_ELEMENT , required = true ) String xmlElement , @ Param ( value = SECURE_PROCESSING ) String secureProcessing ) { final CommonInputs inputs = new CommonInputs . CommonInputsBuilder ( ) . withXmlDocument ( xmlDocument ) . withXmlDocumentSource ( xmlDocumentSource ) . withXpathQuery ( xPathQuery ) . withSecureProcessing ( secureProcessing ) . build ( ) ; final CustomInputs customInputs = new CustomInputs . CustomInputsBuilder ( ) . withXmlElement ( xmlElement ) . build ( ) ; return new AppendChildService ( ) . execute ( inputs , customInputs ) ; }
Appends a child to an XML element .