Getting Transition Instance Info via API

Hi All,

I have spent a couple of hours trawling through the JavaDoc api. I can find Archived Activity and Flow Node Instances however I can’t find any way to link them together. In the DB I can see an arch_transition_instnace table which holds exactly the data I am after. I just can’t see how to access it via the API.

I can see via JavaDoc there is an ArchivedTransitionInstance with what looks like the data I want. I just can’t find an API method to query and return a list of them.

What I am wanting to do is poll after a minute or so after human task has been completed to see where the process has got to. So I was hoping to follow the archived flow nodes through.

Any suggestions would greatfully appreciated.

Thanks,

Charlie

Hello,

Via tha API

SearchResult searchArchivedActivities(SearchOptions searchOptions)

You can find a Archived Activity Instance. Now, the question is : what do you have in your hand to filter to get the different archived ? If you have for example the processInstance, then the code will be (I didn’t verify it, only the spirit):

SearchOptionBuilder searchOptionBuilder = new SearchOptionBuilder(0,100);
searchOptionBuilder.filter( HumanTaskInstanceSearchDescriptor.PROCESS_DEFINITION_ID, );
processAPI.searchArchivedActivities( searchOptionBuilder .done() )

Look for all class *SearchDescriptor" to get the different filter you can use. You have a PROCESS_INSTANCE_ID somewhere.

Is that what you look for ?