Agentflow
V3.1

pe.pase
Class ATask

java.lang.Object
  extended by pe.pase.Task
      extended by pe.pase.ATask
All Implemented Interfaces:
com.flowring.entity.Entity, java.io.Serializable, java.lang.Cloneable

public class ATask
extends Task

An abstract representation of "Add Announce Sign" Task.

Version:
1.2
Author:
yhtseng
See Also:
Serialized Form

Field Summary
static int AANNEX
          ATask mode: Parallel or Sequential Announce Annex
static int AAUDIT
          ATask mode: Parallel or Sequential Announce Audit
static java.lang.String ADD_ANNOUNCE_AGREE
           
static java.lang.String ADD_ANNOUNCE_DISAGREE
           
static java.lang.String ADD_ANNOUNCE_NOCOMMENT
           
static java.lang.String ADD_SIGN_NORESULT
           
static java.lang.String ADD_SIGN_OK
           
static java.lang.String ADD_SIGN_REJECT
           
static int AREVIEW
          ATask mode: Parallel or Sequential Announce Review
static int SANNEX
          ATask mode: Sequential Sign Annex
static int SAUDIT
          ATask mode: Sequential Sign Audit
static int SCOMPLETE
          ATask mode: Sequential Sign Complete
static int SREJECT
          ATask mode: Sequential Sign Reject
 
Fields inherited from class pe.pase.Task
ADD_DEP_MODE_MANAGER, ADD_DEP_MODE_MEMBERS, ADD_PARALLEL_ANNOUNCE, ADD_SEQUENTIAL_ANNOUNCE, ADD_SEQUENTIAL_SIGN, addASAuditList, addASDepMode, addASTitle, addASType, addPAWeightList, API, attachedFileList, attachedFileListSuspend, bindingPolicy, calendarDeadline, callId, changeArtState, comId, CRON_SERVER, DELIBLE, depId, duration, endTime, executeAddAS, exeId, exeOrder, extCond, frontId, frontUser, GMTLimitTime, GMTStartTime, keyWord, memId, MEMO_BEGIN_STRING, monitorRelation, MRINVISIBLE, note, oprInstanceList, parentId, POPUP, priority, PRIORITY_HIGH, PRIORITY_HIGHEST, PRIORITY_NORMAL, privateMemo, prjId, prjName, processId, refInstanceList, roleId, ROOT, rootId, rootName, rootUser, startTime, synopsis, T_STATE_ALL, T_STATE_CLIENT_WAITING, T_STATE_COMPLETE, T_STATE_DEAD, T_STATE_IGNORE, T_STATE_LOCK, T_STATE_QUEUE, T_STATE_READY, T_STATE_RUNNING, T_STATE_SERVER_WAITING, T_STATE_SUSPENDED, TASK_SORT_DEPID, TASK_SORT_ENDTIME, TASK_SORT_EXEID, TASK_SORT_KEYWORD, TASK_SORT_MEMID, TASK_SORT_PRIORITY, TASK_SORT_PROID, TASK_SORT_ROLID, TASK_SORT_STARTTIME, TASK_SORT_STATE, TASK_SORT_TYPE, TASK_STATE_CLIENT_WAITING, TASK_STATE_COMPLETE, TASK_STATE_DEAD, TASK_STATE_IGNORE, TASK_STATE_LOCK, TASK_STATE_PREPARE, TASK_STATE_QUEUE, TASK_STATE_READY, TASK_STATE_RETRIEVED, TASK_STATE_RUNNING, TASK_STATE_SERVER_WAITING, TASK_STATE_SIGNING, TASK_STATE_SUSPENDED, taskId, taskName, taskState
 
Constructor Summary
ATask(java.lang.String tID)
          Creates a new ATask.
 
Method Summary
 java.lang.Object clone()
          Clone the other ATask
