Hi Guys, is there a way to call an Appian function within my Java Code (Smart Se

Hi Guys, is there a way to call an Appian function within my Java Code (Smart Service Plugin)? I need to use todocument() function to convert the input string (ex. "[DocumentId: xxxx]" ) to a document.
Also, once I got the document, I need to get the server path/filename of that file.
Thanks in advance!

OriginalPostID-192788

OriginalPostID-192788

  Discussion posts and replies are publicly visible

Parents
  • As per documentation using the ServiceLocator is deprecated.

    Quote: "This is the only valid method for obtaining a *Service within custom Smart Service code. Do not call ServiceLocator.get*."

    Example from docs: public MySmartService(SmartServiceContext smartServiceCtx, Context initialContext) {
    super();
    this.smartServiceCtx = smartServiceCtx;
    this.initialContext = initialContext;
    }

Reply
  • As per documentation using the ServiceLocator is deprecated.

    Quote: "This is the only valid method for obtaining a *Service within custom Smart Service code. Do not call ServiceLocator.get*."

    Example from docs: public MySmartService(SmartServiceContext smartServiceCtx, Context initialContext) {
    super();
    this.smartServiceCtx = smartServiceCtx;
    this.initialContext = initialContext;
    }

Children
No Data