Skip to main content
New Participant
May 15, 2023 12:35 PM UTC
Question

Sailcode object to Java object for extracting data

Can we extract data from sail code to java code:

Example :

Sailcode present in xml file under definition tag


<definition>a!localVariables( #"SYSTEM_SYSRULES_sectionLayout_v1"( contents:{ #"SYSTEM_SYSRULES_richTextDisplayField"( value: { #"SYSTEM_SYSRULES_richTextItem_v1"( text: "Click here to display Case(s) Information", link: #"SYSTEM_SYSRULES_safeLink"( label: "Company web site", uri: "">http://www.appian.com" ) ) } ) } ) )</definition>



into java object to get data of text : "Click here to display case)s) information", link label :"Company web" , link uri :"http"//wwww.appian.com"

    7 replies

    stefanhelzle0001
    Brainy
    May 15, 2023 12:58 PM UTC

    Sure, just put enough money and effort into it. ... :-) ... What is your use case?

    New Participant
    May 15, 2023 5:39 PM UTC

    I am just trying with java code that takes appian xml(which contains sail code for ui like above) and converts a html file similar to pega understandable html so that pega wont write same requirement code again.

    stefanhelzle0001
    Brainy
    May 15, 2023 5:44 PM UTC

    You want to manually create a UI from SAIL code definitions in Appian !?!?! Why? What has Pega to do with it?

    mathieud0001
    Genius
    May 15, 2023 4:14 PM UTC

    You can even do it within Appian itself.

    Upload an exported app package and just parse the XML files.

    New Participant
    May 15, 2023 5:41 PM UTC

    I am trying to extract the data from sail code into java objects  which generated from exported app package in appian