Quantcast
Channel: Adobe Community : Popular Discussions - LiveCycle Workbench
Viewing all articles
Browse latest Browse all 69588

How to get status of a short lived process?

$
0
0
I have a short-lived process I call from servlet (submit servlet), I would know when the process has completed, I tried the following code, but it says

[3/3/09 10:35:37:593 PST] 0000002f SystemErr R Caused by: com.adobe.idp.jobmanager.common.JobNotFoundException

InvocationResponse invokeResponse = myServiceClient.invoke(invokeRequest);
String invocationId = invokeResponse.getInvocationId();

JobManager jobManager = new JobManager(myFactory);
JobId myJobId = new JobId(invocationId);

int counter = 0;
while((jobManager.getStatus(myJobId).getStatusCode() == JobStatus.JOB_STATUS_RUNNING) && ++counter < 60) {
Thread.sleep(1000);
}

Any help would be appreciated. Thanks in advance.

Viewing all articles
Browse latest Browse all 69588

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>