Skip to main content
Jul 8, 2021 11:43 PM UTC
Solved

Finding Resulting Objects in Change Task using PersistenceHelper.manager.navigate

Hi, looking at returning resulting objects from a change task using PersistenceHelper.manager.navigate(Persistable arg0, String arg1, Class arg2 ). 

 

I'm not sure what should I use for the String arg1 argument.

Hopefully it's possible to retrieve it with that api.

 

 

 

I would imagine it would look like PersistenceHelper.manager.navigate(<theChangeActivity>, ?, ChangeRecord2.class)

 

Just not sure what's the correct input there.

 
Jul 9, 2021 2:18 PM UTC

Take a look at the java docs for ChangeHelper2.service.getChangeablesAfter(ChangeActivityIfc ca) and ChangeHelper2.service.getChangeablesAfter(ChangeActivityIfc ca, boolean onlyChangeables). These 2 helper methods do exactly what you are asking for.

1 reply

Jul 9, 2021 2:18 PM UTC

Take a look at the java docs for ChangeHelper2.service.getChangeablesAfter(ChangeActivityIfc ca) and ChangeHelper2.service.getChangeablesAfter(ChangeActivityIfc ca, boolean onlyChangeables). These 2 helper methods do exactly what you are asking for.