Agentflow
V3.1

pe.pase
Interface FlowService

All Known Subinterfaces:
WCCI

public interface FlowService


Method Summary
 boolean addMonitorRelation(java.lang.String sourceTaskID, java.lang.String createdRootTaskID)
          Add task monitor relation, store root task ID and those created root task ID when executed.
 boolean addMonitorRelation(java.lang.String sourceTaskID, java.util.Vector createdRootTaskIDs)
          Add task monitor relation, store root task ID and those created root task ID when executed.
 int asynGetTaskOfMember(java.lang.String memId)
          Return the task count of the specific member
 boolean bypassTask(Task task, java.lang.String stateId)
          Bypass a task with a specified condition.
 java.lang.Object callServerSideScriptFunction(java.lang.String library, java.lang.String function, java.lang.Object[] args)
          Call function on server-side script
 boolean cancelTaskInClient(Task t)
          Cancel the client side Task.
 boolean cancelTaskInClient(Task t, java.lang.String loginID)
          Cancel the client side Task
 java.util.HashMap completeTask(Task task)
          Complete the task
 java.util.HashMap completeTask(Task task, java.lang.String stateId)
          Complete the task with changing artifact state
 PASEartInstance createArtInstance(java.lang.String aID)
          Create artifact instance
 PASEartInstance createFreqArtInstance(java.lang.String aID)
          Create artifact instance, for FreqAp use
 java.lang.String createProcess(java.lang.String memId, java.lang.String processId, java.util.HashMap args, boolean isPopup, boolean isDelible)
          Create a process.
 java.lang.String createProcess(java.lang.String memId, java.lang.String roleId, java.lang.String processId, java.util.HashMap args, boolean isPopup, boolean isDelible, java.lang.String taskId, java.lang.String dtTemplateId, boolean isShowMonitorRelation)
          Create a process.
 java.util.HashMap createProcessEx(java.lang.String type, java.lang.String loginId, java.lang.String processId, java.lang.String subject, int priority, java.util.List fileList, java.util.Map args, java.util.Map artifactArgs)
          For mail to create a process.
 boolean forceCompleteATask(Task parentTask)
          Complete an ATask.
 boolean forceReassignTask(java.lang.String taskId, java.lang.String memberId)
          Re-assign a task to another member.
 boolean forceReassignTask(Task task, MemberRecord mbr)
          Re-assign a task to another member.
 java.util.Vector getAddSignTaskList(java.lang.String signTaskId)
          get sign task list of the same singTaskId
 java.util.Collection getAllAddASResult(java.lang.String taskId)
          Returns all add AS result that were written before the given task.
 java.util.Vector getAllCSSignResult(java.lang.String result, CSTask csTask, java.lang.String csSignResult, java.util.Vector auditList)
           
 java.util.Vector getAllCSSignResult(java.util.Vector parseTaskList)
           
 java.util.Collection getAllCSTaskNote(java.lang.String taskId)
          Returns all CS tasks' note that were written before the given task.
 java.util.Collection getAllIapSignResult(java.lang.String taskId)
          Returns all add AS result that were written before the given task.
 java.util.Vector getAllTskIDListByGPro(java.lang.String gProID, java.lang.String frontTaskID)
          Get the ids of root task list which will trigger the GatherProcess This method will be used in the PreAction and PostAction of the GatherProcess only.
 java.util.Vector getApprovalHistoryRootTaskOfJoinMember(java.lang.String memId)
          Get root tasks that there are any sub-task are executed by the specified member, where the task member and the task executor are the same.
 PASEartInstance getArtInstance(java.lang.String iID)
          Return a data object of artifact instance with current Task
 PASEartInstance getArtInstance(java.lang.String iID, java.lang.String tID)
          Return a data object of artifact instance with specific task
 java.util.Vector getArtInstanceOfArtifact(java.lang.String aID)
          Return all artifact instances instanciated by some specific artifact.
 java.util.HashMap getATaskNote(java.lang.String taskId)
          Get all ATask information for the specified root task.
 java.util.Vector getCollectedTskIDListByGPro(java.lang.String gProID, java.lang.String frontTaskID)
          Get the ids of root task list which has triggered the GatherProcess This method will be used in the PreAction and PostAction of the GatherProcess only.
 java.util.Vector getCPTaskIDList(java.lang.String cProID, java.lang.String frontTaskID)
          Get the root task id list which created by the CreateProcess with the specified CreateProcess id and front task id.
 java.util.Hashtable getCSLockHashtable()
          Get the hashtable keep the information about locked countersign tasks.
 CSSignInfo getCSSignInfo(Task task)
           
 java.util.HashMap getCSTaskNote(java.lang.String taskId)
          Get all CSTask information for the specified task.
 java.util.Vector getFreqMessageByMbrId(java.lang.String mbrId)
           
 java.util.Vector getGroupSignTinyTaskList(java.lang.String memId)
          Return all groupsign tasks of some specific member.
 java.util.Vector getHistoryRootTaskOfJoinMember(java.lang.String memId)
          Get root tasks that there are any sub-task are executed by the specified member.
 java.util.Vector getInvolvedExecutors(java.lang.String rootTaskID)
          Get involved executors of Root process
 java.util.Vector getInvolvedMembers(java.lang.String rootTaskID)
          Get involved members of Root process
 java.util.Vector getPDiagramDetail(java.lang.String rootId)
          Return the detail of process diagram
 java.util.HashMap getPDiagramState(java.lang.String rootId)
          Return the states of process diagram
 java.util.HashMap getProcessDiagram(java.lang.String rootId, java.lang.String rootTaskId)
          Return a process diagram
 java.util.HashMap getProcessDiagramAndState(java.lang.String rootId, java.lang.String rootTaskId)
          Return a process diagram and its states
 java.util.Vector getProcessList(java.lang.String memId)
          Return processes of the specific member, which these processes could be initialized by member.
 java.util.HashMap getProcessView(java.lang.String rootId)
           
 java.util.List getPumpTaskList(java.lang.String rootID)
           
 java.util.Vector getRequestHistoryRootTaskOfJoinMember(java.lang.String memId)
          Get root tasks that are initializied by the specified member
 java.util.Vector getRootTaskOfJoinMember(java.lang.String memId)
          Return Root tasks executed by some specific member, including deputy
 java.util.Vector getRootTaskOfJoinMember(java.lang.String memId, int taskState)
          Return Root tasks executed by some specific member and states, including deputy
 java.util.Vector getRootTaskOfJoinMember(java.lang.String memId, java.lang.String processID)
          Return Root tasks executed by some specific member and states, including deputy
 java.util.Vector getRootTaskOfMember(java.lang.String memId)
          Return Root tasks executed by some specific member, deputy exclusively
 java.util.Vector getRootTaskOfMember(java.lang.String memId, int taskState)
          Return Root tasks executed by some specific member and states, deputy exclusively
 java.util.Vector getRootTaskOfProcess(java.lang.String processId)
          Retrieving the root Tasks of the given DBProcess id.
 java.util.Vector getRootTaskOfProcess(java.lang.String processId, int taskState)
          Retrieving the root Tasks of the given DBProcess id and task state.
 java.lang.String getScriptLibrary(java.lang.String fullname)
          Get Script Library by name
 java.util.Vector getSequelProIDList(java.lang.String callId, java.lang.String rootId)
          Get all call processes ID list in this RootTask.
 java.util.Vector getSubTaskList(java.lang.String parentId)
          Return subtasks of some specific task
 Task getTask(java.lang.String taskId)
          Return a data object of task
 java.util.Vector getTaskIDListOfMember(java.lang.String memId, int beginIndex, int endIndex, java.lang.String orderBy)
          Return task ID list of the specific member
 java.util.Vector getTaskList(java.lang.String memId)
          Return tasks of the specific member
 java.util.Vector getTaskList(java.lang.String memId, int beginIndex, int endIndex)
          Return tasks of the specific member
 TaskMonitorRelation getTaskMonitorRelationByRoot(java.lang.String rootTskID)
          Get the task relation info of create process by the rootTask was triggered
 java.util.Vector getTaskOfCompany()
          Get all tasks.
 java.util.Vector getTaskOfCompany(int taskState)
          Get tasks with the specified task states.
 java.util.Vector getTaskOfDepartment(java.lang.String depId)
          Get all tasks for the specified department.
 java.util.Vector getTaskOfDepartment(java.lang.String depId, int taskState)
          Get tasks for the specified department, with the specified task states.
 java.util.Vector getTaskOfMember(java.lang.String memId)
          Return tasks executed by some specific member
 java.util.Vector getTaskOfMember(java.lang.String memId, int taskState)
          Return tasks which in some state and executed by some specific member
 java.util.Vector getTaskOfProcess(java.lang.String processId)
          Return tasks instantiated of some specific process.
 java.util.Vector getTaskOfProcess(java.lang.String processId, int taskState)
          Return tasks which are in some state and instantiated of some specific process.
 java.util.Vector getTaskOfRole(java.lang.String roleId)
          Get all tasks for the specified role.
 java.util.Vector getTaskOfRole(java.lang.String roleId, int taskState)
          Get tasks for the specified role, with the specified task states.
 java.util.Vector getTaskOfRootTask(java.lang.String rootId)
          Return tasks of some specific root task
 java.util.Vector getTinyPDiagramDetail(java.lang.String rootId, java.lang.String memId)
          Return the detail of process diagram
 java.util.List getTinyRootTaskIdListOfJoinMember(java.lang.String memId, java.lang.String rootDate, java.lang.String rootName, java.lang.String rootState)
          Return Root TinyTask(s) executed by some specific member, including deputy
 java.util.Vector getTinyRootTaskOfJoinMember(java.lang.String memId)
          Return Root TinyTask(s) executed by some specific member, including deputy
 java.util.Vector getTinyRootTaskOfJoinMember(java.lang.String memId, java.lang.String proID)
          Return Root TinyTask(s) executed by some specific member, including deputy
 java.util.List getTinyTaskIdListTracked(java.lang.String memId, java.util.List taskIdList, java.lang.String state)
          Return tasks of the specific member and tasks
 java.util.Vector getTinyTaskList(java.lang.String memId)
          Return tasks of the specific member
 java.util.Vector getTinyTaskList(java.lang.String memId, int beginIndex, int endIndex, java.lang.String orderBy)
          Return tasks of the specific member
 java.util.Vector getTinyTaskList(java.lang.String memId, java.util.List taskIdList)
          Return tasks of the specific member and tasks
 java.util.Vector getTranslateArtInsList(java.lang.String aID)
          Get all PASEArtInstance data for the specified artifact.
 java.util.HashMap getTreeTaskList(java.lang.String memId)
          Return tasks of the specific member
 int getUncompletePATaskNo(Task parentTask)
          Calculate the tasks count which tasks are "Add Parallel Announce" and are complete under the specified task.
 boolean goBackTo(java.lang.String fromTaskId, java.lang.String toProcessId, boolean artMode)
          Sets the executing task back to another process which had been executed.
 boolean goBackTo(java.lang.String fromTaskId, Task toTask, boolean artMode)
          Sets the executing task back to another process which had been executed.
 boolean goBackTo(java.lang.String fromTaskID, Task toTask, boolean artMode, boolean isEmailNotify)
          Sets the executing task back to another process which had been executed.
 boolean goBackTo(Task fromTask, java.lang.String toProcessId, boolean artMode)
          Sets the executing task back to another process which had been executed.
 java.util.HashMap goBackToWithDetailRet(Task fromTask, java.lang.String toProcessId, boolean artMode)
          Sets the executing task back to another process which had been executed.
 java.util.HashMap initProcess(java.lang.String loginId, PASEProcess process)
          Initial the process
 java.util.HashMap initProcess(java.lang.String loginId, java.lang.String roleId, java.lang.String depId, java.lang.String processId, java.lang.String keyword, int priority)
          Initial the process
 boolean isATaskComplete(Task t)
           
 boolean isCSTaskComplete(Task t)
           
 boolean isLocked(java.lang.String taskId)
          Check the task locking state
 void lockTask(java.lang.String taskId)
          Lock a task.
 java.util.HashMap notifyTask(java.lang.String taskId)
          Notify a task.
 java.util.Vector parseAddASResultString(java.lang.String result)
          Parse the countersign result string to CSResultData
 java.util.Vector parseCSResultString(java.lang.String result, java.util.List auditNameList)
          Parse the countersign result string to CSResultData
 boolean pickQueueTask(Task task)
          Pick a task to execute from its queue.
 boolean removeAFTVElementVO(java.lang.String subject, java.lang.String item)
           
 boolean removeRootTaskByShell(java.lang.String rootId, java.lang.String memId)
          Remove a root task, if the user has permission to remove the task.
 boolean removeTaskByAdm(java.lang.String rootId)
          Remove a root task.
 boolean removeTaskByUser(java.lang.String rootId, java.lang.String memId)
          Remove a root task, if the user has permission to remove the task.
 void reScheduleTask(Task task)
          Reschedule the task Cron Event(s)
 void runScriptOnServer(java.lang.String code, Task task)
          Execute script on the specified task
 boolean saveAFTVElementVO(AFTVElementVO vo)
           
 boolean setArtInsState(PASEartInstance artInstance, java.lang.String stateID)
          Return true for success, else false
 boolean setMonitorRelation(java.lang.String sourceTaskID, java.lang.String createdRootTaskID)
          Set task monitor relation, store root task ID and those created root task ID when executed.
 boolean setMonitorRelation(java.lang.String sourceTaskID, java.util.Vector createdRootTaskIDs)
          Set task monitor relation, store root task ID and those created root task ID when executed.
 java.util.HashMap startTask(Task task)
          Start the task
 void stopRootTask(java.lang.String rootId)
          Stop a root task.
 java.util.HashMap suspendTask(Task task)
          suspend Task
 void unlockCoSign(java.lang.String processId)
          Unlock a countrsign task.
 void unlockTask(java.lang.String taskId)
          UnLock a task.
 boolean updateArtInstance(PASEartInstance instance)
          Update artifact instance Notice: Artifact instance is carrying artifact state information.
 boolean updateArtInstanceLog(java.lang.String taskId, PASEartInstance instance)
          Update artifact instance log
 boolean updateTask(Task task)
          Update the data object of task.
 boolean updateTaskState(Task task)
          Update the state of task.
 void waitTask(java.lang.String taskId)
          Wait a task.
 void waitTask(java.lang.String taskId, java.lang.String timeToNotify)
          Wait a task.
 

