Invoke specific version of long lived process using ServiceClientfactory | Community
Skip to main content
December 17, 2020
Question

Invoke specific version of long lived process using ServiceClientfactory

  • December 17, 2020
  • 2 replies
  • 1190 views

Hi, We need to invoke a specific version of long lived process using the ServiceClientFactory class of livecycle api. I had follwed the below post which shows how to invoke the latest version available.

https://help.adobe.com/en_US/livecycle/11.0/ProgramLC/WS624e3cba99b79e12e69a9941333732bac8-7dc1.2.ht...

But due to business needs we would like to invoke a specific version. 

We tried foloowing approaches but it did not work.

Approach 1: 

InvocationRequest lcRequest =  myFactory.createInvocationRequest( 
                "FirstAppSolution/1.1/PreLoanProcess", //Specify the long-lived process name 
                    "invoke",           //Specify the operation name     
                    params,               //Specify input values 
                    false); 

Approach 2: 

InvocationRequest lcRequest =  myFactory.createInvocationRequest( 
                "FirstAppSolution/PreLoanProcess:1.1", //Specify the long-lived process name 
                    "invoke",           //Specify the operation name     
                    params,               //Specify input values 
                    false); 

 In both above approaches i am specifically trying to invoke version 1.1 but i am getting an error saying service not found. Kindly help

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

2 replies

Mayank_Gandhi
Adobe Employee
Adobe Employee
December 17, 2020

@preetprabu  Check the wsdl url from adminui for the respective process

December 17, 2020
The wsdl url ins adminui always points to the latest deployed version. It does not take older version. Does that mean we cannot invoke the older version of the process?
Mayank_Gandhi
Adobe Employee
Adobe Employee
December 17, 2020

@preetprabu  Why would you like to invoke a previous version?