wt.workflow.work
Class WfAssignment

java.lang.Object
  extended bywt.fc.WTObject
      extended bywt.workflow.work.WfAssignment
All Implemented Interfaces:
DisplayIdentification, Externalizable, NetFactor, ObjectMappable, Persistable, Serializable
Direct Known Subclasses:
ProjectAssignment

public class WfAssignment
extends WTObject
implements Externalizable

WfAssignment links WfActivity requests for resources to actual users or group of users. Assignments are created as part of the resource selection process before an activity becomes ready for execution. The lifetime of an assignment is limited by that of the associated activity.

Although the assignee is a reference to a principal (users and groups) only users are allowed.

Use the newWfAssignment static factory method(s), not the WfAssignment constructor, to construct instances of this class. Instances must be constructed using the static factory(s), in order to ensure proper initialization of the instance.



Supported API: false

Extendable: false

See Also:
Serialized Form

Field Summary
private  WfAssignedActivity activity
           
private  WfAssignedActivityTemplate activityTemplate
           
private  WfAssignee assignee
           
static String ASSIGNEE
          Label for the attribute.
private  CalendarServiceFwd calService
           
private static String CLASSNAME
           
private  boolean complete
           
static String COMPLETE
          Label for the attribute.
private static String DEFAULT_NOTIFICATION_SENDER
           
private static String DEFAULT_ROLE
           
static long EXTERNALIZATION_VERSION_UID
           
private static String IUR_NOTIFICATION_TEMPLATE
           
protected static long OLD_FORMAT_VERSION_UID
           
private  Vector principals
           
static String PRINCIPALS
          Label for the attribute.
private static String RESOURCE
           
(package private) static long serialVersionUID
           
private static String SERVICE_NAME
           
private  ObjectReference source
           
static String SOURCE
          Label for the attribute.
private  WfAssignmentState status
           
static String STATUS
          Label for the attribute; State of the assignment.
private static int STATUS_UPPER_LIMIT
           
private static boolean STORE_BALLOTS
           
private static String teamKey
           
private static boolean TRANSFERADHOCRIGHTS
           
static String TRIP_COUNT
          Label for the attribute.
private  int tripCount
           
private static String URL_PROCESSOR_METHOD
           
private static boolean VERBOSE
           
private static String WORK_NOTIFICATION_TEMPLATE
           
 
Fields inherited from class wt.fc.WTObject
CREATE_TIMESTAMP, MODIFY_TIMESTAMP
 
Fields inherited from interface wt.fc.Persistable
IDENTITY, PERSIST_INFO, TYPE
 
Fields inherited from interface wt.identity.DisplayIdentification
DISPLAY_IDENTIFIER, DISPLAY_IDENTITY, DISPLAY_TYPE
 
Constructor Summary
WfAssignment()
           
 
Method Summary
protected  void accept(WorkItem workItem, WTUser user)
          Accept the assignment.
private  void addElementNoDup(Vector v, Object obj)
           
private  void addElementsNoDup(Vector v, Enumeration e)
           
private  void addPrincipal(Vector v, WTPrincipalReference pRef)
           
private  void addPrincipals(Vector v, Enumeration e)
           
protected  WorkItem addWorkItem(Role aRole, WTPrincipalReference pRef)
          Create and save a work item for one of the activity's assigned principals.
protected  WfBallot buildWfBallot(WTPrincipalReference pRef, Vector eventList)
          Construct a ballot for the specified principal for the specified role
protected  WorkItem buildWorkItem(Role aRole, WTPrincipalReference pRef)
          Construct an actual work item for the specified principal for the specified role
 Vector checkBallotStatus()
          Return a vector of ballots, both persisted and blank so the PM can show them.
protected  boolean checkComplete()
           
protected  WTPrincipalReference checkDelegation(WTPrincipalReference pref)
           
private  boolean checkRequiredBallots()
           
private  void cleanupPrincipals()
           
private  WorkItem createAWorkItem(WTPrincipalReference pRef)
           
