|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectwt.workflow.engine.WfAssigneeNotification
This class is to be used for variable modification of the parameters
associated with overdue (eg. deadline) assignee notifications. It does
not allow for modification to the defined Roles to be notified at the
actual deadline (eg. the Assignees). It simply allows one to set or
unset whether to notify the Assignee roles defined in the workflow deadline
tab; and whether to notify the Responsible Role. It also allows one
to change the offsets, in days, for Approaching and Past deadline notifications.
If these items are set in the workflow template's deadline tab, those
values will be used as defaults to populate the defaults of this variables
attributes. This variable's default values are zero days and false (no
notification).
Supported API: true
Extendable: false
Field Summary | |
private static String |
CLASSNAME
|
static long |
EXTERNALIZATION_VERSION_UID
|
static int |
MILLIS_IN_DAY
|
private boolean |
notifyAssignees
|
private boolean |
notifyResponsibleRole
|
protected static long |
OLD_FORMAT_VERSION_UID
|
private static String |
RESOURCE
|
(package private) static long |
serialVersionUID
|
private int |
timeAfterDeadline
|
private int |
timeAfterDeadlineAssignees
|
private int |
timeBeforeDeadline
|
private int |
timeBeforeDeadlineAssignees
|
Constructor Summary | |
WfAssigneeNotification()
Creates a WfDueDate - no arg contructor. |
|
WfAssigneeNotification(boolean notify_assignees,
int days_prior_assignees,
int days_after_assignees,
boolean notify_responsible,
int days_prior,
int days_after)
Creates a WfAssigneeNotification specifying whether to notify Assignees and/or ResponsibleRole, and applicable notification times (days) before and/or after deadline specified. |
|
WfAssigneeNotification(String whoAndWhen)
Creates a WfAssigneeNotification specifying whether to notify Assignees and/or ResponsibleRole, and applicable notification times (days) before and/or after deadline specified as strings. |
Method Summary | |
private int |
cleanIntValue(int i)
|
private int |
cleanStringValue(String s)
|
WfAssigneeNotification |
copy()
|
String |
debugOutput()
|
int |
getTimeAfterDeadline()
Gets the value of the attribute: timeAfterDeadline; send past deadline message 'n' days before Supported API: false |
int |
getTimeAfterDeadlineAssignees()
Gets the value of the attribute: timeAfterDeadlineAssignees; send past deadline message 'n' days before Supported API: false |
long |
getTimeAfterDeadlineAssigneesInMillis()
|
long |
getTimeAfterDeadlineInMillis()
|
int |
getTimeBeforeDeadline()
Gets the value of the attribute: timeBeforeDeadline; send approaching deadline message 'n' days before Supported API: false |
int |
getTimeBeforeDeadlineAssignees()
Gets the value of the attribute: timeBeforeDeadlineAssignees; send approaching deadline message 'n' days before Supported API: false |
long |
getTimeBeforeDeadlineAssigneesInMillis()
|
long |
getTimeBeforeDeadlineInMillis()
|
boolean |
isNotifyAssignees()
Gets the value of the attribute: notifyAssignees; set whether the task recipients having uncompleted tasks are notified. |
boolean |
isNotifyResponsibleRole()
Gets the value of the attribute: notifyResponsibleRole; set if Responsible Role is notified. |
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(WfAssigneeNotification thisObject,
ObjectInput input,
long readSerialVersionUID,
boolean passThrough,
boolean superDone)
Reads the non-transient fields of this class from an external source. |
void |
setNotifyAssignees(boolean a_NotifyAssignees)
Sets the value of the attribute: notifyAssignees; set whether the task recipients having uncompleted tasks are notified. |
void |
setNotifyResponsibleRole(boolean a_NotifyResponsibleRole)
Sets the value of the attribute: notifyResponsibleRole; set if Responsible Role is notified. |
void |
setTimeAfterDeadline(int a_TimeAfterDeadline)
Sets the value of the attribute: timeAfterDeadline; send past deadline message 'n' days before Supported API: false |
void |
setTimeAfterDeadlineAssignees(int a_TimeAfterDeadlineAssignees)
Sets the value of the attribute: timeAfterDeadlineAssignees; send past deadline message 'n' days before Supported API: false |
void |
setTimeBeforeDeadline(int a_TimeBeforeDeadline)
Sets the value of the attribute: timeBeforeDeadline; send approaching deadline message 'n' days before Supported API: false |
void |
setTimeBeforeDeadlineAssignees(int a_TimeBeforeDeadlineAssignees)
Sets the value of the attribute: timeBeforeDeadlineAssignees; send approaching deadline message 'n' days before Supported API: false |
String |
toString()
Supported API: false |
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, wait, wait, wait |
Field Detail |
private static final String RESOURCE
private static final String CLASSNAME
private boolean notifyAssignees
private int timeBeforeDeadlineAssignees
private int timeAfterDeadlineAssignees
private boolean notifyResponsibleRole
private int timeBeforeDeadline
private int timeAfterDeadline
static final long serialVersionUID
public static final long EXTERNALIZATION_VERSION_UID
protected static final long OLD_FORMAT_VERSION_UID
public static final int MILLIS_IN_DAY
Constructor Detail |
public WfAssigneeNotification()
public WfAssigneeNotification(boolean notify_assignees, int days_prior_assignees, int days_after_assignees, boolean notify_responsible, int days_prior, int days_after)
notify_assignees
- Set whether the task Assignees should recieve deadline notifications.days_prior_assignees
- Integer specifying how many days before the Assignees should be notified of the impending deadline.days_after_assignees
- Integer specifying how many days following the Assignees should be notified of the expired deadline if the object is not yet complete.notify_responsible
- Set whether the Responsible Role should recieve deadline notifications.days_prior
- Integer specifying how many days before the Responsible Role should be notified of the impending deadline.days_after
- Integer specifying how many days following the Responsible Role should be notified of the expired deadline if the object is not yet complete.public WfAssigneeNotification(String whoAndWhen)
whoAndWhen
- This String is a comma separated list values used to construct this object.
Example: true,2,1,true,3,1
The order is: notify_assignees, days_prior_assignees, days_after_assignees, notify_responsible, days_prior, days_afterMethod Detail |
public void writeExternal(ObjectOutput output) throws IOException
writeExternal
in interface Externalizable
output
-
IOException
public void readExternal(ObjectInput input) throws IOException, ClassNotFoundException
readExternal
in interface Externalizable
input
-
IOException
ClassNotFoundException
protected boolean readVersion(WfAssigneeNotification 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 boolean isNotifyAssignees()
public void setNotifyAssignees(boolean a_NotifyAssignees) throws WTPropertyVetoException
a_NotifyAssignees
-
WTPropertyVetoException
public int getTimeBeforeDeadlineAssignees()
public void setTimeBeforeDeadlineAssignees(int a_TimeBeforeDeadlineAssignees) throws WTPropertyVetoException
a_TimeBeforeDeadlineAssignees
-
WTPropertyVetoException
public int getTimeAfterDeadlineAssignees()
public void setTimeAfterDeadlineAssignees(int a_TimeAfterDeadlineAssignees) throws WTPropertyVetoException
a_TimeAfterDeadlineAssignees
-
WTPropertyVetoException
public boolean isNotifyResponsibleRole()
public void setNotifyResponsibleRole(boolean a_NotifyResponsibleRole) throws WTPropertyVetoException
a_NotifyResponsibleRole
-
WTPropertyVetoException
public int getTimeBeforeDeadline()
public void setTimeBeforeDeadline(int a_TimeBeforeDeadline) throws WTPropertyVetoException
a_TimeBeforeDeadline
-
WTPropertyVetoException
public int getTimeAfterDeadline()
public void setTimeAfterDeadline(int a_TimeAfterDeadline) throws WTPropertyVetoException
a_TimeAfterDeadline
-
WTPropertyVetoException
public String toString()
public String debugOutput()
public long getTimeBeforeDeadlineInMillis()
public long getTimeAfterDeadlineInMillis()
public long getTimeBeforeDeadlineAssigneesInMillis()
public long getTimeAfterDeadlineAssigneesInMillis()
private int cleanIntValue(int i)
private int cleanStringValue(String s)
public WfAssigneeNotification copy()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |