|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectwt.enterprise.BasicTemplateProcessor
wt.workflow.engine.WfTemplateProcessor
WfTemplateProcessor
provides support for the generation
of execution time notification. These notification are the following:
Field Summary | |
private static String |
ABORT_NOTIFICATION
|
private static String |
APPROACHING_DEADLINE_NOTIFICATION
|
private static String |
CLASSNAME
|
private static String |
COMPLETE_NOTIFICATION
|
private static String |
DEFAULT_NOTIFICATION
|
private String |
eventMessage
|
private ObjectIdentifier |
eventSourceId
|
private ObjectIdentifier |
eventSourceParentId
|
private Timestamp |
eventTime
|
private static String |
EXCEPTION_NOTIFICATION
|
static long |
EXTERNALIZATION_VERSION_UID
|
static long |
EXTERNALIZATION_VERSION_UID_62602
|
private static String |
NOTIFICATION_TYPE
|
protected static long |
OLD_FORMAT_VERSION_UID
|
private static String |
OVERDUE_NOTIFICATION
|
private WfState |
previousState
|
private boolean |
projectLinkStyle
|
private static String |
RESOURCE
|
(package private) static long |
serialVersionUID
|
private String |
titleKey
|
private ObjectIdentifier |
workItemId
|
Fields inherited from interface wt.templateutil.processor.ContextTranslator |
CONTEXT_LIST_IN, CONTEXT_LIST_OUT |
Fields inherited from interface wt.templateutil.processor.ContextHolder |
CONTEXT_ACTION, CONTEXT_CLASS_NAME, CONTEXT_OBJ, CONTEXT_PROPERTIES, FORM_DATA, QUERY_DATA, RESPONSE_EXCEPTIONS, RESPONSE_FOOTERS, RESPONSE_HEADERS, RESPONSE_MESSAGES, RESPONSE_STRING, STATUS |
Constructor Summary | |
WfTemplateProcessor()
|
Method Summary | |
void |
getDeadline(Properties properties,
Locale locale,
OutputStream os)
Inserts source object deadline in notification body. |
String |
getEventMessage()
Gets the value of the attribute: eventMessage; Event's associated message (e.g. |
ObjectIdentifier |
getEventSourceId()
Gets the value of the attribute: eventSourceId; Object identifier of the execution object that generated the event. |
ObjectIdentifier |
getEventSourceParentId()
Gets the value of the attribute: eventSourceParentId; Object identifier of the parent of execution object that generated the event. |
Timestamp |
getEventTime()
Gets the value of the attribute: eventTime; Time event occurred. |
void |
getMessage(Properties properties,
Locale locale,
OutputStream os)
Inserts event message in notification body. |
void |
getOverdueTaskRow(Properties properties,
Locale locale,
OutputStream os)
It the notification is generated for an overdue activity, a row is inserted in the notification with a link to the overdue task. |
void |
getOverdueTaskRowNoLink(Properties properties,
Locale locale,
OutputStream os)
|
void |
getOverdueTaskURL(Properties properties,
Locale locale,
OutputStream os)
Writes the URL to the overdue or approaching deadline task. |
void |
getOwnerRole(Properties properties,
Locale locale,
OutputStream os)
|
void |
getParentProcess(Properties properties,
Locale locale,
OutputStream os)
Inserts source object parent process name in notification body. |
void |
getParentProcessRow(Properties properties,
Locale locale,
OutputStream os)
This method is intended to be used in notifications which are shared by ProjectLink and Windchill. |
void |
getParentProcessRowNoLink(Properties properties,
Locale locale,
OutputStream os)
|
void |
getPJLNotificationTitleRow(Properties properties,
Locale locale,
OutputStream os)
This method is intended to be used in notifications which are shared by ProjectLink and Windchill. |
WfState |
getPreviousState()
Gets the value of the attribute: previousState; State of the obejct prior to the event. |
private WfProcess |
getProcess()
|
void |
getProcessManagerURL(Properties properties,
Locale locale,
OutputStream os)
Returns the URL to the process manager. |
void |
getProcessManagerURLPlain(Properties properties,
Locale locale,
OutputStream os)
Returns the URL to the process manager without HTML tags. |
void |
getState(Properties properties,
Locale locale,
OutputStream os)
Inserts source object previous state in notification body. |
void |
getTaskOwnerRow(Properties properties,
Locale locale,
OutputStream os)
|
void |
getTime(Properties properties,
Locale locale,
OutputStream os)
Inserts event time in notification body. |
String |
getTitleKey()
Gets the value of the attribute: titleKey; Key value to localize a ProjectLink style title bar in the body of the notification Supported API: false |
ObjectIdentifier |
getWorkItemId()
Gets the value of the attribute: workItemId; Object identifier of the overdue or approaching deadline workitem. |
void |
handleRequest(HTTPRequest req,
HTTPResponse resp)
This method required to implement TemplateProcessor interface. |
boolean |
isProjectLinkStyle()
Gets the value of the attribute: projectLinkStyle; Key to indicate if this should be a ProjectLink style notification Supported API: false |
void |
projectLinkAttributes(Properties properties,
Locale locale,
OutputStream os)
If this is a notification from a ProjectLink object, print the ProjectLink attributesInserts event message in notification body. |
void |
readExternal(ObjectInput input)
Reads the non-transient fields of this class from an external source. |
private boolean |
readOldVersion(ObjectInput input,
long readSerialVersionUID,
boolean passThrough,
boolean superDone)
Reads the non-transient fields of this class from an external source, which is not the current version. |
protected boolean |
readVersion(WfTemplateProcessor thisObject,
ObjectInput input,
long readSerialVersionUID,
boolean passThrough,
boolean superDone)
Reads the non-transient fields of this class from an external source. |
void |
setEventMessage(String a_EventMessage)
Sets the value of the attribute: eventMessage; Event's associated message (e.g. |
void |
setEventSourceId(ObjectIdentifier a_EventSourceId)
Sets the value of the attribute: eventSourceId; Object identifier of the execution object that generated the event. |
void |
setEventSourceParentId(ObjectIdentifier a_EventSourceParentId)
Sets the value of the attribute: eventSourceParentId; Object identifier of the parent of execution object that generated the event. |
void |
setEventTime(Timestamp a_EventTime)
Sets the value of the attribute: eventTime; Time event occurred. |
void |
setPreviousState(WfState a_PreviousState)
Sets the value of the attribute: previousState; State of the obejct prior to the event. |
void |
setProjectLinkStyle(boolean a_ProjectLinkStyle)
Sets the value of the attribute: projectLinkStyle; Key to indicate if this should be a ProjectLink style notification Supported API: false |
void |
setTitleKey(String a_TitleKey)
Sets the value of the attribute: titleKey; Key value to localize a ProjectLink style title bar in the body of the notification Supported API: false |
void |
setWorkItemId(ObjectIdentifier a_WorkItemId)
Sets the value of the attribute: workItemId; Object identifier of the overdue or approaching deadline workitem. |
private String |
stripHtmlFormat(String urlRef)
|
void |
writeExternal(ObjectOutput output)
Writes the non-transient fields of this class to an external source. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private static final String RESOURCE
private static final String CLASSNAME
private String eventMessage
private Timestamp eventTime
private WfState previousState
private ObjectIdentifier eventSourceId
private ObjectIdentifier eventSourceParentId
private String titleKey
private boolean projectLinkStyle
private ObjectIdentifier workItemId
static final long serialVersionUID
public static final long EXTERNALIZATION_VERSION_UID
protected static final long OLD_FORMAT_VERSION_UID
public static final long EXTERNALIZATION_VERSION_UID_62602
private static final String NOTIFICATION_TYPE
private static final String ABORT_NOTIFICATION
private static final String APPROACHING_DEADLINE_NOTIFICATION
private static final String COMPLETE_NOTIFICATION
private static final String EXCEPTION_NOTIFICATION
private static final String OVERDUE_NOTIFICATION
private static final String DEFAULT_NOTIFICATION
Constructor Detail |
public WfTemplateProcessor()
Method Detail |
public void writeExternal(ObjectOutput output) throws IOException
writeExternal
in interface Externalizable
writeExternal
in class BasicTemplateProcessor
output
-
IOException
public void readExternal(ObjectInput input) throws IOException, ClassNotFoundException
readExternal
in interface Externalizable
readExternal
in class BasicTemplateProcessor
input
-
IOException
ClassNotFoundException
protected boolean readVersion(WfTemplateProcessor thisObject, ObjectInput input, long readSerialVersionUID, boolean passThrough, boolean superDone) throws IOException, ClassNotFoundException
thisObject
- input
- readSerialVersionUID
- passThrough
- superDone
-
IOException
ClassNotFoundException
private boolean readOldVersion(ObjectInput input, long readSerialVersionUID, boolean passThrough, boolean superDone) throws IOException, ClassNotFoundException
input
- readSerialVersionUID
- passThrough
- superDone
-
IOException
ClassNotFoundException
public String getEventMessage()
public void setEventMessage(String a_EventMessage)
a_EventMessage
- public Timestamp getEventTime()
public void setEventTime(Timestamp a_EventTime)
a_EventTime
- public WfState getPreviousState()
public void setPreviousState(WfState a_PreviousState)
a_PreviousState
- public ObjectIdentifier getEventSourceId()
public void setEventSourceId(ObjectIdentifier a_EventSourceId)
a_EventSourceId
- public ObjectIdentifier getEventSourceParentId()
public void setEventSourceParentId(ObjectIdentifier a_EventSourceParentId)
a_EventSourceParentId
- public String getTitleKey()
public void setTitleKey(String a_TitleKey)
a_TitleKey
- public boolean isProjectLinkStyle()
public void setProjectLinkStyle(boolean a_ProjectLinkStyle)
a_ProjectLinkStyle
- public ObjectIdentifier getWorkItemId()
public void setWorkItemId(ObjectIdentifier a_WorkItemId)
a_WorkItemId
- public void handleRequest(HTTPRequest req, HTTPResponse resp)
handleRequest
in interface TemplateProcessor
req
- resp
- public void getMessage(Properties properties, Locale locale, OutputStream os)
properties
- locale
- os
- public void getTime(Properties properties, Locale locale, OutputStream os)
properties
- locale
- os
- public void getState(Properties properties, Locale locale, OutputStream os)
properties
- locale
- os
- public void getParentProcess(Properties properties, Locale locale, OutputStream os)
properties
- locale
- os
- public void getDeadline(Properties properties, Locale locale, OutputStream os)
properties
- locale
- os
- public void getProcessManagerURL(Properties properties, Locale locale, OutputStream os)
properties
- locale
- os
- public void getProcessManagerURLPlain(Properties properties, Locale locale, OutputStream os)
properties
- locale
- os
- public void getParentProcessRow(Properties properties, Locale locale, OutputStream os)
properties
- locale
- os
- public void getPJLNotificationTitleRow(Properties properties, Locale locale, OutputStream os)
properties
- locale
- os
- public void getOverdueTaskRow(Properties properties, Locale locale, OutputStream os)
properties
- locale
- os
- public void getOverdueTaskURL(Properties properties, Locale locale, OutputStream os)
properties
- locale
- os
- private WfProcess getProcess()
private String stripHtmlFormat(String urlRef)
public void projectLinkAttributes(Properties properties, Locale locale, OutputStream os)
properties
- locale
- os
- public void getTaskOwnerRow(Properties properties, Locale locale, OutputStream os)
public void getOverdueTaskRowNoLink(Properties properties, Locale locale, OutputStream os)
public void getOwnerRole(Properties properties, Locale locale, OutputStream os)
public void getParentProcessRowNoLink(Properties properties, Locale locale, OutputStream os)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |