Skip to content

Commit

Permalink
Fixing compilation problem due to last changes in jbpm.
Browse files Browse the repository at this point in the history
  • Loading branch information
Demian Calcaprina committed Apr 13, 2012
1 parent 3c63591 commit 0fdd1ae
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -246,13 +246,13 @@ public void executeWorkItem(WorkItem workItem, WorkItemManager manager) {
notification.setBusinessAdministrators(businessAdministrators);

//Email Header
Map<String,EmailNotificationHeader> emailHeaders = new HashMap<String, EmailNotificationHeader>();
Map<Language,EmailNotificationHeader> emailHeaders = new HashMap<Language, EmailNotificationHeader>();
EmailNotificationHeader emailHeader = new EmailNotificationHeader();
emailHeader.setLanguage("en-UK");
emailHeader.setFrom("[email protected]");
emailHeader.setSubject(taskName+" reaches its deadline");
emailHeader.setBody(taskName+" reaches its deadline. Now it is your responsability!");
emailHeaders.put("en-UK", emailHeader);
emailHeaders.put(new Language("en-UK"), emailHeader);
notification.setEmailHeaders(emailHeaders);

notifications.add(notification);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -229,13 +229,13 @@ public void executeWorkItem(WorkItem workItem, WorkItemManager manager) {
notification.setBusinessAdministrators(businessAdministrators);

//Email Header
Map<String,EmailNotificationHeader> emailHeaders = new HashMap<String, EmailNotificationHeader>();
Map<Language,EmailNotificationHeader> emailHeaders = new HashMap<Language, EmailNotificationHeader>();
EmailNotificationHeader emailHeader = new EmailNotificationHeader();
emailHeader.setLanguage("en-UK");
emailHeader.setFrom("[email protected]");
emailHeader.setSubject(taskName+" reaches its deadline");
emailHeader.setBody(taskName+" reaches its deadline. Now it is your responsability!");
emailHeaders.put("en-UK", emailHeader);
emailHeaders.put(new Language("en-UK"), emailHeader);
notification.setEmailHeaders(emailHeaders);

notifications.add(notification);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,9 @@ public void setup() throws IOException{
((DefaultEscalatedDeadlineHandler)this.getEscalatedDeadlineHandler()).setManager(this.ksession.getWorkItemManager());

//Configure a smtp server
wiser = new Wiser(1125);
wiser = new Wiser();
wiser.setHostname("localhost");
wiser.setPort(1125);
wiser.start();

}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@
<dataInput id="_3_Deadline_Reassignment_Potential_OwnersInput" name="Deadline_Reassignment_Potential_Owners" />
<dataInput id="_3_CommentInput" name="Comment" />
<dataInput id="_3_SkippableInput" name="Skippable" />
<dataInput id="_3_ContentInput" name="Content" />
<dataInput id="_3_TaskNameInput" name="TaskName" />
<dataInput id="_3_GroupIdInput" name="GroupId" />
<dataInput id="_3_PriorityInput" name="Priority" />
Expand All @@ -45,7 +44,6 @@
<dataInputRefs>_3_Deadline_Reassignment_Potential_OwnersInput</dataInputRefs>
<dataInputRefs>_3_CommentInput</dataInputRefs>
<dataInputRefs>_3_SkippableInput</dataInputRefs>
<dataInputRefs>_3_ContentInput</dataInputRefs>
<dataInputRefs>_3_TaskNameInput</dataInputRefs>
<dataInputRefs>_3_GroupIdInput</dataInputRefs>
<dataInputRefs>_3_PriorityInput</dataInputRefs>
Expand Down Expand Up @@ -79,13 +77,6 @@
<to xsi:type="tFormalExpression">_3_SkippableInput</to>
</assignment>
</dataInputAssociation>
<dataInputAssociation>
<targetRef>_3_ContentInput</targetRef>
<assignment>
<from xsi:type="tFormalExpression"></from>
<to xsi:type="tFormalExpression">_3_ContentInput</to>
</assignment>
</dataInputAssociation>
<dataInputAssociation>
<targetRef>_3_TaskNameInput</targetRef>
<assignment>
Expand Down

0 comments on commit 0fdd1ae

Please sign in to comment.