Posted: 6 Nov 2017 15:52 EST Last activity: 7 Nov 2018 14:13 EST
I had earlier posted a question but could not edit the Title. so Posting it again.
I have a requirement that I should not allow developers to check in till they do not add a specific text in the comments. Is that something doable ? I was going through the video as is available and it says that it's doable . i created an activity tzGovernanceRule_PreventCheckingInRulesForComments .added to my ruleset . not sure then how can I add the validation and how that will be applicable to all checkin of any kind of rule.
Create your custom activity in "Rule-" class so that it will be applicable for all rule types. In the activity, check for "pyMemo" property and if it fails your custom validation, set the Comments param to the desired error message. For reference check "tzGovernanceRule_NotifyCheckin" activity. Log off and login back to reload the configuration purpose dropdown in PCM portal. Create a configuration using the new custom governance purpose.
Thanks for your response. I created a a rule called tzGovernanceRule_PreventCheckingInRulesForComments in the Rule- class ( in my rule set). saved that .as you said logged off and loged back in using pcmsysclient ad do not see the one i created in drop down . (attached is the details i tried ). Am i missing any more step ?
You are launching PCM portal using pcmsysclient operator which doesn't have "MyTest" ruleset in it's ruleset stack. So to see the custom governance purpose, add PCM portal into your access group and create the configuration from there. Or you can add your ruleset as production ruleset of "PegaCM:Client" access group.