Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

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.

0 votes



One answer

Permanent link
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.?

0 votes

Your answer

Register or log in to post 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.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 10,952

Question asked: Sep 23 '09, 8:34 a.m.

Question was seen: 4,922 times

Last updated: Sep 23 '09, 8:34 a.m.

Confirmation Cancel Confirm