Agentflow
V3.1

si.wfcidata
Class AFTask

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

public class AFTask
extends Task

AFTask

Version:
1.1.5,
Author:
Flowring co.
See Also:
Serialized Form

Field Summary
 
Fields inherited from class pe.pase.Task
ADD_DEP_MODE_MANAGER, ADD_DEP_MODE_MEMBERS, ADD_PARALLEL_ANNOUNCE, ADD_SEQUENTIAL_ANNOUNCE, ADD_SEQUENTIAL_SIGN, API, attachedFileList, attachedFileListSuspend, bindingPolicy, calendarDeadline, callId, changeArtState, comId, CRON_SERVER, DELIBLE, depId, duration, endTime, 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, taskType
 
Constructor Summary
AFTask(WFCI wfci)
          Constructor
AFTask(WFCI wfci, Task task)
          Constructor
 
Method Summary
 void addAddASAudit(java.lang.String[] memData)
          Add a member into "Add Anounce Sign" list, add one person at a time.
 void addAddASAudit(java.lang.String memID, java.lang.String roleID, java.lang.String depID)
          Add a member into "Add Anounce Sign" list, add one person at a time.
 void bypassAFTask(java.lang.String p_AstID)
          ByPass the AFTask with p_AstID state ID
 java.util.HashMap completeAFTask()
          Complete the AFTask
 boolean forceReassignAFTask(AFMemberRecord mbr)
          Reassign the AFTask to mbr AFMemberRecord
 java.util.Vector getAddASAuditList()
           
 java.lang.String getAddASAuditsString()
           
 java.lang.String getAddASDepMode()
           
 java.lang.String getAddASResultString()
          Methods for Task Time Processing
 java.lang.String getAddASTitle()
           
 java.lang.String getAddASType()
           
 float getAddPAWeight(int level)
           
 java.util.HashMap getAddPAWeightList()
           
 java.lang.String getAddPAWeightListStr()
           
 java.lang.String getAddSignMessage()
           
 java.lang.String getAddSignResult()
          getAddSignResult, for ATask only
 AFArtInstance getAFArtInstance()
          Return the operation artifact
 AFDepartment getAFDepartment()
          Return the AFDepartment of the AFTask computed by WFCI
 AFMemberRecord getAFMemberRecord()
          Return the AFMemberRecord of the AFProcess instantiates the AFTask
 AFMemberRecord getAFRealExecutor()
          Get the real executor
 java.lang.String getAFRealExecutorName()
          Get the name of the real executor
 AFRole getAFRole()
          Return the AFRole of the AFTask computed by WFCI
 int getALayers()
          getALayers, for ATask only
 java.lang.String getAnnounceContent()
          getAnnounceContent, for ATask only
 java.lang.String getATaskType()
           
 java.util.List getAuditList()
          GetAuditList, for CSTask only
 CSInstance getCSInstance()
          GetCSInstance, for CSTask and ATask
 java.lang.String getCsSignMessage()
           
 boolean getDelFlag()
          Get the deletion flag for the AFTask
 java.lang.String getDeputyName()
          Get member name of the task has deputed
 int getGroupNumber()
          getGroupNumber, for ATask only
 java.util.List getIapAuditList()
           
 java.lang.String getIapAuditsString()
           
 java.lang.String getIapGoBackToPro()
           
 java.lang.String getIapSignMessage()
           
 java.lang.String getIapSignResult()
           
 int getMode()
          getMode, for ATask only
 java.lang.String getOperatingMemberID()
          Get the operating member ID
 AFMemberRecord getOwner()
          Get AFTask owner
 AFTask getParentAFTask()
          Get parent AFTask of the AFTask
 boolean getReadPermission()
          Check if the AFTask artifacts are viewed by the specific member
 java.util.Vector getRefAFArtInstanceList()
          Return the lists of reference AFArtInstance
 AFTask getRootAFTask()
          Get root AFTask in PRof the AFTask
 java.lang.String getSaveIapFreqMessage()
           
 long getSignTime()
           
 java.lang.String getSignTskId()
           
 int getSLayers()
          getSLayers, for ATask only
 Task getTask()
          get Task instance of the AFTask
 boolean goBackTo(java.lang.String toProID, boolean artMode)
          Go back to a former AFTask node in the same process.
 java.util.HashMap goBackToWithDetailRet(java.lang.String toProID, boolean artMode)
          Go back to a former AFTask node in the same process.
 boolean isAddParallelAnnounceTask()
           
 boolean isAddSequantialSignTask()
           
 boolean isAddSequentialAnnounceTask()
           
 boolean isAnnounceAnnexMode()
          isAnnounceAnnexMode, for ATask only
 boolean isAnnounceAuditMode()
          isAnnounceAuditMode, for ATask only
 boolean isAnnounceReviewMode()
          isAnnounceReviewMode, for ATask only
 boolean isATask()
          isATask, check is ATask
 boolean isCSTask()
          isCSTask, check is CSTask
 boolean isExecuteAddAS()
           
 boolean isIapTask()
          isATask, check is ATask
 boolean isLocked()
          Check if the task is locked.
 boolean isOnlyAnnounceAnnexMode()
          isOnlyAnnounceAnnexMode, for ATask only
 boolean isOnlyAnnounceAuditMode()
          isOnlyAnnounceAuditMode, for ATask only
 boolean isOnlyAnnounceReviewMode()
          isOnlyAnnounceReviewMode, for ATask only
 boolean isOnlySignAnnexMode()
          isOnlySignAnnexMode, for ATask only
 boolean isOnlySignAuditMode()
          isOnlySignAuditMode, for ATask only
 boolean isOnlySignCompleteMode()
          isOnlySignCompleteMode, for ATask only
 boolean isOnlySignRejectMode()
          isOnlySignRejectMode, for ATask only
 boolean isRefArt()
          Check if any reference AFArtInstance
 boolean isSignAnnexMode()
          isSignAnnexMode, for ATask only
 boolean isSignAuditMode()
          isSignAuditMode, for ATask only
 boolean isSignCompleteMode()
          isSignCompleteMode, for ATask only
 boolean isSignRejectMode()
          isSignRejectMode, for ATask only
 void lockAFTask()
          Lock the root AFTask of the AFTask.
 java.util.HashMap notifyAFTask()
          Remove be state of waiting of the AFTask.
 void setAddASAuditList(java.util.Vector list)
           
 void setAddASAuditsString(java.lang.String auditString)
           
 void setAddASDepMode(java.lang.String mode)
           
 void setAddASTitle(java.lang.String addASTitle)
           
 void setAddASType(java.lang.String type)
           
 void setAddPAWeight(float weight)
           
 void setAddPAWeight(int level, float weight)
           
 void setAddPAWeightList(java.util.HashMap list)
           
 void setAddPAWeightList(java.lang.String listStr)
           
 void setAddSignMessage(java.lang.String addSignMessage)
           
 void setAddSignResult(java.lang.String result)
          setAddSignResult, for ATask only
 void setALayers(int layers)
          setALayers, for ATask only
 void setAnnounceAnnexMode()
          setAnnounceAnnexMode, for ATask only
 void setAnnounceAuditMode()
          setAnnounceAuditMode, for ATask only
 void setAnnounceContent(java.lang.String content)
          setAnnounceContent, for ATask only
 void setAnnounceReviewMode()
          setAnnounceReviewMode, for ATask only
 void setATaskType(java.lang.String type)
           
 void setAuditList(java.util.List list)
          SetAuditList, for CSTask only
 void setCSInstance(CSInstance instance)
          SetCSInstance, for CSTask and ATask
 void setCsSignMessage(java.lang.String csSignMessage)
           
 void setExecuteAddAS(boolean flag)
           
 void setGroupNumber(int num)
          setGroupNumber, for ATask only
 void setIapAuditList(java.util.List list)
           
 void setIapGoBackToPro(java.lang.String iapGoBackToPro)
           
 void setIapSignMessage(java.lang.String iapSignMessage)
           
 void setIapSignResult(java.lang.String iapSignResult)
           
 void setMode(int mode)
          setMode, for ATask only
 void setOperatingMemberID(java.lang.String mID)
          Set the operating member ID
 void setSaveIapFreqMessage(java.lang.String saveIapFreqMessage)
           
 void setSignAnnexMode()
          setSignAnnexMode, for ATask only
 void setSignAuditMode()
          setSignAuditMode, for ATask only
 void setSignCompleteMode()
          setSignCompleteMode, for ATask only
 void setSignRejectMode()
          setSignRejectMode, for ATask only
 void setSignTime(long signTime)
           
 void setSignTskId(java.lang.String signTskId)
           
 void setSLayers(int layers)
          setSLayers, for ATask only
 java.util.HashMap startAFTask()
          Start the AFTask.
 java.util.HashMap suspendAFTask()
          Suspend the AFTask
 void unlockAFTask()
          UnLock the root task of the AFTask.
 boolean updateAFArtInstance(AFArtInstance instance)
          Update an AFArtInstance instance
 void updateAFTask()
          Update the data object of AFTask.
 void updateAFTaskState()
          Update the state of AFTask.
 void waitAFTask()
          Set the AFTask to be state of waiting
 void waitAFTask(java.lang.String timeString)
          Set the AFTask to be state of waiting, and the waiting duration.
 
