cancel
Showing results for 
Search instead for 
Did you mean: 

CLM 10 : Agent determination in prescript

former_member252154
Active Participant
0 Kudos

Hi Gurus

We are implementing SAP CLM 10.

I am setting up WFs with the built-in editor.

I just need to set up a two-step WF. For each step we have a dedicated User group called "App1" and "App2".

If I understood correctly I just need to add some script lines in the approval activities prescript template to get the agent determined.

I have no script knowledge.

What is the syntax to specify the approver user group?

Thanks in advance

Accepted Solutions (0)

Answers (1)

Answers (1)

former_member252154
Active Participant
0 Kudos

Hi

Really no idea?

I tried this for the first prescript with no success so far :


import com.sap.odp.api.common.exception.*;

import com.sap.odp.api.common.log.Logger;

import com.sap.odp.api.ibean.*;

import com.sap.odp.api.util.*;

import com.sap.odp.api.common.types.*;

import com.sap.odp.api.workflow.*

logMsg = Logger.createLogMessage(session);

log.setLogMessage("Start of Workflow");

Logger.info(log);

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

//@TODO: Logic here to establish user or group that will approve as part of this step

sam_grp= home.findGroup("APP1");

// If an approver was established based on the logic then add them as an approver now.

addApprover(sam_grp.getObjectReference(), new CollaboratorApprovalRuleType(0));

What is wrong?

Thanks in advance