static ATask convertTask(Task t)
          Convert the specified Task to ATask
 Task convertToTask()
          Convert this ATask to Task
 java.lang.String getAddSignMessage()
           
 java.lang.String getAddSignResult()
          Get the result of add sign.
 int getALayers()
          Get the now announce layers.
 java.lang.String getAnnounceContent()
          Get the announce content.
 java.lang.String getATaskDepMode()
          Get the ATask Department mode.
 java.lang.String getATaskType()
          Get the ATask type.
 java.util.List getAuditList()
           
 java.lang.String getCSFormID()
          Get the id of CSForm.
 CSInstance getCSInstance()
          Get the CSInstance.
 int getGroupNumber()
          Get the group number.
 int getMode()
          Get the task mode.
 long getSignTime()
           
 java.lang.String getSignTskId()
          Returns the taskId of the task which creates this ATask.
 int getSLayers()
          Get the now sign layers.
 boolean hasExecuteAddAS()
           
 boolean isAddParallelAnnounceTask()
          Check this ATask is "add parallel announce" task or not.
 boolean isAddSequantialSignTask()
          Check this ATask is "add sequential sign" task or not.
 boolean isAddSequentialAnnounceTask()
          Check this ATask is "add sequential announce" task or not.
 boolean isAnnounceAnnexMode()
          Check the task mode is in announce annex or not.
 boolean isAnnounceAuditMode()
          Check the task mode is in announce audit or not.
 boolean isAnnounceReviewMode()
          Check the task mode is in announce review or not.
 boolean isOnlyAnnounceAnnexMode()
          Check the task mode is only in announce annex or not.
 boolean isOnlyAnnounceAuditMode()
          Check the task mode is only in announce audit or not.
 boolean isOnlyAnnounceReviewMode()
          Check the task mode is only in announce review or not.
 boolean isOnlyRetOrRejPoint()
           
 boolean isOnlySignAnnexMode()
          Check the task mode is only in sign annex or not.
 boolean isOnlySignAuditMode()
          Check the task mode is only in sign audit or not.
 boolean isOnlySignCompleteMode()
          Check the task mode is only in sign complete or not.
 boolean isOnlySignRejectMode()
          Check the task mode is only in sign reject or not.
 boolean isSignAnnexMode()
          Check the task mode is in sign annex or not.
 boolean isSignAuditMode()
          Check the task mode is in sign audit or not.
 boolean isSignCompleteMode()
          Check the task mode is in sign complete or not.
 boolean isSignRejectMode()
          Check the task mode is in sign reject or not.
 void setAddSignMessage(java.lang.String addSignMessage)
           
 void setAddSignResult(java.lang.String result)
          Set the result of add sign.
 void setALayers(int l)
          Set the now announce layers.
 void setAnnounceAnnexMode()
          Set the task mode is in announce annex.
 void setAnnounceAuditMode()
          Set the task mode is in announce audit.
 void setAnnounceContent(java.lang.String c)
          Set the announce content.
 void setAnnounceReviewMode()
          Set the task mode is in announce review.
 void setATaskDepMode(java.lang.String mode)
          Set the mode when user select the department from role tree.
 void setATaskType(java.lang.String type)
          Set the ATask type.
 void setAuditList(java.util.List list)
           
 void setCSFormID(java.lang.String id)
          Set the id of CSForm.
 void setCSInstance(CSInstance instance)
          Set the CSInstance.
 void setGroupNumber(int g)
          Set the group number.
 void setMode(int mode)
          Set the task mode.
 void setSignAnnexMode()
          Set the task mode is in sign annex.
 void setSignAuditMode()
          Set the task mode is in sign audit.
 void setSignCompleteMode()
          Set the task mode is in sign complete.
 void setSignRejectMode()
          Set the task mode is in sign reject.
 void setSignTime(long signTime)
           
 void setSignTskId(java.lang.String signTskId)
          Sets the taskId of the task which creates this ATask
 void setSLayers(int l)
          Set the now sign layers.
 void update(java.lang.Object obj)
          Update this ATask with the specified Task.
 
