Skip to main content
kavyam0002
February 21, 2024
Solved

JAXB error in PM

  • February 21, 2024
  • 22 replies
  • 0 views

when i pass the value to the code am getting below error 

if(
  null(ac!convertWord_txt),
  "zero",
  convertnumbertoword(
    trim(split(ac!convertWord_txt, ".").[1]),
    ""
  )
)

what might be the issue here

    Best answer by davidj137213

    Is convertWord_txt a number?  If so, try this

    if(
    null(ac!convertWord_txt),
    "zero",
    convertnumbertoword(
    fixed(ac!convertWord_txt, 0,false),
    ""
    )
    )

    22 replies

    mathieud0001
    Brainy
    February 21, 2024

    I would suggest you contact the maker of the plugin.

    community.appian.com/.../convert-number-to-word

    davidj137213
    Brainy
    February 21, 2024

    That plugin is not updated  since 2017.... 

    What is the functionality that you need to implement? Maybe we can find way to do it...

    kavyam0002
    February 21, 2024

    if i pass the integer it has to give me the word of the integer

    200 if i pass it should give me two hundred

    davidj137213
    Brainy
    February 21, 2024

    Ok, that plugin accepts the following parameters

    public String convertNumberToWord(ServiceContext sc, @Parameter Long number, @Parameter String standard) {

    Could you please cast this value ac!convertWord_txt, to integer and try again?