Method Detail

addMonitorRelation

boolean addMonitorRelation(java.lang.String sourceTaskID,
                           java.lang.String createdRootTaskID)
Add task monitor relation, store root task ID and those created root task ID when executed.

Parameters:
sourceTaskID - the given RootTaskID
createdRootTaskID - the given created RootTaskID
Returns:
true if the execution is successful; false otherwise.

addMonitorRelation

boolean addMonitorRelation(java.lang.String sourceTaskID,
                           java.util.Vector createdRootTaskIDs)
Add task monitor relation, store root task ID and those created root task ID when executed.

Parameters:
sourceTaskID - the given RootTaskID
createdRootTaskIDs - the given created RootTaskID list
Returns:
true if the execution is successful; false otherwise.

asynGetTaskOfMember

int asynGetTaskOfMember(java.lang.String memId)
Return the task count of the specific member

Parameters:
memId - the given member id
Returns:
task count

bypassTask

boolean bypassTask(Task task,
                   java.lang.String stateId)
Bypass a task with a specified condition.

Parameters:
task - the given Task
stateId - the given artifact state id
Returns:
true if successful.

callServerSideScriptFunction

java.lang.Object callServerSideScriptFunction(java.lang.String library,
                                              java.lang.String function,
                                              java.lang.Object[] args)
