LC version: ES 8.2
Application code: C# .NET
I have a web service created in LC which is invoked from .NET application. The service (short-lived) saves data to a database and then send an e-mail .
The e-mail is using the 'EmailService' from the Foundations category. I want to be able to fire the e-mail portion with out waiting for a response back, as the service takes to long to finish.
I tried making a sub service that was long-lived and called it from my main serive with the Invocation Policy set to 'Do not Wait'.
That causes the following: Cannot invoke actions using Fire and Forget semantics on a shortlived process
If there is a better way to send emails from a service I'm open to comments.
The problem is that calling a long-lived process from a short lived is not an easy thing to do. At least right out of the box.
There are a couple of ways around it however.
1 - call your long lived process (from your short lived process) using the WebService.InvokeWebService operation. Essentially you are doing the same thing in LC that you are doing in your .Net application
2 - write a custom component (a DSC) that uses the LiveCycle APIs to call the long lived process. You would then include the DSC in your short lived process.