I am using EntityPostAdder operator on VariantReference. So If any new created item gets assigned to variant than it calls the PostAdder.
So the problem is when I add any item to variant manually than the code is giving me the Item Internal id but when I do the same thing through import perspective than Item Id is NULL. See the below code. I am not able to understand why ItemId is NULL while importing the Item ?
final EDataObject rootObject = commandContext.getRootDataObject();
Short entityId = commandContext.getRootEntity()
Long itemId = rootObject.getLong( "id" ); //$NON-NLS-1$