Call function on server-side script

Parameters:
library - the given script library
function - the function name
args - the arguments
Returns:
Object of the called function
Since:
V2.1

cancelTaskInClient

boolean cancelTaskInClient(Task t)
Cancel the client side Task. (using the Task to find the user ID.)

Parameters:
t - the given Task
Returns:
true for success.

cancelTaskInClient

boolean cancelTaskInClient(Task t,
                           java.lang.String loginID)
Cancel the client side Task

Parameters:
t - the given Task
loginID - the user login ID
Returns:
true for success.

completeTask

java.util.HashMap completeTask(Task task)
Complete the task

Parameters:
task - the given Task
Returns:
the result ( [Key:Value] = [retValue:Boolean(true)] )

completeTask

java.util.HashMap completeTask(Task task,
                               java.lang.String stateId)
Complete the task with changing artifact state

Parameters:
task - the given Task , stateID the prefer state.
Returns:
the result ( [Key:Value] = [retValue:Boolean(true)] )

createArtInstance

PASEartInstance createArtInstance(java.lang.String aID)
Create artifact instance

Parameters:
iID - the given ArtifactID
Returns:
the artifact instance
Since:
version 1.1
See Also:
PASEartInstance

createFreqArtInstance

PASEartInstance createFreqArtInstance(java.lang.String aID)
Create artifact instance, for FreqAp use

Parameters:
aID - the given ArtifactID
Returns:
the artifact instance
Since:
version 1.1
See Also:
PASEartInstance

createProcess

java.lang.String createProcess(java.lang.String memId,
                               java.lang.String processId,
                               java.util.HashMap args,
                               boolean isPopup,
                               boolean isDelible)
Create a process.

Parameters:
memId - the given member id
processId - the given process id
args - the given arguments
isPopup - whether the root task is popup or not
isDelible - whether the root task is delible or not

createProcess

java.lang.String createProcess(java.lang.String memId,
                               java.lang.String roleId,
                               java.lang.String processId,
                               java.util.HashMap args,
                               boolean isPopup,
                               boolean isDelible,
                               java.lang.String taskId,
                               java.lang.String dtTemplateId,
                               boolean isShowMonitorRelation)