Methods inherited from class pe.pase.Task
addAddASAudit, addAddASAudit, addExtCond, addMonitorRelation, addMonitorRelation, addOprArtifact, addRefArtifact, equals, getAddASAuditList, getAddASAuditsString, getAddASDepMode, getAddASResultString, getAddASTitle, getAddASType, getAddPAWeight, getAddPAWeightList, getAddPAWeightListStr, getArtInstance, getArtInstanceState, getBindingPolicy, getCalendarDeadline, getCallID, getCompanyID, getDeadLine, getDepartmentID, getDurationInMillis, getEndTime, getExeOrder, getExtCondList, getFrontID, getFrontUser, getGMTLimitTime, getGMTStartTime, getHashKey, getID, getInstanceID, getKeyWord, getMemberID, getMonitorRelation, getName, getOprArtifactList, getParentID, getPriority, getPrivateMemo, getProcessID, getProcessName, getProcessTime, getProjectID, getProjectName, getRealExecutor, getRefArtifactList, getRoleID, getRootID, getRootName, getRootUser, getStartTime, getStartTimeString, getSynopsis, getTaskAttachedFileList, getTaskAttachedFileListSuspend, getTaskID, getTaskNote, getTaskState, getTaskType, hasAccessibleTaskAttachedFileForExecutor, isByPass, isChangeArtState, isDeleteable, isExecuteAddAS, removeMonitorRelation, removeOprArtifact, removeRefArtifact, setAddASAuditList, setAddASAuditsString, setAddASDepMode, setAddASTitle, setAddASType, setAddPAWeight, setAddPAWeight, setAddPAWeightList, setAddPAWeightList, setArtInstance, setBindingPolicy, setByPass, setCalendarDeadline, setCallID, setChangeArtState, setCompanyID, setDepartmentID, setDurationInMillis, setEndTime, setExecuteAddAS, setExeOrder, setExtCondList, setFrontID, setFrontUser, setGMTLimitTime, setGMTStartTime, setKeyWord, setMemberID, setMonitorRelation, setName, setOprArtifactList, setParentID, setPriority, setPrivateMemo, setProcessID, setProcessName, setProjectID, setProjectName, setRealExecutor, setRefArtifactList, setRoleID, setRootID, setRootName, setRootUser, setStartTime, setSynopsis, setTaskAttachedFileList, setTaskAttachedFileListSuspend, setTaskID, setTaskNote, setTaskState, setTaskType
 
Methods inherited from class java.lang.Object
finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

AANNEX

public static final int AANNEX
ATask mode: Parallel or Sequential Announce Annex

Since:
version 1.2
See Also:
Constant Field Values

AAUDIT

public static final int AAUDIT
ATask mode: Parallel or Sequential Announce Audit

Since:
version 1.2
See Also:
Constant Field Values

ADD_ANNOUNCE_AGREE

public static final java.lang.String ADD_ANNOUNCE_AGREE
See Also:
Constant Field Values

ADD_ANNOUNCE_DISAGREE

public static final java.lang.String ADD_ANNOUNCE_DISAGREE
See Also:
Constant Field Values

ADD_ANNOUNCE_NOCOMMENT

public static final java.lang.String ADD_ANNOUNCE_NOCOMMENT
See Also:
Constant Field Values

ADD_SIGN_NORESULT

public static final java.lang.String ADD_SIGN_NORESULT
See Also:
Constant Field Values

ADD_SIGN_OK

public static final java.lang.String ADD_SIGN_OK
See Also:
Constant Field Values

ADD_SIGN_REJECT

public static final java.lang.String ADD_SIGN_REJECT
See Also:
Constant Field Values

AREVIEW

public static final int AREVIEW
ATask mode: Parallel or Sequential Announce Review

Since:
version 1.2
See Also:
Constant Field Values

SANNEX

public static final int SANNEX
ATask mode: Sequential Sign Annex

Since:
version 1.2
See Also:
Constant Field Values

SAUDIT

public static final int SAUDIT
ATask mode: Sequential Sign Audit

Since:
version 1.2
See Also:
Constant Field Values

SCOMPLETE

public static final int SCOMPLETE
ATask mode: Sequential Sign Complete

Since:
version 1.2
See Also:
Constant Field Values

SREJECT

public static final int SREJECT
ATask mode: Sequential Sign Reject

Since:
version 1.2
See Also:
Constant Field Values
Constructor Detail

ATask

public ATask(java.lang.String tID)
Creates a new ATask.

Parameters:
tID - task id.
Since:
version 1.2
Method Detail

clone

public java.lang.Object clone()
Clone the other ATask

Overrides:
clone in class Task
Returns:
the object
Since:
version 1.2

convertTask

public static ATask convertTask(Task t)
Convert the specified Task to ATask

Parameters:
t - the given task
Returns:
the ATask
Since:
version 1.2

convertToTask

public Task convertToTask()
Convert this ATask to Task

Returns:
the Task
Since:
version 1.2

getAddSignMessage

public java.lang.String getAddSignMessage()

getAddSignResult

public java.lang.String getAddSignResult()
Get the result of add sign. This method is valid when the ATask is Sequential Sign Task.

Returns:
result the result of add sign task.("ok" or "reject")
Since:
version 1.2

getALayers

public int getALayers()
Get the now announce layers.

Returns:
the announce layers
Since:
version 1.2

getAnnounceContent

public java.lang.String getAnnounceContent()
Get the announce content. This announce content is the audit message of this ATask.
When this ATask is completed, the note in CSInstance will append this announce content.

Returns:
the announce content.
Since:
version 1.2

getATaskDepMode

public java.lang.String getATaskDepMode()
Get the ATask Department mode.

