Expand my Community achievements bar.

SOLVED

Get results from long lived process with web service call

Avatar

Level 2

I am starting a long-lived process that has output variables using a .Net web service call. I would like to be able to get these output variables. I cannot find any functionality in the JobManager service to do this...is there another way to do this? I am not above querying the Livecycle database....

Thanks,

Mike

1 Accepted Solution

Avatar

Correct answer by
Former Community Member

It will only work after the process is "completed" ....so you must check the status ...and when that is completed then you can check the results.

Paul

View solution in original post

8 Replies

Avatar

Former Community Member

When  you "invoke" the long lived process it will return to you a Process ID. This process ID is an input to the other methods that are exposed by the web service. If you call "invoke_Status" and pass the Process ID as input it will return to you a status of your process. When it is complete then you can call "invoke_Result" with the ProcessID as input and it will return the outputs to you.

Hope that helps

Paul

Avatar

Level 2

Well, I'm trying to use the JobManager Service...this does not seem to have an invoke_status or an invoke_result. This has a getStatus, but no getResult. I am able to use getStatus to determine if the job is complete, but I can't get the results.

When you say to call invoke_Result, are you talking about a web service call? Which web service are you referring to?

Thanks,

Mike

Avatar

Level 2

Ok, which web service wsdl? For example, for the JobManager wsdl I am using:

http://<LIVECYCLE URL>/soap/services/JobManager?wsdl


The methods available are:

  • disposeJobjobId As JobId )
  • getJobInstances ( filter As PagingFilter ) As MyArrayOf_xsd_anyType
  • getStatusjobId As JobId )  As JobStatus
  • resumeJobjobId As JobId )
  • suspendJobjobId As JobId )
  • terminateJobjobId As JobId )

My problem is I don't see any invoke_Result.

Avatar

Level 2

I could never get invoke_result to work with a long-lived process. Is it designed to work this way? So you just make a call to:

results = myServiceReference.InvokeResult(args)

and just wait? This does not work when I try it using a .NET web service call.

Avatar

Correct answer by
Former Community Member

It will only work after the process is "completed" ....so you must check the status ...and when that is completed then you can check the results.

Paul

Avatar

Level 2

I see, I'll try that. Thanks for your help.

The following has evaluated to null or missing: ==> liqladmin("SELECT id, value FROM metrics WHERE id = 'net_accepted_solutions' and user.id = '${acceptedAnswer.author.id}'").data.items [in template "analytics-container" at line 83, column 41] ---- Tip: It's the step after the last dot that caused this error, not those before it. ---- Tip: If the failing expression is known to be legally refer to something that's sometimes null or missing, either specify a default value like myOptionalVar!myDefault, or use <#if myOptionalVar??>when-present<#else>when-missing. (These only cover the last step of the expression; to cover the whole expression, use parenthesis: (myOptionalVar.foo)!myDefault, (myOptionalVar.foo)?? ---- ---- FTL stack trace ("~" means nesting-related): - Failed at: #assign answerAuthorNetSolutions = li... [in template "analytics-container" at line 83, column 5] ----