Hi experts,
I need some suggestion from your guys. I would like to create the MA from Project Document, and check whether the Project's status should not be 'Pending' to generate the MA. So i write the following script in 'Created' context of MA.
displayName = doc.getDisplayName();
project = doc.getParentIBean();
logInfo("Var project : "+project);
logInfo("Var displayName : "+displayName);
status = project.getStatus().getDisplayName(session);
if(hasValue(status) @and status.equals("Pending")){
logInfo("Hit If");
}else{
}
When i try to create the MA from Project document, i realize from the log that the the project and displayName variable are 'null'. The script can not get ParenIBean and Display Name. I just want to get the ProjectIBean from the created MA. Can you suggest me to get the ProjectIBean from MA.
Thank you in advance,
Noppong