You must configure approval process in WSRR to tailor it to your enterprise.
At the end of this lesson, you should be able to configure approval process to meet the needs of your organization.
The configuration of approval process in WSRR is controlled by a file named WPSApprovalProcessConfiguration.xml. You update the configuration by editing this file and updating it in the repository. You must be an administrator in the governance enablement profile to perform this task.
You must specify authentication details for WSRR to connect to Process Server and trigger an approval process.
<!-- WebSphere Process Server (WPS) Specific Configurations. -->
<WPS>
<hostname>mywpshost</hostname>
<port>9443</port>
<security enabled="true">
<username>wpsadmin</username>
<password>wpspassword</password>
</security>
</WPS>
Edit the "WebSphere Service Registry and Repository (WSRR) Specific Configurations" section of the WPSApprovalProcessConfiguration to add the details of the WSRR server. You must add a WSRR definition to the Process Server that you are using for approval to identify the WSRR instance, and specify authentication details. You then give the name of the WSRR definition in this configuration. If you do not specify the WSRR definition name, or if that definition cannot be found, then Approval Process uses the default WSRR definition defined in Process Server. See Creating WSRR definitions in Process Server for details.
<!-- WebSphere Service Registry and Repository (WSRR) Specific Configurations. -->
<WSRR>
<definition>
<name>myWSRRdefinition</name>
</definition>
</WSRR>
You configure approval process for your enterprise by adding the WSRR entities that you want to submit to the approval process, and by specifying the WSRR state transitions that trigger the approval process in Process Server. By default, the configuration includes the business capability entity. In this lesson, you add the business process entity, and specify that submitting it for charter review triggers the approval process in Process Server. As part of the configuration, you specify that the charter requires only one approval, and give details of the user who must approve it.
To add the business process entity to the approval process:
<APPROVALPROCESSINSTANCE>
<Name value="Business Approval for New Business Processes"/>
<ApprovalID value="BusinessApproval"/>
<ObjectPrimaryTypeTrigger value="http://www.ibm.com/xmlns/prod/serviceregistry/profile/v6r3/GovernanceEnablementModel#BusinessProcess"/>
<BsrURITrigger value=""/>
<AssertClassification value=""/>
<TriggerTargetState value="http://www.ibm.com/xmlns/prod/serviceregistry/lifecycle/v6r3/LifecycleDefinition#CharterReview"/>
<ApprovalTransition value="http://www.ibm.com/xmlns/prod/serviceregistry/lifecycle/v6r3/LifecycleDefinition#ApproveCharter"/>
<RejectionTransition value="http://www.ibm.com/xmlns/prod/serviceregistry/lifecycle/v6r3/LifecycleDefinition#ReviseCharter"/>
<AutoTriggerNextTransition value="true"/>
<UpdateWSRRObjectProperties value="true"/>
<MinimumApprovalCount value="1"/>
<ProcessInvokerClass value="com.ibm.sr.process.impl.WPSApprovalProcessInvoker"/>
<APPROVER userID="Wps_user" />