Skip to main content
7-Bedrock
July 8, 2021
Solved

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

  • July 8, 2021
  • 1 reply
  • 1945 views

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.

 
Best answer by RandyJones

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

20-Turquoise
July 9, 2021

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.