protected  void createBallot(WTPrincipalReference pRef, Vector eventList)
          Create a new WfBallot object on the fly.
protected  WorkItem createWorkItem(WTPrincipal principal)
          Returns a non-persistent work item assigned to the principal passed as argument.
protected  void createWorkItems(WfAssignedActivity activity)
          Create the set of work items for this assignment

Supported API: false
 void delegate(WorkItem workItem, WTPrincipal principal, WfAssignedActivity activity)
           
protected  void deleteBallots()
          Removes all the ballots cast for this assignment.
protected  void deletePotentialWorkItems()
           
protected  void deleteUncompletedWorkItems()
           
protected  void deleteWorkItems()
          Remove all work items associated with this assignment

Supported API: false
 boolean equals(Object obj)
          Indicates whether the given object is equal to this object from a persistence perspective, by comparing the two objects ObjectIdentifiers.
protected  void finalizeAssignment(WfAssignedActivity activity)
          Remove uncompleted work items, set status to Complete, and repersist.
protected  Role findRole(WTPrincipalReference pRef, Enumeration roleList)
           
protected  WfAssignedActivity getActivity()
          Get the parent of this assignment, the WfAssignedActivity.
protected  WfAssignedActivityTemplate getActivityTemplate()
          Get the template of the WfAssignedActivity.
 Vector getAllEvents()
          Gets all the user events from all the ballots for this assignment.
 WfAssignee getAssignee()
          Gets the value of the attribute: ASSIGNEE.
 Enumeration getBallots()
           
 String getConceptualClassname()
          Deprecated.  
private  Team getLocalTeam(WfAssignedActivityTemplate aat)
           
private static ObjectIdentifier getOid(Object obj)
           
protected  WfProcess getParentProcess()
           
 Vector getPrincipals()
          Gets the object for the association that plays role: PRINCIPALS.
 ObjectReference getSource()
          Gets the value of the attribute: SOURCE.
 WfAssignmentState getStatus()
          Gets the value of the attribute: STATUS.
 int getTripCount()
          Gets the value of the attribute: TRIP_COUNT.
private  Enumeration getWorkItems()
           
 int hashCode()
          Returns a hash code for this object based upon its ObjectIdentifier.
private  boolean ignoreRole(WfAssignee assignee, WfActivity activity)
          Determines whether unresolved roles should be ignored.
protected  void initialize()
          Initializes objects created by new-factory methods.
protected  void initOldBlobs()
           
 boolean isComplete()
          Gets the value of the attribute: COMPLETE.
protected  boolean isOffered()
           
static WfAssignment newWfAssignment()
          Default factory for the class.
private  void principalsValidate(Vector a_Principals)
           
 void readExternal(ObjectInput input)
          Reads the non-transient fields of this class from an external source.
 void readExternal(PersistentRetrieveIfc input)
          Used by Persistent Data Service to populate the persistent attributes of this class from a persistent store.
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(WfAssignment thisObject, ObjectInput input, long readSerialVersionUID, boolean passThrough, boolean superDone)
          Reads the non-transient fields of this class from an external source.
protected  void recalculateWorkItems(WfAssignedActivity activity)
          Recalculates the WorkItems for this assignment.
private  WTPrincipalReference resolveActorRole(WfProcess myParent, ActorRole aRole)
           
private  Vector resolveAssignee(WfAssignedActivityTemplate template)
           
private  Vector resolveFromTemplate(WfAssignedActivityTemplate t, WfProcess myParent, Team localTeam, Vector principals)
           
private  Vector resolveFromVariable(String var_name, WfAssignedActivityTemplate template, WfProcess myParent, Team localTeam, Vector pv)
           
private  Enumeration resolveGroup(WTGroup wg)
           
private  Enumeration resolveRole(WfAssignedActivityTemplate t, WfProcess myParent, Team localTeam, Role aRole)
           
private  void revokeTaskBasedRights()
          Revoke rights that were granted for the execution of a task for each variable in the activity.
protected  void revokeTeamRights(WorkItem wi)
           
