How can I get a Instance output in java code

Hi All,
I am trying to write a java code that will get the results of executed flownode.

I have tried following and didn’t get results:

SearchOptions searchOptions = new SearchOptionsBuilder(0, 250).filter(
ArchivedProcessInstancesSearchDescriptor.NAME, PROCESS_NAME)
.done();
SearchResult archivedProcessInstanceResults = processAPI
.searchArchivedProcessInstances(searchOptions);

 List<ArchivedProcessInstance> archives = archivedProcessInstanceResults
           .getResult();

Looking forward to hear from all.

-Praks

Not sure what you mean…

your question is How can I get a Instance output in java code which is something different from get the results of executed flownode.

Can you clarify what you mean?

regards

Sorry for bad english.

Yes, I need to get the results of executed flownode.

Regards,
Praks