Returns:
manager or members
Since:
version 3.5

getATaskType

public java.lang.String getATaskType()
Get the ATask type.

Returns:
the ATask type.(ADD_PARALLEL_ANNOUNCE, ADD_SEQUENTIAL_ANNOUNCE, ADD_SEQUENTIAL_SIGN)
Since:
version 2.0

getAuditList

public java.util.List getAuditList()

getCSFormID

public java.lang.String getCSFormID()
Get the id of CSForm. The CSForm is the CSInstance.

Returns:
id
Since:
version 1.2

getCSInstance

public CSInstance getCSInstance()
Get the CSInstance. This CSInstance gathers the following messages:
(1) The whole message of "add announce sign" task before this process.
(2) The review message of "add announce sign" task.
(3) In sequential announce or sequential sign task, it gathers the messages before this ATask.

Returns:
the CSInstance
Since:
version 1.2

getGroupNumber

public int getGroupNumber()
Get the group number. This method is used by the TaskMonitor.
The TaskMonitor must know which group does this ATask belong to.

Returns:
the group number
Since:
version 1.2

getMode

public int getMode()
Get the task mode.

Returns:
the task mode.(AANNEX, AAUDIT, AREVIEW, SANNEX, SAUDIT, SCOMPLETE, SREJECT)
Since:
version 1.2

getSignTime

public long getSignTime()

getSignTskId

public java.lang.String getSignTskId()
Returns the taskId of the task which creates this ATask.

Returns:
the taskId of the task which creates this ATask

getSLayers

public int getSLayers()
Get the now sign layers.

Returns:
the sign layers
Since:
version 1.2

hasExecuteAddAS

public boolean hasExecuteAddAS()

isAddParallelAnnounceTask

public boolean isAddParallelAnnounceTask()
Check this ATask is "add parallel announce" task or not.

Returns:
boolean value
Since:
version 2.0

isAddSequantialSignTask

public boolean isAddSequantialSignTask()
Check this ATask is "add sequential sign" task or not.

Returns:
boolean value
Since:
version 2.0

isAddSequentialAnnounceTask

public boolean isAddSequentialAnnounceTask()
Check this ATask is "add sequential announce" task or not.

Returns:
boolean value
Since:
version 2.0

isAnnounceAnnexMode

public boolean isAnnounceAnnexMode()
Check the task mode is in announce annex or not.

Returns:
boolean value
Since:
version 1.2

isAnnounceAuditMode

public boolean isAnnounceAuditMode()
Check the task mode is in announce audit or not.

Returns:
boolean value
Since:
version 1.2

isAnnounceReviewMode

public boolean isAnnounceReviewMode()
Check the task mode is in announce review or not.

Returns:
boolean value
Since:
version 1.2

isOnlyAnnounceAnnexMode

public boolean isOnlyAnnounceAnnexMode()
Check the task mode is only in announce annex or not. Because the ATask mode maybe mixed by others mode.

Returns:
boolean value
Since:
version 1.2

isOnlyAnnounceAuditMode

public boolean isOnlyAnnounceAuditMode()
Check the task mode is only in announce audit or not. Because the ATask mode maybe mixed by others mode.

Returns:
boolean value
Since:
version 1.2

isOnlyAnnounceReviewMode

public boolean isOnlyAnnounceReviewMode()
Check the task mode is only in announce review or not. Because the ATask mode maybe mixed by others mode.

Returns:
boolean value
Since:
version 1.2

isOnlyRetOrRejPoint

public boolean isOnlyRetOrRejPoint()

isOnlySignAnnexMode

public boolean isOnlySignAnnexMode()
Check the task mode is only in sign annex or not. Because the ATask mode maybe mixed by others mode.

Returns:
boolean value
Since:
version 1.2

isOnlySignAuditMode

public boolean isOnlySignAuditMode()
Check the task mode is only in sign audit or not. Because the ATask mode maybe mixed by others mode.

Returns:
boolean value
Since:
version 1.2

isOnlySignCompleteMode

public boolean isOnlySignCompleteMode()
Check the task mode is only in sign complete or not. Because the ATask mode maybe mixed by others mode.

Returns:
boolean value
Since:
version 1.2

isOnlySignRejectMode

public boolean isOnlySignRejectMode()
Check the task mode is only in sign reject or not. Because the ATask mode maybe mixed by others mode.

Returns:
boolean value
Since:
version 1.2

isSignAnnexMode

public boolean isSignAnnexMode()
Check the task mode is in sign annex or not.

