[英]How to set minutes to a schedule reporting task in pega
Not out of the box.不是开箱即用。 You would need to change a property named
pyMinimumDateTimeForProcessing
, and that can be done using a Data Transform (or an Activity).您需要更改名为
pyMinimumDateTimeForProcessing
的属性,这可以使用数据转换(或活动)来完成。 Here's an excellent summary how scheduled reports work: https://myknowpega.com/2019/12/12/schedule-reports-pega/ .这是一个很好的总结计划报告的工作原理: https://myknowpega.com/2019/12/12/schedule-reports-pega/ 。 You can see where aforementioned property resides at the following heading:
您可以在以下标题中查看上述属性的位置:
- Pega creates a new queue instance for the agent
Pega 为代理创建一个新的队列实例
pyScheduleTaskInfo
is the Flow Action
which is called on schedule report. pyScheduleTaskInfo
是在计划报告中调用的Flow Action
。 Which is not a Final
rule.这不是
Final
规则。 That means you can modify this flow action.这意味着您可以修改此流程操作。
If you look into 16th step of post processing Activity pzPostProcess
(a 'Final' activity), you will find below lines.如果您查看后处理活动
pzPostProcess
(“最终”活动)的第 16 步,您会发现以下几行。
int hour = myStepPage.getInteger(".pyTimeOfDay");
int minute= myStepPage.getInteger(".pyMinuteOfHour");
int second = myStepPage.getInteger(".pySecondOfMinute");
But, in the flow action section
pyTaskScheduling
, only pyTimeofDay
is used.但是,在流程操作
section
pyTaskScheduling
中,仅使用pyTimeofDay
。 This is not a final
section.这不是
final
一节。 Hence, you can save as it your ruleset.因此,您可以将其保存为您的规则集。
pyMinuteOfHour
and pySecondOfMinute
are not used in the section.该部分未使用
pyMinuteOfHour
和pySecondOfMinute
。 And these properties are no longer present in class Embed-ScheduledTask-Scheduling
which is the primary class for section pyTaskScheduling
.这些属性不再存在于 class
Embed-ScheduledTask-Scheduling
中,这是 pyTaskScheduling 部分的主要pyTaskScheduling
。 Hence you can not use these properties in section pyTaskScheduling
.因此,您不能在
pyTaskScheduling
部分中使用这些属性。
You need to first save as section pyTaskScheduling
(with same name and same class) in your ruleset.您需要首先在规则集中另存为
pyTaskScheduling
部分(具有相同的名称和相同的类)。
Then add new properties just after hour
dropdown to select minutes and seconds.然后在
hour
后的下拉列表中添加新属性到 select 分钟和秒。
Save as activity pzPostProcess
in your ruleset with other name and same class(since its final rule, name should be different) and modify below two lines of Java step 16.在您的规则集中使用其他名称和相同的类保存为活动
pzPostProcess
(由于其最终规则,名称应该不同)并在 Java 步骤 16 的两行下方进行修改。
int minute= myStepPage.getInteger(".pyMinuteOfHour"); // instead of pyMinuteofHour, add your property
int second = myStepPage.getInteger(".pySecondOfMinute"); // instead of pySecondOfMinute, add your property
Now save as flowaction pyScheduleTaskInfo
in your ruleset(with same name and same class) and replace the post processing activity with your activity.现在在您的规则集中保存为 flowaction
pyScheduleTaskInfo
(具有相同的名称和相同的类),并用您的活动替换后处理活动。
I have not tried this solution but you can try it.我没有尝试过这个解决方案,但你可以试试。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.