Methods inherited from class pe.pase.Task
addExtCond, addMonitorRelation, addMonitorRelation, addOprArtifact, addRefArtifact, clone, equals, 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, removeMonitorRelation, removeOprArtifact, removeRefArtifact, setArtInstance, setBindingPolicy, setByPass, setCalendarDeadline, setCallID, setChangeArtState, setCompanyID, setDepartmentID, setDurationInMillis, setEndTime, 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, update
 
Methods inherited from class java.lang.Object
finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AFTask

public AFTask(WFCI wfci)
Constructor

Parameters:
wfci - WFCI interface

AFTask

public AFTask(WFCI wfci,
              Task task)
       throws WFCIException
Constructor

Parameters:
wfci - WFCI interface
task - Task
Throws:
WFCIException
Method Detail

addAddASAudit

public void addAddASAudit(java.lang.String[] memData)
Description copied from class: Task
Add a member into "Add Anounce Sign" list, add one person at a time. Because of type-casting behavior between Agentflow script and java, use addAddASAudit(String, String, String) in Agentflow script instead of this method.

Overrides:
addAddASAudit in class Task
Parameters:
memData - the String Array.({MemID, RolID, DepID})

addAddASAudit

public void addAddASAudit(java.lang.String memID,
                          java.lang.String roleID,
                          java.lang.String depID)