Create a process.

Parameters:
memId - the given member id
roleId - the given role id
processId - the given process id
args - the given arguments
isPopup - whether the root task is popup or not
isDelible - whether the root task is delible or not
taskID - the specified task id which execute this API
dtTemplateID - the specified data transfer template id
isShowMonitorRelation - whether the specified task will show monitor relation in monitor or not

createProcessEx

java.util.HashMap createProcessEx(java.lang.String type,
                                  java.lang.String loginId,
                                  java.lang.String processId,
                                  java.lang.String subject,
                                  int priority,
                                  java.util.List fileList,
                                  java.util.Map args,
                                  java.util.Map artifactArgs)
For mail to create a process.

Parameters:
type - the given root task type
loginId - the given user's login id
processId - the given process id
subject - the given mail subject
priority - the given mail priority
fileList - the given attached file list
args - the given process arguments
artifactArgs - the given artifact argments

forceCompleteATask

boolean forceCompleteATask(Task parentTask)
Complete an ATask.

Parameters:
parentTask - the given parent task
Returns:
true if successful.

forceReassignTask

boolean forceReassignTask(java.lang.String taskId,
                          java.lang.String memberId)
Re-assign a task to another member.

Parameters:
taskId - the given task id
memberId - the given member id
Returns:
true if successful.

forceReassignTask

boolean forceReassignTask(Task task,
                          MemberRecord mbr)
Re-assign a task to another member.

Parameters:
task - the given Task
mbr - the given MemberRecord
Returns:
true if successful.

getAddSignTaskList

java.util.Vector getAddSignTaskList(java.lang.String signTaskId)
get sign task list of the same singTaskId

Parameters:
signTaskId - signTaskId;
Returns:
Vector a task list @

getAllAddASResult

java.util.Collection getAllAddASResult(java.lang.String taskId)
Returns all add AS result that were written before the given task.

Parameters:
taskID - the given task id
Returns:
the AddCSResultData objects collection @

getAllCSSignResult

java.util.Vector getAllCSSignResult(java.lang.String result,
                                    CSTask csTask,
                                    java.lang.String csSignResult,
                                    java.util.Vector auditList)

getAllCSSignResult

java.util.Vector getAllCSSignResult(java.util.Vector parseTaskList)

getAllCSTaskNote

java.util.Collection getAllCSTaskNote(java.lang.String taskId)
Returns all CS tasks' note that were written before the given task.

Parameters:
taskId - the given task id
Returns:
the CSResultData objects collection

getAllIapSignResult

java.util.Collection getAllIapSignResult(java.lang.String taskId)
Returns all add AS result that were written before the given task.

Parameters:
taskID - the given task id
Returns:
the IapSignResultData objects collection @

getAllTskIDListByGPro

java.util.Vector getAllTskIDListByGPro(java.lang.String gProID,
                                       java.lang.String frontTaskID)
Get the ids of root task list which will trigger the GatherProcess This method will be used in the PreAction and PostAction of the GatherProcess only.

Parameters:
gProID - the GatherProcess id
frontTaskID - the front task id
Returns:
the root task id list
Since:
version 2.2

getApprovalHistoryRootTaskOfJoinMember

java.util.Vector getApprovalHistoryRootTaskOfJoinMember(java.lang.String memId)
Get root tasks that there are any sub-task are executed by the specified member, where the task member and the task executor are the same.

Parameters:
menId - the given member id
Returns:
the correspodence root task instances(each element in Vector are instance of Task)
See Also:
Task

getArtInstance

PASEartInstance getArtInstance(java.lang.String iID)
Return a data object of artifact instance with current Task

Parameters:
iID - the given ArtifactInstanceID
Returns:
the artifact instance
See Also:
getArtInstance

getArtInstance

PASEartInstance getArtInstance(java.lang.String iID,
                               java.lang.String tID)
Return a data object of artifact instance with specific task

Parameters:
iID - the given ArtifactInstanceID
Returns:
the artifact instance
See Also:
getArtInstance

getArtInstanceOfArtifact

java.util.Vector getArtInstanceOfArtifact(java.lang.String aID)
Return all artifact instances instanciated by some specific artifact.

Parameters:
aID - the given ArtifactID
Returns:
the correspodence artifact instances(each element in Vector are instance of PASEartInstance)
Since:
version 1.1.5
See Also:
PASEartInstance

getATaskNote

java.util.HashMap getATaskNote(java.lang.String taskId)
Get all ATask information for the specified root task. The value of key "data" is not null when the value of key "retValue" is Boolean.TRUE.

Parameters:
taskId - the given task id
Returns:
the result ( [Key:Value] = [data:AllATaskNote(String)] ; [retValue:Boolean(true/false)])

getCollectedTskIDListByGPro

java.util.Vector getCollectedTskIDListByGPro(java.lang.String gProID,
                                             java.lang.String frontTaskID)
Get the ids of root task list which has triggered the GatherProcess This method will be used in the PreAction and PostAction of the GatherProcess only.

Parameters:
gProID - the GatherProcess id
frontTaskID - the front task id
Returns:
the root task id list
Since:
version 2.2

getCPTaskIDList

java.util.Vector getCPTaskIDList(java.lang.String cProID,
                                 java.lang.String frontTaskID)
Get the root task id list which created by the CreateProcess with the specified CreateProcess id and front task id. This method will be used in the PreAction and PostAction of the CreateProcess only.

Parameters:
cProID - the CreateProcess id
frontTaskID - the front task id
Returns:
the root task id list
Since:
version 2.2

getCSLockHashtable

java.util.Hashtable getCSLockHashtable()
Get the hashtable keep the information about locked countersign tasks.

Returns:
the Hashtable, which stores the pair of (rootTaskID+ProcessID:taskID).

getCSSignInfo

CSSignInfo getCSSignInfo(Task task)

getCSTaskNote

java.util.HashMap getCSTaskNote(java.lang.String taskId)
Get all CSTask information for the specified task. The value of key "data" is not null when the value of key "retValue" is Boolean.TRUE.

