Question
Pegasystems Inc.
JP
Last activity: 23 May 2017 2:36 EDT
How can I update pyMaxAttempts and pyMinimumAgeForProcessig
Hi,
My customer use SLA correspondence and sometime they have more than 350 recipients.
When I tested I found that some of correspondence will not be sent because of timeout of SMTP server.
So I need to modify the SLA to retry to send timeout mails.
But I don't know how to modify pyMaxAttmepts and pyMinimuAgeForProcessing.
I tried below operation but it doesn't work.
<Operation>
do a SaveAs of pyDefault model from System-Queue- class to System-Queue-ServiceLevel class. Then set mentioned properties in it.
pyMaxAttempts
pyMinimumAgeForProcessing
***Updated by moderator: Lochan to update Categories***
-
Like (0)
-
Share this page Facebook Twitter LinkedIn Email Copying... Copied!
Accenture
SG
For SLA the work item is pushed into Queue in activity Assign-AddAssign there in that activity 2nd step all the required properties are set where "pyMinimumAgeForProcessing" is set from Goal time, but pyMaxAttempts is not set.
Try checking that activity. You may get some help there.
Pegasystems Inc.
JP
Thanks for the reply.
I checked activity Assign-AddAssign , there are ".pyMinimumDateTimeForProcessing" which is set Primary.pxGoalTime.
So I add "pyMinimumAgeForProcessing" as 60000 and "pyMaxAttempts" as 5 but this doesn't work.
I cheked the xml and found "pyMinimumAgeForProcessing" and "pyMaxAttempts" are not changed.
<?xml version="1.0"?>
Thanks for the reply.
I checked activity Assign-AddAssign , there are ".pyMinimumDateTimeForProcessing" which is set Primary.pxGoalTime.
So I add "pyMinimumAgeForProcessing" as 60000 and "pyMaxAttempts" as 5 but this doesn't work.
I cheked the xml and found "pyMinimumAgeForProcessing" and "pyMaxAttempts" are not changed.
<?xml version="1.0"?>
<pagedata>
<pyAttempts>1</pyAttempts>
<pxTaskName>Assignment4</pxTaskName>
<pxUpdateSystemID>89a89bb661eae59b42c9e0800ded0c73</pxUpdateSystemID>
<pxUpdateAgentName>Pega-ProCom:ServiceLevelEvents</pxUpdateAgentName>
<pyItemId>SYSTEM-QUEUE-SERVICELEVEL 149273631498300089A89BB661EAE59B42C9E0800DED0C73</pyItemId>
<pyPriority>0</pyPriority>
<pxLastExecutionDateTime>20170421T005834.983 GMT</pxLastExecutionDateTime>
<pxAssignmentClass>Assign-WorkBasket</pxAssignmentClass>
<pxCreateDateTime>20170421T005834.983 GMT</pxCreateDateTime>
<pxAssignmentHandle>ASSIGN-WORKBASKET SEVEN-CRM-WORK G-36!GORENRAKU_0</pxAssignmentHandle>
<pyMinimumDateTimeForProcessing>20170420T005500.000 GMT</pyMinimumDateTimeForProcessing>
<pyUseApplications>true</pyUseApplications>
<pyItemStatus>Scheduled</pyItemStatus>
<pxUpdateSystemNode>L13361WAP</pxUpdateSystemNode>
<pxInsName>SYSTEM-QUEUE-SERVICELEVEL 149273631498300089A89BB661EAE59B42C9E0800DED0C73</pxInsName>
<pxSaveDateTime>20170421T005834.983 GMT</pxSaveDateTime>
<pyAccessGroup>CRM:Administrators</pyAccessGroup>
<pyAgentName>Pega-ProCom:ServiceLevelEvents</pyAgentName>
<pyMinimumAgeForProcessing>-1</pyMinimumAgeForProcessing>
<pzInsKey>SYSTEM-QUEUE-SERVICELEVEL SYSTEM-QUEUE-SERVICELEVEL 149273631498300089A89BB661EAE59B42C9E0800DED0C73</pzInsKey>
<pxAssignmentCreateDateTime>20170421T005810.120 GMT</pxAssignmentCreateDateTime>
<pyMaxAttempts>1</pyMaxAttempts>
<pxEvent>Deadline</pxEvent>
<pxObjClass>System-Queue-ServiceLevel</pxObjClass>
<pyRetainOnSuccess>false</pyRetainOnSuccess>
<pyRetainOnFailure>true</pyRetainOnFailure>
<pySelectId>149273631498300089A89BB661EAE59B42C9E0800DED0C73</pySelectId>
<pzStatus>valid</pzStatus>
<pyRecurrenceDetails>
<pxObjClass>Data-Event-Recurring</pxObjClass>
</pyRecurrenceDetails>
</pagedata>
Soprasteria
CH
Hi,
When you are trying the update the pymaxattempts and pyminimumAgeForProcessing Values you need to dequeue the assignment instance and enqueue the queue instance (System-Queue-ServiceLevel).
tools.getThread().getQueueManager().deleteDeferred(myStepPage.getString(".pxRefQueueKey")); /* the step page should be assignment page*/
tools.getThread().getQueueManager().enqueueDeferred(myStepPage); /* myStepPage should be instance of (System-Queue-ServiceLevel) */
This might help you
Thanks
Som
Accenture
SG
How did you test the scenario? Did you traced the agent PRO-COM. Check if properties are getting inserted into the table "pr_sys_queue_sla" when you create an assignmnet.
Soprasteria
CH
Hi,
When you are trying the update the pymaxattempts and pyminimumAgeForProcessing Values you need to dequeue the assignment instance and enqueue the queue instance (System-Queue-ServiceLevel).
tools.getThread().getQueueManager().deleteDeferred(myStepPage.getString(".pxRefQueueKey")); /* the step page should be assignment page*/
tools.getThread().getQueueManager().enqueueDeferred(myStepPage); /* myStepPage should be instance of (System-Queue-ServiceLevel) */
This might help you
Pegasystems Inc.
JP
Hi, I could have work around for this issue and could solve this issue.
So I didn't try your suggestion but thank you for your assistance.
Pegasystems Inc.
JP
First I tried to send separate e-mail to each of recipients.
But when there are too many recipients it occurs session timeout error on SMTP server.
That's why I tried to update pyMaxAttempts to retry send mail when session timout occures.
But I could have work arond which use sending e-mail by BCC not To.
By using BCC , I only send one e-mail for multi recipeints and avoild to cause session timeout error.