Description copied from class: Task
Add a member into "Add Anounce Sign" list, add one person at a time.

Overrides:
addAddASAudit in class Task
Parameters:
memID - the MemberID
roleID - the RoleID
depID - the DepartmentID

bypassAFTask

public void bypassAFTask(java.lang.String p_AstID)
                  throws WFCIException
ByPass the AFTask with p_AstID state ID

Parameters:
p_AstID - state ID
Throws:
WFCIException

completeAFTask

public java.util.HashMap completeAFTask()
                                 throws WFCIException
Complete the AFTask

Returns:
the result ( [Key:Value] = [retValue:Boolean(true)] )
Throws:
WFCIException

forceReassignAFTask

public boolean forceReassignAFTask(AFMemberRecord mbr)
                            throws WFCIException
Reassign the AFTask to mbr AFMemberRecord

Parameters:
mbr - assign the task to another member
Returns:
true if success
Throws:
WFCIException

getAddASAuditList

public java.util.Vector getAddASAuditList()
Overrides:
getAddASAuditList in class Task

getAddASAuditsString

public java.lang.String getAddASAuditsString()
Overrides:
getAddASAuditsString in class Task

getAddASDepMode

public java.lang.String getAddASDepMode()
Overrides:
getAddASDepMode in class Task

getAddASResultString

public java.lang.String getAddASResultString()
Methods for Task Time Processing

Overrides:
getAddASResultString in class Task

getAddASTitle

public java.lang.String getAddASTitle()
Overrides:
getAddASTitle in class Task

getAddASType

public java.lang.String getAddASType()
Overrides:
getAddASType in class Task

getAddPAWeight

public float getAddPAWeight(int level)
Overrides:
getAddPAWeight in class Task

getAddPAWeightList

public java.util.HashMap getAddPAWeightList()
Overrides:
getAddPAWeightList in class Task

getAddPAWeightListStr

public java.lang.String getAddPAWeightListStr()
Overrides:
getAddPAWeightListStr in class Task

getAddSignMessage

public java.lang.String getAddSignMessage()

getAddSignResult

public java.lang.String getAddSignResult()
getAddSignResult, for ATask only


