Thursday 6 June 2013

SOA 11G Human Task Email Subject Customization

SOA 11G allows only limited customizations of notification email subjects.
Advanced customization would be available from 12c.

This subject is dealt with in Oracle KM Note
"HumanTask Email Notification Customization in SOA 11g [ID 1420793.1]"

However , this note is slightly misleading.

EXPLANATION:
------------------
The "Email Subject" is built based on the following resource:
bpm-services.jar#\bpel\services\workflow\resource\WorkflowLabels.properties

The key-value for the subject line is :
TASK_NOTIF_MSG.SECURE_NOTIFICATION_SUBJECT=Task {0} requires your attention.

The above subject string(Task {0} requires your attention.)  contains two types of attributes
A. Static
B. Dynamic [these attributes are the represented as {}]

Following the document 1420793.1 , we can only customize the static aspects of the subject.

However, the dynamic values [{0}] are generated by the code and cannot be
customized
(e.g) "TASK_NOTIF_MSG.SECURE_NOTIFICATION_SUBJECT",new String[] {taskNumber}
where taskNumber = {0}.

Customizing the dynamic aspects of the subject line would require changes to the existing HWF code and is tracked via
Enhancement Bug 13706421 - [ENH] CHANGE THE SUBJECT OF THE EMAIL NOTIFICATION
FROM HUMAN WORKFLOW

No comments:

Post a Comment