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

How to get ProcessInstanceId after Workflow KickOff. Am able to get the InvocationId

$
0
0
How to get ProcessInstanceId after Workflow KickOff. Am able to get the InvocationId.

********************************************************************** *****

This is the Snippet :
*********************

InvocationResponse response = myServiceClient.invoke(request);
invocationId = response.getInvocationId();
System.out.println("ClientParams="+response.getClientParameters());
System.out.println("OutputParams="+response.getOutputParameters());
System.out.println("invocationId="+invocationId);
JobManager jobManager = new JobManager(myFactory);
JobStatus jobStatus = null;

JobId myJobId = new JobId(invocationId);


jobStatus = jobManager.getStatus(myJobId);
System.out.println("Job Status: " + jobStatus.getStatusCode());

if (jobStatus.getStatusCode()==JobStatus.JOB_STATUS_COMPLETED)
{
System.out.println("INVOCATION COMPLETED SUCCESSFULLY!");
InvocationResponse jobResponse = jobManager.getResponse(myJobId);
jobManager.terminateJob(myJobId);
jobResponse.getInvocationId();

}

********************************************************************** *****

Process id need to be fetched after Workflow Kickoff

Can anyone please help me..?

Viewing all articles
Browse latest Browse all 69588

Trending Articles



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