getAFArtInstance

public AFArtInstance getAFArtInstance()
                               throws WFCIException
Return the operation artifact

Returns:
AFArtInstance the operation artifact
Throws:
WFCIException

getAFDepartment

public AFDepartment getAFDepartment()
                             throws WFCIException
Return the AFDepartment of the AFTask computed by WFCI

Returns:
the AFDepartment
Throws:
WFCIException

getAFMemberRecord

public AFMemberRecord getAFMemberRecord()
                                 throws WFCIException
Return the AFMemberRecord of the AFProcess instantiates the AFTask

Returns:
the AFMemberRecord
Throws:
WFCIException

getAFRealExecutor

public AFMemberRecord getAFRealExecutor()
                                 throws WFCIException
Get the real executor

Returns:
AFMemberRecord real executor
Throws:
WFCIException

getAFRealExecutorName

public java.lang.String getAFRealExecutorName()
                                       throws WFCIException
Get the name of the real executor

Returns:
the name of the real executor
Throws:
WFCIException
Since:
version 1.1.5

getAFRole

public AFRole getAFRole()
                 throws WFCIException
Return the AFRole of the AFTask computed by WFCI

Returns:
the AFRole
Throws:
WFCIException

getALayers

public int getALayers()
getALayers, for ATask only


getAnnounceContent

public java.lang.String getAnnounceContent()
getAnnounceContent, for ATask only


getATaskType

public java.lang.String getATaskType()

getAuditList

public java.util.List getAuditList()
GetAuditList, for CSTask only


getCSInstance

public CSInstance getCSInstance()
GetCSInstance, for CSTask and ATask


getCsSignMessage

public java.lang.String getCsSignMessage()

getDelFlag

public boolean getDelFlag()
Get the deletion flag for the AFTask

Returns:
true for existing deletion flag, else false
Since:
version 1.1.5

getDeputyName

public java.lang.String getDeputyName()
                               throws WFCIException
Get member name of the task has deputed

Returns:
String member name
Throws:
WFCIException

getGroupNumber

public int getGroupNumber()
getGroupNumber, for ATask only


getIapAuditList

public java.util.List getIapAuditList()

getIapAuditsString

public java.lang.String getIapAuditsString()

getIapGoBackToPro

public java.lang.String getIapGoBackToPro()

getIapSignMessage

public java.lang.String getIapSignMessage()

getIapSignResult

public java.lang.String getIapSignResult()

getMode

public int getMode()
getMode, for ATask only


getOperatingMemberID

public java.lang.String getOperatingMemberID()
Get the operating member ID

Returns:
the operating member ID

getOwner

public AFMemberRecord getOwner()
                        throws WFCIException
Get AFTask owner

Returns:
AFMemberRecord owner
Throws:
WFCIException

getParentAFTask

public AFTask getParentAFTask()
                       throws WFCIException
Get parent AFTask of the AFTask

Returns:
AFTask the parent task
Throws:
WFCIException

getReadPermission

public boolean getReadPermission()
                          throws WFCIException
Check if the AFTask artifacts are viewed by the specific member

Returns:
true if permitted, else false
Throws:
WFCIException
Since:
version 1.1.5

getRefAFArtInstanceList

public java.util.Vector getRefAFArtInstanceList()
                                         throws WFCIException
Return the lists of reference AFArtInstance

Returns:
the lists of reference artifact(each element in the Vector is instance of AFArtInstance)
Throws:
WFCIException

getRootAFTask

public AFTask getRootAFTask()
                     throws WFCIException
Get root AFTask in PRof the AFTask

Returns:
AFTask the root task
Throws:
WFCIException

getSaveIapFreqMessage

public java.lang.String getSaveIapFreqMessage()

getSignTime

public long getSignTime()

getSignTskId

public java.lang.String getSignTskId()

getSLayers

public int getSLayers()
getSLayers, for ATask only


getTask

public Task getTask()
get Task instance of the AFTask

Returns:
pe.pase.Task instance

goBackTo

public boolean goBackTo(java.lang.String toProID,
                        boolean artMode)
                 throws WFCIException
Go back to a former AFTask node in the same process.

Parameters:
toProID - a Process ID.
artMode - true if a new artifact is used.
Throws:
WFCIException
Since:
version 1.1.5

goBackToWithDetailRet