protected  void sendNotification(WorkItem wi, WTPrincipalReference pRef)
          Send an email notification to all activity assignees.
protected  void sendNoWINotification()
          Send an email notification to Responsible Role that now work item was created.
protected  void setActivity(WfAssignedActivity a_Activity)
          Set the parent of this assignment, the WfAssignedActivity.
 void setAssignee(WfAssignee a_Assignee)
          Sets the value of the attribute: ASSIGNEE.
 void setComplete(boolean a_Complete)
          Sets the value of the attribute: COMPLETE.
 void setPrincipals(Vector a_Principals)
          Sets the object for the association that plays role: PRINCIPALS.
 void setSource(ObjectReference a_Source)
          Sets the value of the attribute: SOURCE.
 void setStatus(WfAssignmentState a_Status)
          Sets the value of the attribute: STATUS.
private  void setTeamRights(WTPrincipalReference pRef, WorkItem wi)
           
 void setTripCount(int a_TripCount)
          Sets the value of the attribute: TRIP_COUNT.
private  void sourceValidate(ObjectReference a_Source)
           
protected  boolean tally(WfTallyType tType, String operator, int value, String event)
           
 String toString()
          Retruns a string representation of the execution object.
private  void transferAdHocPermissions(WorkItem workItem, WTPrincipalReference oldPRef, WTPrincipalReference newPRef)
           
private  void updateWorkItems(WorkItem acceptedWI, WTUser user)
           
 void writeExternal(ObjectOutput output)
          Writes the non-transient fields of this class to an external source.
 void writeExternal(PersistentStoreIfc output)
          Used by Persistent Data Service to obtain the values of the persistent attributes of this class, so they can be written to a persistent store.
 
Methods inherited from class wt.fc.WTObject
checkAttributes, duplicate, finalize, getClassInfo, getCreateTimestamp, getDisplayIdentifier, getDisplayIdentity, getDisplayType, getIdentity, getModifyTimestamp, getPersistInfo, getType, readVersion, setPersistInfo
 
Methods inherited from class java.lang.Object
clone, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

RESOURCE

private static final String RESOURCE
See Also:
Constant Field Values

CLASSNAME

private static final String CLASSNAME

STATUS

public static final String STATUS
Label for the attribute; State of the assignment. One of {POTENTIAL, ACCEPTED}.

Supported API: false

See Also:
Constant Field Values

STATUS_UPPER_LIMIT

private static int STATUS_UPPER_LIMIT

status

private WfAssignmentState status

SOURCE

public static final String SOURCE
Label for the attribute.

Supported API: false

See Also:
Constant Field Values

source

private ObjectReference source

COMPLETE

public static final String COMPLETE
Label for the attribute.

Supported API: false

See Also:
Constant Field Values

complete

private boolean complete

ASSIGNEE

public static final String ASSIGNEE
Label for the attribute.

Supported API: false

See Also:
Constant Field Values

assignee

private WfAssignee assignee

TRIP_COUNT

public static final String TRIP_COUNT
Label for the attribute.

Supported API: false

See Also:
Constant Field Values

tripCount

private int tripCount

PRINCIPALS

public static final String PRINCIPALS
Label for the attribute.

Supported API: false

See Also:
Constant Field Values

principals

private Vector principals

serialVersionUID

static final long serialVersionUID
See Also:
Constant Field Values

EXTERNALIZATION_VERSION_UID

public static final long EXTERNALIZATION_VERSION_UID
See Also:
Constant Field Values

OLD_FORMAT_VERSION_UID

protected static final long OLD_FORMAT_VERSION_UID
See Also:
Constant Field Values

VERBOSE

private static final boolean VERBOSE

TRANSFERADHOCRIGHTS

private static final boolean TRANSFERADHOCRIGHTS

DEFAULT_ROLE

private static final String DEFAULT_ROLE
See Also:
Constant Field Values

SERVICE_NAME

private static final String SERVICE_NAME
See Also:
Constant Field Values

