cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Multiple task approval alerts - CLM

Former Member
0 Likes
319

Hi Experts,

We are facing some duplicating issues. When a document goes to approval, that can be evidencied in the workbench.

While it ins't approved or refused, the SAME "document approval" keep on duplicating, time after time.

After approved, the workflow continues just fine and the document can no longer be visualized in the list. I believe that there is some kind of alert problem that is causing this. 

Any thoughts ?

Thanks in advance

Navajas

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Likes

I solved my problem, perhaps it can help others with the same issue:

This problem came out due to a non defined type transaction which occurred after an approval activity. When we changed this transition to "CONDITION" and inserted the tag getApprovalStatus() != PENDING, we could solve the problem.

Hope it helps everyone out.

Best regards,

R. Navajas

Answers (1)

Answers (1)

Former Member
0 Likes

Hi Renan,

Can you please paste the pre script or attach it here , so that forum will be able to help you out more. which version of Sourcing you are on?. There was a issue when principal was passing null  which was affecting workflows and have been solved in SP08 according to SAP.

You can also check if there are some other scripts which might be leading to triggering of your pre script again and again. Just like script on Collaborators collection of the document .

Is the same xpdl working fine in other dev or qas systems? and try to attach it to a different phase configuration and check .. if its really a bug or some coding error in your xpd.

Hope it helps

Thanks

Uday

Former Member
0 Likes

Hi Uday ! Thanks for your reply.

We're on DEV phase on Sourcing 9.0. Actually, this is a BIZdoc Document which we are customizing for our client's needs. As you ask, I'm posting the script below... perhaps you can have a more clear overview now.

import com.sap.odp.api.doc.collaboration.CollaboratorApprovalRuleType;

import com.sap.odp.api.usermgmt.masterdata.GroupIBeanHomeIfc;

         // Group is added as ANYONE CAN APPROVE. ANY = 1 means all

         // must approve.

         ANY = 0;

         home = IBeanHomeLocator.lookup(session,GroupIBeanHomeIfc.sHOME_NAME);

         var group;

         group = home.findGroup("grp_hiae_contract_manager_buyer");

         if(hasValue(group)) {

                 addApprover(group.getObjectReference(), new CollaboratorApprovalRuleType(ANY));

         }

         else {

                 cancelProcess("Grupo não encontrado");

                 return;

         }

Any thoughts ?

Thank you again, Uday !