public java.util.HashMap goBackToWithDetailRet(java.lang.String toProID,
                                               boolean artMode)
                                        throws WFCIException
Go back to a former AFTask node in the same process.

Parameters:
toProID - the given ProcessID
artMode - true if a new artifact is used.
Throws:
WFCIException
Since:
version 1.1.5

isAddParallelAnnounceTask

public boolean isAddParallelAnnounceTask()

isAddSequantialSignTask

public boolean isAddSequantialSignTask()

isAddSequentialAnnounceTask

public boolean isAddSequentialAnnounceTask()

isAnnounceAnnexMode

public boolean isAnnounceAnnexMode()
isAnnounceAnnexMode, for ATask only


isAnnounceAuditMode

public boolean isAnnounceAuditMode()
isAnnounceAuditMode, for ATask only


isAnnounceReviewMode

public boolean isAnnounceReviewMode()
isAnnounceReviewMode, for ATask only


isATask

public boolean isATask()
isATask, check is ATask


isCSTask

public boolean isCSTask()
isCSTask, check is CSTask


isExecuteAddAS

public boolean isExecuteAddAS()
Overrides:
isExecuteAddAS in class Task

isIapTask

public boolean isIapTask()
isATask, check is ATask


isLocked

public boolean isLocked()
                 throws WFCIException
Check if the task is locked.

Throws:
WFCIException
Since:
version 1.1.5

isOnlyAnnounceAnnexMode

public boolean isOnlyAnnounceAnnexMode()
isOnlyAnnounceAnnexMode, for ATask only


isOnlyAnnounceAuditMode

public boolean isOnlyAnnounceAuditMode()
isOnlyAnnounceAuditMode, for ATask only


isOnlyAnnounceReviewMode

public boolean isOnlyAnnounceReviewMode()
isOnlyAnnounceReviewMode, for ATask only


isOnlySignAnnexMode

public boolean isOnlySignAnnexMode()
isOnlySignAnnexMode, for ATask only


isOnlySignAuditMode

public boolean isOnlySignAuditMode()
isOnlySignAuditMode, for ATask only


isOnlySignCompleteMode

public boolean isOnlySignCompleteMode()
isOnlySignCompleteMode, for ATask only


isOnlySignRejectMode

public boolean isOnlySignRejectMode()
isOnlySignRejectMode, for ATask only


isRefArt

public boolean isRefArt()
Check if any reference AFArtInstance

Since:
version 1.1.5

isSignAnnexMode

public boolean isSignAnnexMode()
isSignAnnexMode, for ATask only


isSignAuditMode

public boolean isSignAuditMode()
isSignAuditMode, for ATask only


isSignCompleteMode

public boolean isSignCompleteMode()
isSignCompleteMode, for ATask only


isSignRejectMode

public boolean isSignRejectMode()
isSignRejectMode, for ATask only


lockAFTask

public void lockAFTask()
                throws WFCIException
Lock the root AFTask of the AFTask.

Throws:
WFCIException
Since:
version 1.1.5

notifyAFTask

public java.util.HashMap notifyAFTask()
                               throws WFCIException
Remove be state of waiting of the AFTask.

Returns:
the result ( [Key:Value] = [retValue:Boolean(true)] )
Throws:
WFCIException
Since:
version 1.1.5

setAddASAuditList

public void setAddASAuditList(java.util.Vector list)
Overrides:
setAddASAuditList in class Task

setAddASAuditsString

public void setAddASAuditsString(java.lang.String auditString)
Overrides:
setAddASAuditsString in class Task

setAddASDepMode

public void setAddASDepMode(java.lang.String mode)
Overrides:
setAddASDepMode in class Task

setAddASTitle

public void setAddASTitle(java.lang.String addASTitle)
Overrides:
setAddASTitle in class Task

setAddASType

public void setAddASType(java.lang.String type)
Overrides:
setAddASType in class Task

setAddPAWeight

public void setAddPAWeight(float weight)
Overrides:
setAddPAWeight in class Task

setAddPAWeight

public void setAddPAWeight(int level,
                           float weight)
Overrides:
setAddPAWeight in class Task

setAddPAWeightList

public void setAddPAWeightList(java.util.HashMap list)
Overrides:
setAddPAWeightList in class Task

setAddPAWeightList