URL_PROCESSOR_METHOD

private static final String URL_PROCESSOR_METHOD
See Also:
Constant Field Values

WORK_NOTIFICATION_TEMPLATE

private static final String WORK_NOTIFICATION_TEMPLATE
See Also:
Constant Field Values

IUR_NOTIFICATION_TEMPLATE

private static final String IUR_NOTIFICATION_TEMPLATE
See Also:
Constant Field Values

DEFAULT_NOTIFICATION_SENDER

private static final String DEFAULT_NOTIFICATION_SENDER

STORE_BALLOTS

private static final boolean STORE_BALLOTS

activity

private transient WfAssignedActivity activity

activityTemplate

private transient WfAssignedActivityTemplate activityTemplate

calService

private transient CalendarServiceFwd calService

teamKey

private static final String teamKey
See Also:
Constant Field Values
Constructor Detail

WfAssignment

public WfAssignment()
Method Detail

writeExternal

public void writeExternal(ObjectOutput output)
                   throws IOException
Writes the non-transient fields of this class to an external source.

Supported API: false

Specified by:
writeExternal in interface Externalizable
Overrides:
writeExternal in class WTObject
Parameters:
output -
Throws:
IOException

readExternal

public void readExternal(ObjectInput input)
                  throws IOException,
                         ClassNotFoundException
Reads the non-transient fields of this class from an external source.

Supported API: false

Specified by:
readExternal in interface Externalizable
Overrides:
readExternal in class WTObject
Parameters:
input -
Throws:
IOException
ClassNotFoundException

readVersion

protected boolean readVersion(WfAssignment thisObject,
                              ObjectInput input,
                              long readSerialVersionUID,
                              boolean passThrough,
                              boolean superDone)
                       throws IOException,
                              ClassNotFoundException
Reads the non-transient fields of this class from an external source.

Supported API: false

Parameters:
thisObject -
input -
readSerialVersionUID -
passThrough -
superDone -
Returns:
boolean
Throws:
IOException
ClassNotFoundException

readOldVersion

private boolean readOldVersion(ObjectInput input,
                               long readSerialVersionUID,
                               boolean passThrough,
                               boolean superDone)
                        throws IOException,
                               ClassNotFoundException
Reads the non-transient fields of this class from an external source, which is not the current version.

Parameters:
input -
readSerialVersionUID -
passThrough -
superDone -
Returns:
boolean
Throws:
IOException
ClassNotFoundException

writeExternal

public void writeExternal(PersistentStoreIfc output)
                   throws SQLException,
                          DatastoreException
Used by Persistent Data Service to obtain the values of the persistent attributes of this class, so they can be written to a persistent store.

(Not intended for general use.)

Supported API: false

Specified by:
writeExternal in interface ObjectMappable
Overrides:
writeExternal in class WTObject
Parameters:
output -
Throws:
SQLException
DatastoreException

readExternal

public void readExternal(PersistentRetrieveIfc input)
                  throws SQLException,
                         DatastoreException
Used by Persistent Data Service to populate the persistent attributes of this class from a persistent store.

(Not intended for general use.)

Supported API: false

Specified by:
readExternal in interface ObjectMappable
Overrides:
readExternal in class WTObject
Parameters:
input -
Throws:
SQLException
DatastoreException

getConceptualClassname

public String getConceptualClassname()
Deprecated.  

Returns the conceptual (modeled) name for the class.

Supported API: false

Specified by:
getConceptualClassname in interface NetFactor
Returns:
String

getStatus

public WfAssignmentState getStatus()
Gets the value of the attribute: STATUS. State of the assignment. One of {POTENTIAL, ACCEPTED}.

Supported API: false

Returns:
WfAssignmentState

setStatus

public void setStatus(WfAssignmentState a_Status)
Sets the value of the attribute: STATUS. State of the assignment. One of {POTENTIAL, ACCEPTED}.

Supported API: false

Parameters:
a_Status -

getSource

public ObjectReference getSource()
Gets the value of the attribute: SOURCE.

