Skip to content

Commit

Permalink
-Task Deadline Escalation: test added
Browse files Browse the repository at this point in the history
  • Loading branch information
esteban-aliverti committed Apr 5, 2011
1 parent fae9386 commit 1603138
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -236,8 +236,8 @@ public void executeWorkItem(WorkItem workItem, WorkItemManager manager) {
EmailNotification notification = new EmailNotification();

//Recipients
String[] deadlineReassignments = deadlineReassignment.trim().split(",");
for (String r : deadlineReassignments) {
String[] notificationRecipients = deadlineNotificationRecipients.trim().split(",");
for (String r : notificationRecipients) {
recipientsEntities.add(new User(r.trim()));
}
notification.setRecipients(recipientsEntities);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ public void cleanup(){
public void taskEscalationTest() throws InterruptedException, MessagingException, IOException{
Map<String,Object> parameters = new HashMap<String, Object>();
parameters.put("Task_A_Deadline_Time", 3000L);
parameters.put("Task_A_Deadline_Notification_Recipients", "Tony Stark,john");
parameters.put("Task_A_Deadline_Notification_Recipients", "Steve Rogers,Bruce Wayne");
parameters.put("Task_A_Deadline_Reassignment_Potential_Owners", "Steve Rogers,Bruce Wayne");

//Start the process using its id
Expand Down

0 comments on commit 1603138

Please sign in to comment.