public void setAddPAWeightList(java.lang.String listStr)
Overrides:
setAddPAWeightList in class Task

setAddSignMessage

public void setAddSignMessage(java.lang.String addSignMessage)

setAddSignResult

public void setAddSignResult(java.lang.String result)
setAddSignResult, for ATask only


setALayers

public void setALayers(int layers)
setALayers, for ATask only


setAnnounceAnnexMode

public void setAnnounceAnnexMode()
setAnnounceAnnexMode, for ATask only


setAnnounceAuditMode

public void setAnnounceAuditMode()
setAnnounceAuditMode, for ATask only


setAnnounceContent

public void setAnnounceContent(java.lang.String content)
setAnnounceContent, for ATask only


setAnnounceReviewMode

public void setAnnounceReviewMode()
setAnnounceReviewMode, for ATask only


setATaskType

public void setATaskType(java.lang.String type)

setAuditList

public void setAuditList(java.util.List list)
SetAuditList, for CSTask only


setCSInstance

public void setCSInstance(CSInstance instance)
SetCSInstance, for CSTask and ATask


setCsSignMessage

public void setCsSignMessage(java.lang.String csSignMessage)

setExecuteAddAS

public void setExecuteAddAS(boolean flag)
Overrides:
setExecuteAddAS in class Task

setGroupNumber

public void setGroupNumber(int num)
setGroupNumber, for ATask only


setIapAuditList

public void setIapAuditList(java.util.List list)

setIapGoBackToPro

public void setIapGoBackToPro(java.lang.String iapGoBackToPro)

setIapSignMessage

public void setIapSignMessage(java.lang.String iapSignMessage)

setIapSignResult

public void setIapSignResult(java.lang.String iapSignResult)

setMode

public void setMode(int mode)
setMode, for ATask only


setOperatingMemberID

public void setOperatingMemberID(java.lang.String mID)
Set the operating member ID

Parameters:
mID - the operating member ID

setSaveIapFreqMessage

public void setSaveIapFreqMessage(java.lang.String saveIapFreqMessage)

setSignAnnexMode

public void setSignAnnexMode()
setSignAnnexMode, for ATask only


setSignAuditMode

public void setSignAuditMode()
setSignAuditMode, for ATask only


setSignCompleteMode

public void setSignCompleteMode()
setSignCompleteMode, for ATask only


setSignRejectMode

public void setSignRejectMode()
setSignRejectMode, for ATask only


setSignTime

public void setSignTime(long signTime)

setSignTskId

public void setSignTskId(java.lang.String signTskId)

setSLayers

public void setSLayers(int layers)
setSLayers, for ATask only


startAFTask

public java.util.HashMap startAFTask()
                              throws WFCIException
Start the AFTask.

Returns:
the result ( [Key:Value] = [retValue:Boolean(true)] )
Throws:
WFCIException

suspendAFTask

public java.util.HashMap suspendAFTask()
                                throws WFCIException
Suspend the AFTask

Returns:
the result ( [Key:Value] = [retValue:Boolean(true)] )
Throws:
WFCIException

unlockAFTask

public void unlockAFTask()
                  throws WFCIException
UnLock the root task of the AFTask.

Throws:
WFCIException
Since:
version 1.1.5

updateAFArtInstance

public boolean updateAFArtInstance(AFArtInstance instance)
                            throws WFCIException
Update an AFArtInstance instance

Parameters:
instance - the givin AFArtInstance
Returns:
true for success, else false
Throws:
WFCIException
Since:
version 1.1.5
See Also:
AFArtInstance

updateAFTask

public void updateAFTask()
                  throws WFCIException
Update the data object of AFTask. The method will update the AFTask in cache and database.

Throws:
WFCIException

updateAFTaskState

public void updateAFTaskState()
                       throws WFCIException
Update the state of AFTask. The method will update the AFTask state in cache and database.

Throws:
WFCIException

waitAFTask

public void waitAFTask()
                throws WFCIException
Set the AFTask to be state of waiting

Throws:
WFCIException
Since:
version 1.1.5

waitAFTask

public void waitAFTask(java.lang.String timeString)
                throws WFCIException
Set the AFTask to be state of waiting, and the waiting duration.

Parameters:
timeString - the running time with format "yyyy/mm/dd/hh/mm"
Throws:
WFCIException
Since:
version 1.1.5

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.