Supported API: false

Returns:
ObjectReference

setSource

public void setSource(ObjectReference a_Source)
               throws WTPropertyVetoException
Sets the value of the attribute: SOURCE.

Supported API: false

Parameters:
a_Source -
Throws:
WTPropertyVetoException

sourceValidate

private void sourceValidate(ObjectReference a_Source)
                     throws WTPropertyVetoException
Parameters:
a_Source -
Throws:
WTPropertyVetoException

isComplete

public boolean isComplete()
Gets the value of the attribute: COMPLETE.

Supported API: false

Returns:
boolean

setComplete

public void setComplete(boolean a_Complete)
                 throws WTPropertyVetoException
Sets the value of the attribute: COMPLETE.

Supported API: false

Parameters:
a_Complete -
Throws:
WTPropertyVetoException

getAssignee

public WfAssignee getAssignee()
Gets the value of the attribute: ASSIGNEE.

Supported API: false

Returns:
WfAssignee

setAssignee

public void setAssignee(WfAssignee a_Assignee)
                 throws WTPropertyVetoException
Sets the value of the attribute: ASSIGNEE.

Supported API: false

Parameters:
a_Assignee -
Throws:
WTPropertyVetoException

getTripCount

public int getTripCount()
Gets the value of the attribute: TRIP_COUNT.

Supported API: false

Returns:
int

setTripCount

public void setTripCount(int a_TripCount)
                  throws WTPropertyVetoException
Sets the value of the attribute: TRIP_COUNT.

Supported API: false

Parameters:
a_TripCount -
Throws:
WTPropertyVetoException

getPrincipals

public Vector getPrincipals()
Gets the object for the association that plays role: PRINCIPALS.

Supported API: false

Returns:
Vector

setPrincipals

public void setPrincipals(Vector a_Principals)
                   throws WTPropertyVetoException
Sets the object for the association that plays role: PRINCIPALS.

Supported API: false

Parameters:
a_Principals -
Throws:
WTPropertyVetoException

principalsValidate

private void principalsValidate(Vector a_Principals)
                         throws WTPropertyVetoException
Parameters:
a_Principals -
Throws:
WTPropertyVetoException

toString

public String toString()
Retruns a string representation of the execution object. Used mostly for debugging purposes: not appropriate for GUI use.

Supported API: false

Overrides:
toString in class WTObject
Returns:
String

createWorkItems

protected void createWorkItems(WfAssignedActivity activity)
                        throws WfException
Create the set of work items for this assignment

Supported API: false

Parameters:
activity -
Throws:
WfException

deleteWorkItems

protected void deleteWorkItems()
                        throws WTException
Remove all work items associated with this assignment

Supported API: false

Throws:
WTException

accept

protected void accept(WorkItem workItem,
                      WTUser user)
               throws WTException
Accept the assignment. Change status to accepted and remove potential work items if appropriate to distribution policy.

Supported API: false

Parameters:
workItem -
user -
Throws:
WTException

finalizeAssignment

protected void finalizeAssignment(WfAssignedActivity activity)
                           throws WTException
Remove uncompleted work items, set status to Complete, and repersist.

Supported API: false

Parameters:
activity -
Throws:
WTException

createBallot

protected void createBallot(WTPrincipalReference pRef,
                            Vector eventList)
                     throws WfException
Create a new WfBallot object on the fly.

Supported API: false

Parameters:
pRef -
eventList -
Throws:
WfException

deleteBallots

protected void deleteBallots()
                      throws WTException
Removes all the ballots cast for this assignment. Note: ballots may be persisted indefinately by setting the wt.workflow.storeBallots property to true in wt.properties.

Supported API: false

Throws:
WTException

getAllEvents

public Vector getAllEvents()
                    throws WfException
Gets all the user events from all the ballots for this assignment.

Supported API: false

Returns:
Vector
Throws:
WfException

recalculateWorkItems

protected void recalculateWorkItems(WfAssignedActivity activity)
                             throws WTException
Recalculates the WorkItems for this assignment.

