Hello, community members,
I'm testing the workflow function with iDempiere3.1. I want to use the Mail Node type with the Org of WF responsible.
But, it does not send a supervisor of the orgnization.
I found one cause,
isInvoker method return a wrong result.
When you regist one AD_WF_Resiponsible with the Organization type,
a record is :
responsibletype = 'O'
ad_user_id = null
ad_role_id = 0
then, MWFResponsible.isInvoker return result is true.
this is wrong.
I think it should be fixed below.
MWFResponsible.isInvoker() {
return getAD_User_ID() == 0 && getAD_Role_ID() == 0
&& RESPONSIBLETYPE_Human.equals(getResponsibleType()); // add
}
please consider this matter.
best regards,
Tsuchii