Composite entity processing


I am trying to do some check in the post load method of an entity WMSItemArrivalJournalLineV2Entity which is part of composite entity WMSItemArrivalJournalV2Entity. However when I write WMSItemArrivalJournalLineV2Entity test = this; in the post load method. The vaule is blank. This normally works when importing an entity but is failing for composite entity. Can any one please suggest me any other approach. My requirement is as follows:

1. Based on a field value provided I need to do certain validation. If this validation fails then I need to throw an error at the staging

2. After the import process is completed and records are created for the journal I need to invoke Post functionality.

For point 2, I am using postTargetProcess(DMFDefinitionGroupExecution _dmfDefinitionGroupExecution) method in the the entity but it is not getting invoked.

Any pointers would be very helpful.

Thanks in advance

No Data
  • What has postLoad() to do with your requirements? It's used neither for imports nor validations.

    Regarding postTargetProcess(), did you declare it correctly? Could you show it to us? You can also debug the place calling postTargetProcess() to see why it's not happening (unfortunately I don't know where it is, without looking into code). I'm pretty sure I used postTargetProcess() with composite entities, therefore it should work.