How to create and configure a Scheduled Task
I want to implement a scheduled task which:
1. queries for all the work items which are in 'Live' state and are not completed on the due date 2. And sends an email notification to the work item owner every day once, starting a day after the due date. To start off with this, I have created a scheduled task by extending AbstractAutoScheduledTask and have overriden getTaskId() and runTask() methods. Can you guide me on how to set the configuration properties for the same . For example, fixed delay for mail notification Also how can I programmatically schedule this task for my testing(debugging)and not wait for the scheduler. Also, it would be great if you can share similar RTC example with me. |
One answer
Hi,
Need one help on RPC(Product Conductor). I have created an operation and have added an advisor to this. Here is my code to advise and exceute on my operation: IOperationReport report = serverProcess .adviseAndExecute(calculateEffortOperation); I can make out that the advisors if configured, get executed. But after this Iam adding: IAdvisorDeclaration[] advisors= serverProcess.getAdvisorDeclarations(projectAreaWhole, OPERATION_ID_MAIL_NOTIFICATION); where OPERATION_ID_MAIL_NOTIFICATION is the operation Id. But advisors returned are null. Can you help me identify what could be the problem, or any other way I should be fetching advisors.? |
Your answer
Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.