Parameters:
taskId - the given task id
Returns:
the result ( [Key:Value] = [data:AllCSTaskNote(String)] ; [retValue:Boolean(true/false)])

getFreqMessageByMbrId

java.util.Vector getFreqMessageByMbrId(java.lang.String mbrId)

getGroupSignTinyTaskList

java.util.Vector getGroupSignTinyTaskList(java.lang.String memId)
Return all groupsign tasks of some specific member.

Parameters:
memId - the given member id
Returns:
the correspondence vector of TinyTask
Since:
version 1.2
See Also:
TinyTask

getHistoryRootTaskOfJoinMember

java.util.Vector getHistoryRootTaskOfJoinMember(java.lang.String memId)
Get root tasks that there are any sub-task are executed by the specified member.

Parameters:
memId - the given member id
Returns:
the correspodence root task instances(each element in Vector are instance of Task)
See Also:
Task

getInvolvedExecutors

java.util.Vector getInvolvedExecutors(java.lang.String rootTaskID)
Get involved executors of Root process

Parameters:
rootTaskID - the given RootTaskID
Returns:
the member ID list.

getInvolvedMembers

java.util.Vector getInvolvedMembers(java.lang.String rootTaskID)
Get involved members of Root process

Parameters:
rootTaskID - the given RootTaskID
Returns:
the member ID list.

getPDiagramDetail

java.util.Vector getPDiagramDetail(java.lang.String rootId)
Return the detail of process diagram

Parameters:
rootId - the given root task id
Returns:
the detail information in process diagram
See Also:
PDiagramManager, PDiagramManager.getPDiagramDetail

getPDiagramState

java.util.HashMap getPDiagramState(java.lang.String rootId)
Return the states of process diagram

Parameters:
rootId - the given root task id
Returns:
the process diagram states
See Also:
PDiagramManager, PDiagramManager.getPDiagramState

getProcessDiagram

java.util.HashMap getProcessDiagram(java.lang.String rootId,
                                    java.lang.String rootTaskId)
Return a process diagram

Parameters:
rootId - the given root proccess id
rootTaskId - the given root task id
Returns:
the process diagram
See Also:
PDiagramManager, PDiagramManager.getProcessDiagram

getProcessDiagramAndState

java.util.HashMap getProcessDiagramAndState(java.lang.String rootId,
                                            java.lang.String rootTaskId)
Return a process diagram and its states

Parameters:
rootId - the given root process id
rootTaskId - the given root task id
Returns:
the process diagram and its states
See Also:
PDiagramManager

getProcessList

java.util.Vector getProcessList(java.lang.String memId)
Return processes of the specific member, which these processes could be initialized by member.

Parameters:
memId - the given member id
Returns:
all correspondence processes (each elemen in Vector are instance of PASEProcess)
See Also:
PASEProcess

getProcessView

java.util.HashMap getProcessView(java.lang.String rootId)

getPumpTaskList

java.util.List getPumpTaskList(java.lang.String rootID)

getRequestHistoryRootTaskOfJoinMember

java.util.Vector getRequestHistoryRootTaskOfJoinMember(java.lang.String memId)
Get root tasks that are initializied by the specified member

Parameters:
memId - the given member id
Returns:
the correspodence root task instances(each element in Vector are instance of Task)
See Also:
Task

getRootTaskOfJoinMember

java.util.Vector getRootTaskOfJoinMember(java.lang.String memId)
Return Root tasks executed by some specific member, including deputy

Parameters:
memId - the given member id
Returns:
all correspondence root tasks
See Also:
Task

getRootTaskOfJoinMember

java.util.Vector getRootTaskOfJoinMember(java.lang.String memId,
                                         int taskState)
Return Root tasks executed by some specific member and states, including deputy

Parameters:
memId - the given member id
taskState - the given state of task
Returns:
all correspondence root tasks
See Also:
Task

getRootTaskOfJoinMember

java.util.Vector getRootTaskOfJoinMember(java.lang.String memId,
                                         java.lang.String processID)
Return Root tasks executed by some specific member and states, including deputy

Parameters:
memId - the given member id
processID - the given ID of process
Returns:
all correspondence root tasks
See Also:
Task

getRootTaskOfMember

java.util.Vector getRootTaskOfMember(java.lang.String memId)
Return Root tasks executed by some specific member, deputy exclusively

Parameters:
memId - the given member id
Returns:
all correspondence root tasks
See Also:
Task

getRootTaskOfMember

java.util.Vector getRootTaskOfMember(java.lang.String memId,
                                     int taskState)
Return Root tasks executed by some specific member and states, deputy exclusively

Parameters:
memId - the given member id
taskState - the given state of task
Returns:
all correspondence root tasks
See Also:
Task

getRootTaskOfProcess

java.util.Vector getRootTaskOfProcess(java.lang.String processId)
Retrieving the root Tasks of the given DBProcess id.

Parameters:
processId - the given process id
Returns:
all correspondence tasks (each element in Vector is a instance of Task)
Since:
2.2.3

getRootTaskOfProcess

java.util.Vector getRootTaskOfProcess(java.lang.String processId,
                                      int taskState)
Retrieving the root Tasks of the given DBProcess id and task state.

Parameters:
processId - the given process id
taskState - the given state of task
Returns:
all correspondence tasks (each element in Vector is a instance of Task)
Since:
2.2.3

getScriptLibrary

java.lang.String getScriptLibrary(java.lang.String fullname)
Get Script Library by name

Parameters:
fullname - the given script library name
Returns:
script of the library
Since:
V2.1

getSequelProIDList

java.util.Vector getSequelProIDList(java.lang.String callId,
                                    java.lang.String rootId)
Get all call processes ID list in this RootTask.

Parameters:
callId - the given call process id
rootId - the given root task id
Returns:
the correspodence process ID instances(each element in Vector are instance of ProcessID)

getSubTaskList

java.util.Vector getSubTaskList(java.lang.String parentId)
Return subtasks of some specific task

