How can I convert program to XML

Hello,
My Organisation has developed one linear programming product which allows user to run some rules to customise input.
e.g If Package is newly introduced then set Price = Predefined Price.
In programming these rules are modeled as separate classes and logic is coded in methods but now we want use to be able to define this rule on their own without asking us to code it in method.
Is there any way where in we can specify such nested if else logic in more XML or Pseudo code form which doesnt stick to Java syntax and later parse it and process.
Thanks
Niraj Rathi

user13534563 wrote:
Thanks. That was helpful but user of solution are not programmer they are mathematician or statistician who will not be able to use JSP or JSTL. I was looking for something which can parse given text formula , substitute values of variables with variables defined in program and also handle if else kind of scenario.Check out Drools (http://www.jboss.org/drools). You can have the users write the rules in plain english and you parse/react on your server side using the Drools API.

Similar Messages

  • How can I convert IDoc in XML format w/DTD into a string?

    I want to send by e-mail outbound IDoc in XML format with its document type definition (DTD).
    I want to be able to get the same output result into a string than the XML file IDoc port type with DTD activated.  I have created a FM (based on SAP "OWN_FUNCTION") assigned to an IDoc port of type ABAP-PI that executes the following processing steps:
    1-Extract outbound IDoc information to get the sender & recipient mail addresses (EDP13 / EDIPHONE tables).
    2-Convert & Transform IDoc data into XML string using FM IDX_IDOC_TO_XML.
    3-Prepare and send e-mail with XML attachement using FM SO_NEW_DOCUMENT_ATT_SEND_API1.
    I cand generate the e-mail with the XML file attachement but FM IDX_IDOC_TO_XML does not convert the IDoc with proper formating and DTD.
    What should I use to accomplish the IDoc conversion to XML w/DTD into a string?
    Should I use XSLT tools ?
    How does that work?
    Thank you
    Carl

    muks wrote:
    Use decimal string to number
    Specifically, you can define a constant with a different datatype on the input on the lower left if you need a different datatype (e.g. U8, I64, DBL, etc) Are all your values integers or do you also need to scan fractional numbers? In this case, you should use "fract/exp string to number" instead.
    LabVIEW Champion . Do more with less code and in less time .

  • How can we convert soap wrapped xml to simple xml?

    I am getting a soap wrapped xml as payload to JMS in JMS queue and need to convert that into a simple xml. Can anyone please suggest how this can be done? I am adding the xml as an attachment.
    <?xml version="1.0" encoding="UTF-8"?>
    <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:header="http://wsi.nat.bt.com/2005/06/StandardHeader/">
    <SOAP-ENV:Body>
    <setupXMLDataAcquisitionRequest xmlns="http://capabilities.nat.bt.com/xsd/ManageMISDataAcquisition/2007/06/30" xmlns:S18="http://capabilities.nat.bt.com/xsd/ManageMISDataAcquisition/2007/06/30/CCM/Activities" xmlns:S70="http://capabilities.nat.bt.com/xsd/ManageMISDataAcquisition/2007/06/30/CCM/Events" xmlns:S78="http://capabilities.nat.bt.com/xsd/ManageMISDataAcquisition/2007/06/30/CCM/Incidents" xsi:schemaLocation="http://capabilities.nat.bt.com/xsd/ManageMISDataAcquisition/2007/06/30
    D:\Jay_137788\OffshoreCode\WSDLandXSD\WSDLandXSD\ManageMISDataAcquisition.20070630.xsd">
    <header:standardHeader>
    <header:e2e>
    <header:E2EDATA>e2EData</header:E2EDATA>
    </header:e2e>
    <header:serviceState>
    <header:stateCode>OK</header:stateCode>
    </header:serviceState>
    <header:serviceAddressing>
    <header:from>http://ccm.intra.bt.com/neo</header:from>
    <header:to>
    <header:address>http://ccm.intra.bt.com/orbit</header:address>
    <header:contextItemList>
    <header:contextItem contextId="http://ccm.intra.bt.neo" contextName="serviceType">WLR</header:contextItem>
    </header:contextItemList>
    </header:to>
    <header:messageId>http://ccm.intra.bt.com/neo/manageMISDataAcquasition/EC9DB800-5C5F-11DC-AECA-E60BE61DBC5B</header:messageId>
    <header:serviceName>http://ccm.intra.bt.com/manageMISDataAcquasition</header:serviceName>
    <header:action>http://ccm.intra.bt.com/manageMISDataAcquasition/2007/08#problemMISEventNotification</header:action>
    </header:serviceAddressing>
    <header:serviceSpecification>
    <header:payloadFormat>XML</header:payloadFormat>
    <header:version>1.0</header:version>
    </header:serviceSpecification>
    </header:standardHeader>
    <activity>
    <S18:Event>
    <S70:id>KPI.SA.dispatchActionItem</S70:id>
    <S70:eventDateTime>2007-09-06T15:29:56</S70:eventDateTime>
    </S18:Event>
    <S18:activityId>000000109</S18:activityId>
    <S18:activityType>WFT</S18:activityType>
    <S18:activityCode>BBHC5</S18:activityCode>
    <S18:activityStatus>Not Started</S18:activityStatus>
    <S18:activityCondition>Not Started-Dispatch</S18:activityCondition>
    <S18:activityDateCreated>2007-09-06T16:30:36</S18:activityDateCreated>
    <S18:activityDateCompleted>1753-01-01T00:00:00</S18:activityDateCompleted>
    <S18:activityQueueID>ASG</S18:activityQueueID>
    <S18:activityNote>
    <S18:comment>Customer Apparatus SFI for BBHC5</S18:comment>
    </S18:activityNote>
    <S18:activityOwner>sa</S18:activityOwner>
    <S18:activityAccessURL />
    <S18:faultIdentifier>
                                                 <S78:name>faultId</S78:name>
                                                 <S78:value>NeoSAC00000041</S78:value>
    </S18:faultIdentifier>
    <S18:activityRelatedTo>Action Request</S18:activityRelatedTo>
    </activity>
    </setupXMLDataAcquisitionRequest>
    </SOAP-ENV:Body>
    </SOAP-ENV:Envelope>

    I take that to mean "Yes" to the first question and a failure to answer the second.
    I don't know anything about SOAP, but that shouldn't matter because you're just asking a general question about XML. I assume that "the message in the body" must correspond to something in that XML you posted? Right? When I look at it I don't see anything that looks much like a message, but then I don't know anything about SOAP.

  • How can i convert the HTML information in XML form to a PDF?

    Hi does any body know how can i convert the content of an HTML field in a XML Form in a regular text to include in a PDF in a Java program?

    Hi ,
    On the tool bar you have an option "Browser" which is next to "HTML Editor" .
    You know that for using these elements wo have to map them with Data Schema.
    Step by step
    1. In data Model Under Data Schema Add a child and name it Read_More.
    2. In the left hand corner ,click on tab Type and from the drop down select "rid"
    3.Click on the "Browser" from the toolbar (as told earlier) and drag and drop it on the form.
    4. Drag the Data schema which u have made(Read_more) and drop it on the browser on form. On right hand side u will se the mapping done.
    5.Click on the "Browser" which is there in the form and on the right hand side of the form u will see the property window.
    6.In property window change the value of action property to "Item Entry point"
    7. Repeat step 3 and 4 in Render and show form but using "label" nad not browser.
    Do not forget to add Save button in Edit Form.
    This will solve your problem.
    PS:Rewards Point Please.
    Regards,
    Naveen Gupta

  • How can i convert  my invoice which is in smart forms to xml file

    how can i convert  my invoice which is in smart forms to xml file.

    Hi Anil,
    Please go through this link:
    1. XSF stands for XML for Smart Forms. It is important to contrast XSF with .... The eDocx script engine can provide a script to convert the file format to an 
    http://www.ossincorp.com/Black_Box/Black_Box_4.htm
    please rewrds if found helpful.
    Regards,
    Alok

  • How can I retrieve the inbound XML messages (invoices) by ABAP program?

    Where are the inbound XML messages (invoices) saved in XI box?
    How can I retrieve the inbound XML invoices in XI box by ABAP program?
    Is there any method/BADI/function module to retrieve these XML invoices, so I can output these XML invoices in an ABAP report?
    Thanks in advance for your help!

    Hello Fisher,
    This Webblog will help you.
    /people/alessandro.guarneri/blog/2006/02/14/super-message-monitor-for-sap-xi
    From this blog you will understand the code behind SXMB moni .. which performs the selection from database. You can write a report as well.
    Cheers,
    Himadri

  • Converting an MP3 to WAV -- How can I convert an MP3 to wav format, 16 bit

    How can I convert an MP3 to wav format, 16 bit, 44,1 khz? I like the program Switch which I know can convert MP3s, but how to I set it up for the specific settings that I need?

    Just import into a logic session. Then bounce at the specs you require. Logic or Waveburner, iTunes and even Quicktime I think can each do this easily.
    A question though. I am assuming you are converting an MP3 to 44.1/16 bit just so you can play the file in a consumer quality CD player?? IF so - that makes sense.
    But if you are doing this because you think it will improve the sound quality of your MP3, I will save you some time here. It won't improve the sound quality at all. It will just turn the MP3 into a larger audio file.
    44.1/16 bit resolution enables you to have a much better sounding file than MP3 formats, but not by going at it this way.
    No offense to you if you know all of this already. I am assuming that you may not know this - because if you did you would also likely know how to convert an audio file.
    Cheers
    Darrell

  • How can I convert a dBase IV file to Excel on my MAC computer??

    How can I convert a dBase IV file to Excel on my MAC computer??
    I downloaded the DoxBox program which enables me to use DOS programs such as dBase in my new MAC computer and it does work nicely!!

    This is what Excel now imports:

  • How can i convert a window media player file into a format playable on ipod

    hey guys can you tell me how can i convert an widdow media player file into a format that can be played on my ipod, i used videora ipod converter but it can't convert the window media player file

    the program you show change wma to mp3, but the mp3 file can't be understanded by the iPod, how can i change a wma file to a format understanded by the Ipod?

  • How can i convert the firefox-history-timestamp in places.sqlite into a normal date format? The firefox-timestamp is not equivalent to the unix-timestamp, that's why I ask. I could not find a conversion function. Does anyone know something about this?

    As I opened the places.sqlite with an sqlite-editor I found out that firefox saves the last_visit_date via a timestamp which is 16 digits long. I realized that the first 10 digits are similar to the corresponding unix-timestamp but not equal. So.. how can i convert the firefox-timestamp into a normal date? Or into the corresponding unix-timestamp?

    Write a bash script or 'C' program to change the date format and then use the sql update function to receive the stdio output 'where date_field='embeded date value'.

  • How can I convert datalog files from LV5.0 to LV6i?

    I have some datalog files from LV5.0 and I'd like to use them in LV6i, but when although I push convert when asked in the moment of reading the file,it provides input parameter invalid when reading. I'm using the same vi I used to create and read them in LV5, so it's not supposed to be a program mistake. How can I convert them?"

    Hello,
    Thanks for answering my question. I downloaded LV6.02 as you suggested but the problem persists.
    I don't know maybe it's something very simple. I have attached 1 program to read the datalog file and another one that reads it in every version (LV5.0 and LV6.02) in case you can help me.
    Thanks again,
    Javi
    Attachments:
    WriteLV5.vi ‏65 KB
    OpenLV5.vi ‏74 KB
    OpenLV6.vi ‏59 KB

  • How can i convert the data from mutiple-table to the other database(MSSQL)?

    Dears,
    How can i convert the data from mutiple-table to the other database such as MS-SQL?
    I have a third party system based on MS-SQL 2000.
    Now we want to make a integration between SAP R/3(Oracle) and SQL server.
    When my user releases the purchase order in R/3, the application we coded will convert the releated data to the temp database on the SQL server.
    But i don't know which tools will help me reach the purpose.  BAPI, LSMW, IDoc... ???
    Would anybody tell me which way is better and how to do?
    Thanks a lot!
    Kevin Wang

    Hello Kevin,
    The question to use which method depend on your detail requirements. If you use BAPI, you need to find which Bapi can provide the data you want. Bapi normally use as a function called by external system. So you need to develop an external program like VB/Java to call this Bapi and move it to SQL. LSMW is use when you want to upload data from an external system to SAP. So it does not serve your requirement. Idoc can be use to export data to an external system. Again like Bapi, you need to find what Idoc can provide the data you want. However, it does not any programming from the external system. If I were you, based on your requirements, I think writing an Abap program that read the data you want and download it to NT/SQL server will be faster and easier.

  • How can i convert .mov to .mp4?

    Hello again
    I have made a large promo dvd for an upcoming seminar and the national organization would like to put it on its website.
    I broke it down into chapters so that it is not one long cumbersome piece, and visitors can watch just the parts they need.
    On our local website, I was able to share to media and then use iweb to upload them in an album.
    However, the national webmaster uses a different web program so I need to create the chapters as self-contained movies for her to download first from our downlload site. She says that the .mov files hang up when she's downloading and wants them as mp4.
    How can I convert them?
    Thank you
    Elizabeth

    hello .... sorry it's taken me so long to return here ....
    To separate it into chapters, I brought it into Final Cut pro, and marked the In and Out for one chapter, then exported just that selection.... as an mpeg4 (Quicktime conversion) . As one chapter was finished and exported (Self-contained movie) i moved the In and Out points to the next chapter, and continued along this way.
    If you don't have Final Cut, then you should be able to do the same in iMovie: import the whole movie, then select the portion of the movie that belongs in one chapter, drag it to the timeline, edit as necessary (fades, etc) then export (Share) that chapter. Repeat for each portion of the movie you want to isolate. When you export/share, you can choose the option of size that you want it to be.
    Hope this helps and that I'm not too late for you  !!

  • How can I convert stream to byte and byte to stream

    I got a IInputStream from BackgroundDownloader operation, how can I convert it to byte array? I try to convert it to buffer and after that to bytes, but it's always throw exception.
    function decryptStream(inputStream, totalBytes) {
    var reader = new Windows.Storage.Streams.DataReader(inputStream);
    var iBuffer = reader.readBuffer(totalBytes);
    var bytes = Windows.Security.Cryptography.CryptographicBuffer.copyToByteArray(iBuffer);
    Could I have examples about that?

    Hi Jeft,
    In my program, I have a BackgroundDownloader to download an image. When we have result, I will convert it to bytes array.
    if (p.hasResponseChanged && imageStream == null) {
    imageStream = operation.getResultStreamAt(0);
    if (!p.hasResponseChanged && imageStream != null) {
    decryptStream(imageStream, p['bytesReceived']);

  • I have a PDF in russian origin how can I convert it correctly?

    I have a PDF in russian origin how can I convert it correctly into MS word?

    Hello,
    which program do you use? For example "ExportPDF" has no Russian language options. Adobe Acrobat however can do it. In this case - if you don't have it at the moment - you should use the 30-day trial >>> see http://www.adobe.com/products/acrobat.html
    Hans-Günter
    P.S.
    A a detailed opinion with another point of view you will find there:
    How can I convert a Russian pdf file, using Adobe Acrobat XI Pro, to a Word document?

Maybe you are looking for