Supported API: false

Parameters:
activity -
Throws:
WTException

newWfAssignment

public static WfAssignment newWfAssignment()
                                    throws WTException
Default factory for the class.

Supported API: false

Returns:
WfAssignment
Throws:
WTException

equals

public boolean equals(Object obj)
Indicates whether the given object is equal to this object from a persistence perspective, by comparing the two objects ObjectIdentifiers. Changed or stale copies are still considered equal by this method. Delegates to PersistenceHelper.equals(Persistable,Object).

Warning: Certain core Windchill operations may depend upon equals being ObjectIdentifier-based. Changes to the default implementation should be done with care, if at all.

Supported API: false

Overrides:
equals in class WTObject
Parameters:
obj -
Returns:
boolean

hashCode

public int hashCode()
Returns a hash code for this object based upon its ObjectIdentifier. Delegates to PersistenceHelper.hashCode(Persistable).

Warning: Certain core Windchill operations may depend upon hashCode being ObjectIdentifier-based. Changes to the default implementation should be done with care, if at all.

Supported API: false

Overrides:
hashCode in class WTObject
Returns:
int

cleanupPrincipals

private void cleanupPrincipals()
                        throws WTException
Throws:
WTException

addElementsNoDup

private void addElementsNoDup(Vector v,
                              Enumeration e)

addElementNoDup

private void addElementNoDup(Vector v,
                             Object obj)

initialize

protected void initialize()
                   throws WTException
Description copied from class: WTObject
Initializes objects created by new-factory methods.

Supported API: false

Overrides:
initialize in class WTObject
Throws:
WTException

getActivity

protected WfAssignedActivity getActivity()
Get the parent of this assignment, the WfAssignedActivity.

Returns:
WfAssignedActivity

setActivity

protected void setActivity(WfAssignedActivity a_Activity)
Set the parent of this assignment, the WfAssignedActivity.

Parameters:
a_Activity -

getActivityTemplate

protected WfAssignedActivityTemplate getActivityTemplate()
Get the template of the WfAssignedActivity.

Returns:
WfAssignedActivityTemplate

addWorkItem

protected WorkItem addWorkItem(Role aRole,
                               WTPrincipalReference pRef)
                        throws WTException
Create and save a work item for one of the activity's assigned principals. Also if applicable, add the assigned principal to a distribution list for email notification.

Parameters:
aRole - role the assignee is to play
pRef - reference to the principal (the role player)
Throws:
WTException

buildWorkItem

protected WorkItem buildWorkItem(Role aRole,
                                 WTPrincipalReference pRef)
                          throws WTException,
                                 WfException
Construct an actual work item for the specified principal for the specified role

Parameters:
aRole - role the assignee is to play
pRef - reference to the principal (the role player)
Returns:
wt.wf.work.WorkItem
Throws:
WTException
WfException

buildWfBallot

protected WfBallot buildWfBallot(WTPrincipalReference pRef,
                                 Vector eventList)
                          throws WTException
Construct a ballot for the specified principal for the specified role

Parameters:
pRef - reference to the principal (the role player)
eventList - vector of events chosen
Returns:
wt.wf.work.WfBallot
Throws:
WTException

sendNotification

protected void sendNotification(WorkItem wi,
                                WTPrincipalReference pRef)
                         throws WTException
Send an email notification to all activity assignees.

Throws:
WTException

sendNoWINotification

protected void sendNoWINotification()
                             throws WTException
Send an email notification to Responsible Role that now work item was created.

Throws:
WTException

findRole

protected Role findRole(WTPrincipalReference pRef,
                        Enumeration roleList)
                 throws WTException
Throws:
WTException

getParentProcess

protected WfProcess getParentProcess()
                              throws WTException
Throws:
WTException

updateWorkItems

private void updateWorkItems(WorkItem acceptedWI,
                             WTUser user)
                      throws WfException
Throws:
WfException

deletePotentialWorkItems

protected void deletePotentialWorkItems()
                                 throws WTException