Parameters:
parentId - the given parent task id
Returns:
all correspondence tasks (each elemen in Vector are instance of Task)
See Also:
Task

getTask

Task getTask(java.lang.String taskId)
Return a data object of task

Parameters:
taskId - the given task id
Returns:
the task
See Also:
Task

getTaskIDListOfMember

java.util.Vector getTaskIDListOfMember(java.lang.String memId,
                                       int beginIndex,
                                       int endIndex,
                                       java.lang.String orderBy)
Return task ID list of the specific member

Parameters:
memId - the given member id
beginIndex - the given start index
endIndex - the given end index
orderBy - the given field name to order
Returns:
all correspondence task ID(each elemen in Vector are instance of Task ID)

getTaskList

java.util.Vector getTaskList(java.lang.String memId)
Return tasks of the specific member

Parameters:
memId - the given member id
Returns:
all correspondence tasks (each elemen in Vector are instance of Task)
See Also:
Task

getTaskList

java.util.Vector getTaskList(java.lang.String memId,
                             int beginIndex,
                             int endIndex)
Return tasks of the specific member

Parameters:
memId - the given member id
beginIndex - the given start index
endIndex - the given end index
Returns:
all correspondence tasks (each elemen in Vector are instance of Task)
See Also:
Task

getTaskMonitorRelationByRoot

TaskMonitorRelation getTaskMonitorRelationByRoot(java.lang.String rootTskID)
Get the task relation info of create process by the rootTask was triggered

Parameters:
rootTskID - the given task id
Returns:
task relation info.

getTaskOfCompany

java.util.Vector getTaskOfCompany()
Get all tasks.

Returns:
the correspodence task instances(each element in Vector are instance of Task)
See Also:
Task

getTaskOfCompany

java.util.Vector getTaskOfCompany(int taskState)
Get tasks with the specified task states.

Parameters:
taskState - the given state of task
Returns:
the correspodence task instances(each element in Vector are instance of Task)
See Also:
Task

getTaskOfDepartment

java.util.Vector getTaskOfDepartment(java.lang.String depId)
Get all tasks for the specified department.

Parameters:
depId - the given department id
Returns:
the correspodence task instances(each element in Vector are instance of Task)
See Also:
Task

getTaskOfDepartment

java.util.Vector getTaskOfDepartment(java.lang.String depId,
                                     int taskState)
Get tasks for the specified department, with the specified task states.

Parameters:
depId - the given department id
taskState - the given state of task
Returns:
the correspodence task instances(each element in Vector are instance of Task)
See Also:
Task

getTaskOfMember

java.util.Vector getTaskOfMember(java.lang.String memId)
Return tasks executed by some specific member

Parameters:
memId - the given member id
Returns:
all correspondence tasks (each elemen in Vector are instance of Task)
See Also:
Task

getTaskOfMember

java.util.Vector getTaskOfMember(java.lang.String memId,
                                 int taskState)
Return tasks which in some state and executed by some specific member

Parameters:
memId - the given member id
taskState - the given state of task
Returns:
all correspondence tasks (each elemen in Vector are instance of Task)
See Also:
Task

getTaskOfProcess

java.util.Vector getTaskOfProcess(java.lang.String processId)
Return tasks instantiated of some specific process.

Parameters:
processId - the given process id
Returns:
all correspondence tasks (each element in Vector are instance of Task)
Since:
version 1.0.0
See Also:
Task

getTaskOfProcess

java.util.Vector getTaskOfProcess(java.lang.String processId,
                                  int taskState)
Return tasks which are in some state and instantiated of some specific process.

Parameters:
processId - the given process id
taskState - the given state of task
Returns:
all correspondence tasks (each element in Vector are instance of Task)
Since:
version 1.0.0
See Also:
Task

getTaskOfRole

java.util.Vector getTaskOfRole(java.lang.String roleId)
Get all tasks for the specified role.

Parameters:
roleId - the given role id
Returns:
the correspodence task instances(each element in Vector are instance of Task)
See Also:
Task

getTaskOfRole

java.util.Vector getTaskOfRole(java.lang.String roleId,
                               int taskState)
Get tasks for the specified role, with the specified task states.

Parameters:
roleId - the given role id
state - the given state of task
Returns:
the correspodence task instances(each element in Vector are instance of Task)
See Also:
Task

getTaskOfRootTask

java.util.Vector getTaskOfRootTask(java.lang.String rootId)
Return tasks of some specific root task

Parameters:
rootId - the given root task id
Returns:
all correspondence tasks (each elemen in Vector are instance of Task)
See Also:
Task

getTinyPDiagramDetail

java.util.Vector getTinyPDiagramDetail(java.lang.String rootId,
                                       java.lang.String memId)
Return the detail of process diagram

Parameters:
rootId - the given root task id
memId - the given member Id for permission check
Returns:
the detail information in process diagram
See Also:
PDiagramManager, PDiagramManager.getPDiagramDetail

getTinyRootTaskIdListOfJoinMember

java.util.List getTinyRootTaskIdListOfJoinMember(java.lang.String memId,
                                                 java.lang.String rootDate,
                                                 java.lang.String rootName,
                                                 java.lang.String rootState)
Return Root TinyTask(s) executed by some specific member, including deputy

Parameters:
memId - the given member id
rootDate - the given condition, date
rootName - the given condition, method
rootState - the given condition, state
Returns:
all correspondence tiny root tasks
See Also:
TinyTask AF-2248, by Jason

getTinyRootTaskOfJoinMember

java.util.Vector getTinyRootTaskOfJoinMember(java.lang.String memId)
Return Root TinyTask(s) executed by some specific member, including deputy

Parameters:
memId - the given member id
Returns:
all correspondence tiny root tasks
See Also:
TinyTask

getTinyRootTaskOfJoinMember

java.util.Vector getTinyRootTaskOfJoinMember(java.lang.String memId,
                                             java.lang.String proID)
Return Root TinyTask(s) executed by some specific member, including deputy

Parameters:
memId - the given member id
proID - the given process id
Returns:
all correspondence tiny root tasks
See Also:
TinyTask

