on 2015 Dec 10 12:51 AM
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
Request clarification before answering.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.