Throws:
WTException

getWorkItems

private Enumeration getWorkItems()
                          throws WTException
Throws:
WTException

resolveAssignee

private Vector resolveAssignee(WfAssignedActivityTemplate template)
                        throws WfException
Throws:
WfException

resolveFromVariable

private Vector resolveFromVariable(String var_name,
                                   WfAssignedActivityTemplate template,
                                   WfProcess myParent,
                                   Team localTeam,
                                   Vector pv)
                            throws WTException
Throws:
WTException

resolveFromTemplate

private Vector resolveFromTemplate(WfAssignedActivityTemplate t,
                                   WfProcess myParent,
                                   Team localTeam,
                                   Vector principals)
                            throws WTException
Throws:
WTException

resolveRole

private Enumeration resolveRole(WfAssignedActivityTemplate t,
                                WfProcess myParent,
                                Team localTeam,
                                Role aRole)
                         throws WTException
Throws:
WTException

resolveGroup

private Enumeration resolveGroup(WTGroup wg)
                          throws WTException
Throws:
WTException

resolveActorRole

private WTPrincipalReference resolveActorRole(WfProcess myParent,
                                              ActorRole aRole)
                                       throws WTException
Throws:
WTException

addPrincipals

private void addPrincipals(Vector v,
                           Enumeration e)

addPrincipal

private void addPrincipal(Vector v,
                          WTPrincipalReference pRef)

getLocalTeam

private Team getLocalTeam(WfAssignedActivityTemplate aat)
                   throws WTException
Throws:
WTException

checkComplete

protected boolean checkComplete()
                         throws WTException
Throws:
WTException

getBallots

public Enumeration getBallots()
                       throws WTException
Throws:
WTException

tally

protected boolean tally(WfTallyType tType,
                        String operator,
                        int value,
                        String event)
                 throws WfException
Throws:
WfException

deleteUncompletedWorkItems

protected void deleteUncompletedWorkItems()
                                   throws WfException
Throws:
WfException

checkRequiredBallots

private boolean checkRequiredBallots()
                              throws WfException
Throws:
WfException

revokeTaskBasedRights

private void revokeTaskBasedRights()
                            throws WTException
Revoke rights that were granted for the execution of a task for each variable in the activity.

Throws:
WTException

checkBallotStatus

public Vector checkBallotStatus()
                         throws WfException
Return a vector of ballots, both persisted and blank so the PM can show them. EMC.

Throws:
WfException

delegate

public void delegate(WorkItem workItem,
                     WTPrincipal principal,
                     WfAssignedActivity activity)
              throws WTException,
                     WfException
Throws:
WTException
WfException

initOldBlobs

protected void initOldBlobs()
                     throws WfException
Throws:
WfException

setTeamRights

private void setTeamRights(WTPrincipalReference pRef,
                           WorkItem wi)
                    throws WTException
Throws:
WTException

revokeTeamRights

protected void revokeTeamRights(WorkItem wi)
                         throws WTException
Throws:
WTException

checkDelegation

protected WTPrincipalReference checkDelegation(WTPrincipalReference pref)
                                        throws WfException
Throws:
WfException

ignoreRole

private boolean ignoreRole(WfAssignee assignee,
                           WfActivity activity)
                    throws WTException
Determines whether unresolved roles should be ignored.

Throws:
WTException

createWorkItem

protected WorkItem createWorkItem(WTPrincipal principal)
                           throws WTException
Returns a non-persistent work item assigned to the principal passed as argument.

Throws:
WTException

createAWorkItem

private WorkItem createAWorkItem(WTPrincipalReference pRef)
                          throws WTException
Throws:
WTException

getOid

private static ObjectIdentifier getOid(Object obj)

transferAdHocPermissions

private void transferAdHocPermissions(WorkItem workItem,
                                      WTPrincipalReference oldPRef,
                                      WTPrincipalReference newPRef)
                               throws WTException
Throws:
WTException

isOffered

protected boolean isOffered()
                     throws WTException
Throws:
WTException