Returns:
boolean value
Since:
version 1.2

isSignAuditMode

public boolean isSignAuditMode()
Check the task mode is in sign audit or not.

Returns:
boolean value
Since:
version 1.2

isSignCompleteMode

public boolean isSignCompleteMode()
Check the task mode is in sign complete or not.

Returns:
boolean value
Since:
version 1.2

isSignRejectMode

public boolean isSignRejectMode()
Check the task mode is in sign reject or not.

Returns:
boolean value
Since:
version 1.2

setAddSignMessage

public void setAddSignMessage(java.lang.String addSignMessage)

setAddSignResult

public void setAddSignResult(java.lang.String result)
Set the result of add sign. This method is valid when the ATask is Sequential Sign Task.

Parameters:
result - the given result of add sign task.("ok" or "reject")
Since:
version 1.2

setALayers

public void setALayers(int l)
Set the now announce layers.

Parameters:
l - the given layers
Since:
version 1.2

setAnnounceAnnexMode

public void setAnnounceAnnexMode()
Set the task mode is in announce annex.

Since:
version 1.2

setAnnounceAuditMode

public void setAnnounceAuditMode()
Set the task mode is in announce audit.

Since:
version 1.2

setAnnounceContent

public void setAnnounceContent(java.lang.String c)
Set the announce content. This announce content is the audit message of this ATask.
When this ATask is completed, the note in CSInstance will append this announce content.

Parameters:
c - the given announce content.
Since:
version 1.2

setAnnounceReviewMode

public void setAnnounceReviewMode()
Set the task mode is in announce review.

Since:
version 1.2

setATaskDepMode

public void setATaskDepMode(java.lang.String mode)
Set the mode when user select the department from role tree. The mode is "manager", forward a task to the manager of department. Otherwise, forward tasks to those members under the department.

Parameters:
depatment - mode
Since:
version 3.5

setATaskType

public void setATaskType(java.lang.String type)
Set the ATask type.

Parameters:
type - the given ATask type.(ADD_PARALLEL_ANNOUNCE, ADD_SEQUENTIAL_ANNOUNCE, ADD_SEQUENTIAL_SIGN)
Since:
version 2.0

setAuditList

public void setAuditList(java.util.List list)

setCSFormID

public void setCSFormID(java.lang.String id)
Set the id of CSForm. The CSForm is the CSInstance.

Since:
version 1.2

setCSInstance

public void setCSInstance(CSInstance instance)
Set the CSInstance. This CSInstance gathers the following messages:
(1) The whole message of "add announce sign" task before this process.
(2) The review message of "add announce sign" task.
(3) In sequential announce or sequential sign task, it gathers the messages before this ATask.

Parameters:
the - given CSInstance
Since:
version 1.2

setGroupNumber

public void setGroupNumber(int g)
Set the group number. This method is used by the TaskMonitor.
The TaskMonitor must know which group does this ATask belong to.

Parameters:
g - the given group number
Since:
version 1.2

setMode

public void setMode(int mode)
Set the task mode.

Parameters:
mode - the given mode.(AANNEX, AAUDIT, AREVIEW, SANNEX, SAUDIT, SCOMPLETE, SREJECT)
Since:
version 1.2

setSignAnnexMode

public void setSignAnnexMode()
Set the task mode is in sign annex.

Since:
version 1.2

setSignAuditMode

public void setSignAuditMode()
Set the task mode is in sign audit.

Since:
version 1.2

setSignCompleteMode

public void setSignCompleteMode()
Set the task mode is in sign complete.

Since:
version 1.2

setSignRejectMode

public void setSignRejectMode()
Set the task mode is in sign reject.

Since:
version 1.2

setSignTime

public void setSignTime(long signTime)

setSignTskId

public void setSignTskId(java.lang.String signTskId)
Sets the taskId of the task which creates this ATask

Parameters:
signTskId - the taskId of the task which creates this ATask

setSLayers

public void setSLayers(int l)
Set the now sign layers.

Parameters:
l - the given layers
Since:
version 1.2

update

public void update(java.lang.Object obj)
Update this ATask with the specified Task.

Specified by:
update in interface com.flowring.entity.Entity
Overrides:
update in class Task
Parameters:
t - the given task
Since:
version 1.2

Agentflow
V3.1

Submit a bug or feature
Copyright 1999-2010 Flowring , Inc. 12F., No.120, Sec2, Gongdao 5th Rd.,
Hsinchu City 300, Taiwan (R.O.C.) All Rights Reserved.