getTinyTaskIdListTracked

java.util.List getTinyTaskIdListTracked(java.lang.String memId,
                                        java.util.List taskIdList,
                                        java.lang.String state)
Return tasks of the specific member and tasks

Parameters:
memId - the given member id
idList - the given task id in the list
state - the given task state
Returns:
all correspondence tasks (each elemen in Vector are instance of TinyTask)
See Also:
TinyTask AF-2248

getTinyTaskList

java.util.Vector getTinyTaskList(java.lang.String memId)
Return tasks of the specific member

Parameters:
memId - the given member id
Returns:
all correspondence tasks (each element in Vector are instance of TinyTask)
See Also:
TinyTask

getTinyTaskList

java.util.Vector getTinyTaskList(java.lang.String memId,
                                 int beginIndex,
                                 int endIndex,
                                 java.lang.String orderBy)
Return tasks of the specific member

Parameters:
memId - the given Member ID
beginIndex - the given start index
endIndex - the given end index
orderBy - the given field name to order
Returns:
all correspondence tasks (each elemen in Vector are instance of TinyTask)
See Also:
TinyTask

getTinyTaskList

java.util.Vector getTinyTaskList(java.lang.String memId,
                                 java.util.List taskIdList)
Return tasks of the specific member and tasks

Parameters:
memId - the given member id
idList - the given task id in the list
Returns:
all correspondence tasks (each elemen in Vector are instance of TinyTask)
See Also:
TinyTask

getTranslateArtInsList

java.util.Vector getTranslateArtInsList(java.lang.String aID)
Get all PASEArtInstance data for the specified artifact.

Parameters:
aID - the given ArtifactID
Returns:
all correspondence artifact instances (each elemen in Vector are instance of TranslateArtIns)
See Also:
TranslateArtIns

getTreeTaskList

java.util.HashMap getTreeTaskList(java.lang.String memId)
Return tasks of the specific member

Parameters:
memId - the given member id
Returns:
tree-structure HashMap
See Also:
ProcessTask

getUncompletePATaskNo

int getUncompletePATaskNo(Task parentTask)
Calculate the tasks count which tasks are "Add Parallel Announce" and are complete under the specified task.

Parameters:
parentTask - the given parent task
Returns:
the tasks count.
See Also:
Task

goBackTo

boolean goBackTo(java.lang.String fromTaskId,
                 java.lang.String toProcessId,
                 boolean artMode)
Sets the executing task back to another process which had been executed.

Examples:

 var fromTaskID = "Tsk000000226229";
 
 var toProID = "PRO00440363552012";
 
 var Result = WFCI.goBackTo(fromTaskID, toProID, true);
 

Parameters:
fromTaskId - the given Task
toProcessId - the given process id
artMode - an artifact content mode. True for present artifact content or false for archived artifact content in the specified process.
Returns:
true if succeeded; false otherwise. @
See Also:
Task

goBackTo

boolean goBackTo(java.lang.String fromTaskId,
                 Task toTask,
                 boolean artMode)
Sets the executing task back to another process which had been executed.

Examples:

 var fromTaskID = "Tsk000000226229";
 
 var toTask = WFCI.getTask("Tsk0001134355209");
 
 var Result = WFCI.goBackTo(fromTaskID, toTask, true);
 

Parameters:
fromTaskId - the given task id
toTask - the given Task
artMode - an artifact content mode. True for present artifact content or false for archived artifact content in the specified process.
Returns:
true if succeeded; false otherwise. @
See Also:
Task

goBackTo

boolean goBackTo(java.lang.String fromTaskID,
                 Task toTask,
                 boolean artMode,
                 boolean isEmailNotify)
                 throws java.rmi.RemoteException
Sets the executing task back to another process which had been executed.

Examples:

   var fromTaskID = "Tsk000000226229";
   var toTask = WFCI.getTask("Tsk0001134355209");
   var Result = WFCI.goBackTo(fromTaskID, toTask, true);
 

Parameters:
fromTaskID - a Task ID.
toTask - a Task.
artMode - an artifact content mode. True for present artifact content or false for archived artifact content in the specified process.
isEmailNotify, - true if asking to sand email notification.
Returns:
true if succeeded; false otherwise.
Throws:
java.rmi.RemoteException
Since:
version 2.4.0 hotfix webagenda_54.32
See Also:
Task

goBackTo

boolean goBackTo(Task fromTask,
                 java.lang.String toProcessId,
                 boolean artMode)
Sets the executing task back to another process which had been executed.

Examples:

 var fromTask = WFCI.getTask("Tsk000000226229");
 
 var toProID = "PRO00440363552012";
 
 var Result = WFCI.goBackTo(fromTask, toProID, true);
 

Parameters:
fromTask - the given Task
toProcessId - the given process id
artMode - an artifact content mode. true for present artifact content. false for archived artifact content in the specified process.
Returns:
true if succeeded; false otherwise. @
See Also:
Task

goBackToWithDetailRet

java.util.HashMap goBackToWithDetailRet(Task fromTask,
                                        java.lang.String toProcessId,
                                        boolean artMode)
Sets the executing task back to another process which had been executed.

Parameters:
fromTask - the given Task
toProcessId - the given process id
artMode - an artifact content mode. true for present artifact content. false for archived artifact content in the specified process.
Returns:
the HashMap.
See Also:
Task

initProcess

java.util.HashMap initProcess(java.lang.String loginId,
                              PASEProcess process)
Initial the process

Parameters:
process - the given PASEProcess
Returns:
the result ( [Key:Value] = [rootTaskID:rootTaskID] ; [retValue:Boolean(true/false)])

initProcess

java.util.HashMap initProcess(java.lang.String loginId,
                              java.lang.String roleId,
                              java.lang.String depId,
                              java.lang.String processId,
                              java.lang.String keyword,
                              int priority)
Initial the process

Parameters:
loginId - the user's loginId
processId - the process Id
keyword - keyword
priority - priority
Returns:
the result ( [Key:Value] = [rootTaskID:rootTaskID] ; [retValue:Boolean(true/false)])

