Agentflow
V3.1

si.wfcidata
Class AFProcess

java.lang.Object
  extended by pe.pase.PASEProcess
      extended by si.wfcidata.AFProcess
All Implemented Interfaces:
java.io.Serializable

public class AFProcess
extends PASEProcess

AFProcess

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

Constructor Summary
AFProcess(WFCI wfci, PASEProcess process)
          Constructor
AFProcess(WFCI wfci, java.lang.String pID)
          Constructor
 
Method Summary
 AFDepartment getAFDepartment()
          Return the AFDepartment of the AFProcess.
 AFProject getAFProject()
          Return the AFProject of the AFProcess.
 AFRole getAFRole()
          Return the AFRole of the AFProcess.
 AFTaskList getAFTaskOfProcess()
          Return the task list of the Process.
 AFTaskList getAFTaskOfProcess(int state)
          Return the task list of the Process with the specific state.
 java.util.HashMap getParameter()
          Get the primitives of the AFProcess
 PASEProcess getPASEProcess()
          getPASEProcess
 java.util.Vector getRootAFTaskOfProcess()
          Return the root task list of the Process.
 java.util.Vector getRootAFTaskOfProcess(int state)
          Return the root task list of the Process with the specific state.
 void initProcess(AFMemberRecord member)
          Initial the process.
 
Methods inherited from class pe.pase.PASEProcess
equals, getDepartmentID, getDepartmentName, getDepRolString, getFavoriteCheck, getID, getKeyWord, getName, getPriority, getRoleID, getRoleName, getRootSiblingOrder, hashCode, setDepartmentID, setFavoriteCheck, setID, setKeyWord, setMemberDR, setName, setPriority, setRoleID, setRootSiblingOrder
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AFProcess

public AFProcess(WFCI wfci,
                 PASEProcess process)
          throws WFCIException
Constructor

Parameters:
wfci - WFCI interface
process - PASEProcess
Throws:
WFCIException

AFProcess

public AFProcess(WFCI wfci,
                 java.lang.String pID)
Constructor

Parameters:
wfci - WFCI interface
pID - AFProcess ID
Method Detail

getAFDepartment

public AFDepartment getAFDepartment()
                             throws WFCIException
Return the AFDepartment of the AFProcess.

Returns:
AFDepartment
Throws:
WFCIException

getAFProject

public AFProject getAFProject()
                       throws WFCIException
Return the AFProject of the AFProcess.

Returns:
AFProject
Throws:
WFCIException

getAFRole

public AFRole getAFRole()
                 throws WFCIException
Return the AFRole of the AFProcess.

Returns:
AFRole
Throws:
WFCIException

getAFTaskOfProcess

public AFTaskList getAFTaskOfProcess()
                              throws WFCIException
Return the task list of the Process.

Returns:
the correspondence AFTaskList
Throws:
WFCIException
Since:
version 1.1.5
See Also:
AFTaskList

getAFTaskOfProcess

public AFTaskList getAFTaskOfProcess(int state)
                              throws WFCIException
Return the task list of the Process with the specific state.

Parameters:
state - the task state:
  • Ready = 1
  • Running = 2
  • Complete = 4
  • Suspended = 8
  • DEAD = 16
  • QUEUE = 32
  • Server Waiting = 64
  • Client Waiting = 128
  • Lock = 256
  • All = 1 & 2 & 4 & 8 & 16 & 32 & 64 & 128 & 256
Returns:
the correspondence AFTaskList
Throws:
WFCIException
Since:
version 1.1.5
See Also:
AFTaskList

getParameter

public java.util.HashMap getParameter()
                               throws WFCIException
Get the primitives of the AFProcess

Returns:
the result ( [Key:Value] = [processID:processID] ; [processName:processName] ; [roleID:roleID])
Throws:
WFCIException
Since:
version 1.1.5

getPASEProcess

public PASEProcess getPASEProcess()
getPASEProcess

Returns:
PASEProcess instance

getRootAFTaskOfProcess

public java.util.Vector getRootAFTaskOfProcess()
                                        throws WFCIException
Return the root task list of the Process.

Returns:
Vector each element is TinyTask
Throws:
WFCIException
Since:
version 2.2.3

getRootAFTaskOfProcess

public java.util.Vector getRootAFTaskOfProcess(int state)
                                        throws WFCIException
Return the root task list of the Process with the specific state.

Parameters:
state - the task state:
  • Ready = 1
  • Running = 2
  • Complete = 4
  • Suspended = 8
  • DEAD = 16
  • QUEUE = 32
  • Server Waiting = 64
  • Client Waiting = 128
  • Lock = 256
  • All = 1 & 2 & 4 & 8 & 16 & 32 & 64 & 128 & 256
Returns:
Vector each element is TinyTask
Throws:
WFCIException
Since:
version 2.2.3

initProcess

public void initProcess(AFMemberRecord member)
                 throws WFCIException
Initial the process.

Parameters:
member - AFMemberRecord to initial AFProcess
Throws:
WFCIException

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.