MWFResponsible.isInvoker return wrong result.

22 views
Skip to first unread message

Takanobu Tsuchii

unread,
Jan 22, 2017, 12:06:35 AM1/22/17
to iDempiere
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

Reply all
Reply to author
Forward
0 new messages