isATaskComplete

boolean isATaskComplete(Task t)

isCSTaskComplete

boolean isCSTaskComplete(Task t)

isLocked

boolean isLocked(java.lang.String taskId)
Check the task locking state

Parameters:
taskId - the given task id
Returns:
true for locked
See Also:
Task

lockTask

void lockTask(java.lang.String taskId)
Lock a task.

Parameters:
taskId - the given task id

notifyTask

java.util.HashMap notifyTask(java.lang.String taskId)
Notify a task.

Parameters:
taskId - the given task id

parseAddASResultString

java.util.Vector parseAddASResultString(java.lang.String result)
Parse the countersign result string to CSResultData

Parameters:
result - the given countersign result string
Returns:
all correspondence countersign result instances (each elemen in Vector are instance of CSResultData)
See Also:
CSResultData

parseCSResultString

java.util.Vector parseCSResultString(java.lang.String result,
                                     java.util.List auditNameList)
Parse the countersign result string to CSResultData

Parameters:
result - the given countersign result string
auditNameList - the given auditing member list(each elemen in Vector are instance of String[3], String[0] for MemberID, String[1] for RoleID, String[2] for DepartmentID)
Returns:
all correspondence countersign result instances (each elemen in Vector are instance of CSResultData)
See Also:
CSResultData

pickQueueTask

boolean pickQueueTask(Task task)
Pick a task to execute from its queue.

Parameters:
task - the given Task

removeAFTVElementVO

boolean removeAFTVElementVO(java.lang.String subject,
                            java.lang.String item)

removeRootTaskByShell

boolean removeRootTaskByShell(java.lang.String rootId,
                              java.lang.String memId)
Remove a root task, if the user has permission to remove the task. (the same as removeRootTask function)

Parameters:
rootId - the given root task id
memId - the member id
Returns:
true if successful.

removeTaskByAdm

boolean removeTaskByAdm(java.lang.String rootId)
Remove a root task.

Parameters:
rootId - the given root task id
Returns:
true if successful.

removeTaskByUser

boolean removeTaskByUser(java.lang.String rootId,
                         java.lang.String memId)
Remove a root task, if the user has permission to remove the task.

Parameters:
rootId - the given root task id
memId - the member id
Returns:
true if successful.

reScheduleTask

void reScheduleTask(Task task)
Reschedule the task Cron Event(s)

Parameters:
task - the Task
Since:
V2.1

runScriptOnServer

void runScriptOnServer(java.lang.String code,
                       Task task)
Execute script on the specified task

Parameters:
code - the given script context
task - the given Task
See Also:
Task

saveAFTVElementVO

boolean saveAFTVElementVO(AFTVElementVO vo)

setArtInsState

boolean setArtInsState(PASEartInstance artInstance,
                       java.lang.String stateID)
Return true for success, else false

Parameters:
artInstance - the given PASEartInstance, stateID for ArtStateID
Returns:
true for success, else false
See Also:
getArtInstance

setMonitorRelation

boolean setMonitorRelation(java.lang.String sourceTaskID,
                           java.lang.String createdRootTaskID)
Set task monitor relation, store root task ID and those created root task ID when executed.

Parameters:
sourceTaskID - the given RootTaskID
createdRootTaskIDs - the given created RootTaskID list
Returns:
true if the execution is successful; false otherwise.

setMonitorRelation

boolean setMonitorRelation(java.lang.String sourceTaskID,
                           java.util.Vector createdRootTaskIDs)
Set task monitor relation, store root task ID and those created root task ID when executed.

Parameters:
sourceTaskID - the given RootTaskID
createdRootTaskIDs - the given created RootTaskID list
Returns:
true if the execution is successful; false otherwise.

startTask

java.util.HashMap startTask(Task task)
Start the task

Parameters:
task - the given Task
Returns:
the result ( [Key:Value] = [retValue:Boolean(true/false)])

stopRootTask

void stopRootTask(java.lang.String rootId)
Stop a root task.

Parameters:
rootId - the given root task id

suspendTask

java.util.HashMap suspendTask(Task task)
suspend Task

Parameters:
task - the given Task
Returns:
the result ( [Key:Value] = [retValue:Boolean(true)] )

unlockCoSign

void unlockCoSign(java.lang.String processId)
Unlock a countrsign task.

Parameters:
processId - the given process id of root task

unlockTask

void unlockTask(java.lang.String taskId)
UnLock a task.

Parameters:
taskId - the given task id

updateArtInstance

boolean updateArtInstance(PASEartInstance instance)
Update artifact instance Notice: Artifact instance is carrying artifact state information. If the state of instance parameter is not the same as current instance, current instance will not be updated with parameter instance. Use updateArtInstanceLog(java.lang.String tID, PASEartInstance instance) method instead. This behavior is for protecting those processes which are not completed yet. Update artifact instance with wrong artifact state could damage process routing.

Parameters:
instance - the given PASEartInstance
Returns:
true for success, else false
Since:
version 1.0.3
See Also:
PASEartInstance

updateArtInstanceLog

boolean updateArtInstanceLog(java.lang.String taskId,
                             PASEartInstance instance)
Update artifact instance log

Parameters:
taskId - the given task id
instance - the given PASEartInstance
Returns:
true for success, else false
Since:
version 1.1.5
See Also:
PASEartInstance

updateTask

boolean updateTask(Task task)
Update the data object of task. The method will update the task in cache and database.

Parameters:
task - the given task
Returns:
true for success
See Also:
Task

updateTaskState

boolean updateTaskState(Task task)
Update the state of task. The method will update the task state in cache and database.

Parameters:
task - the given task
Returns:
true for success
See Also:
Task

waitTask

void waitTask(java.lang.String taskId)
Wait a task.

Parameters:
taskId - the given task id

waitTask

void waitTask(java.lang.String taskId,
              java.lang.String timeToNotify)
Wait a task.

Parameters:
taskId - the given task id
timeToNotify - the given time (ex: 2003/06/23/11/30) to notify

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.