Agentflow
V3.1

si.wfcidata
Class AFProcessManager

java.lang.Object
  extended by si.wfcidata.AFProcessManager

public class AFProcessManager
extends java.lang.Object

AFProcessManager

Version:
1.1.5,
Author:
Flowring co.

Constructor Summary
AFProcessManager(WFCI wfci)
          Constructor
 
Method Summary
 AFTask createProcess(AFMemberRecord member, AFProcess process)
          Create a AFTask of AFProcess
 java.lang.String createProcess(java.lang.String userID, java.lang.String proID, java.util.HashMap args)
          Create a AFTask of AFProcess
 AFArtifact getAFArtifact(java.lang.String aID)
          Get an AFArtifact object by ID.
 java.util.Vector getAFArtifactForm(java.lang.String aID)
          Return artifact forms of some specific artifact.
 AFProject getAFProject(java.lang.String prjID)
          Get an AFProject object by ID.
 AFTaskList getAFTaskOfProcess(java.lang.String proID)
          Return the task list of the Process.
 AFTaskList getAFTaskOfProcess(java.lang.String proID, int state)
          Return the task list of the Process with the specific state.
 java.util.Vector getRootAFTaskOfProcess(java.lang.String proID)
          Return the root task list of the Process.
 java.util.Vector getRootAFTaskOfProcess(java.lang.String proID, int state)
          Return the root task list of the Process with the specific state.
 java.util.HashMap initProcess(java.lang.String user, AFProcess process)
          Initial the process.
 java.util.HashMap initProcess(java.lang.String user, java.lang.String roleID, java.lang.String processID, java.lang.String subject, int priority)
          Initial the process.
 java.util.HashMap initProcess(java.lang.String user, java.lang.String roleID, java.lang.String depID, java.lang.String processID, java.lang.String processName, java.lang.String subject, int priority)
          Initial the process.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AFProcessManager

public AFProcessManager(WFCI wfci)
Constructor

Parameters:
wfci - WFCI interface
Method Detail

createProcess

public AFTask createProcess(AFMemberRecord member,
                            AFProcess process)
                     throws WFCIException
Create a AFTask of AFProcess

Parameters:
member - AFMemberRecord
process - AFProcess
Returns:
a root AFTask
Throws:
WFCIException

createProcess

public java.lang.String createProcess(java.lang.String userID,
                                      java.lang.String proID,
                                      java.util.HashMap args)
                               throws WFCIException
Create a AFTask of AFProcess

Parameters:
userID - AFMemberRecord ID
proID - AFProcess ID
args - HashMap
Returns:
a root AFTask ID
Throws:
WFCIException

getAFArtifact

public AFArtifact getAFArtifact(java.lang.String aID)
                         throws WFCIException
Get an AFArtifact object by ID.

Parameters:
aID - AFArtifact ID
Returns:
AFArtifact
Throws:
WFCIException

getAFArtifactForm

public java.util.Vector getAFArtifactForm(java.lang.String aID)
                                   throws WFCIException
Return artifact forms of some specific artifact.

Parameters:
aID - AFArtifact ID
Returns:
Vector AFArtifact forms
Throws:
WFCIException

getAFProject

public AFProject getAFProject(java.lang.String prjID)
                       throws WFCIException
Get an AFProject object by ID.

Parameters:
prjID - AFProject ID
Returns:
AFProject
Throws:
WFCIException

getAFTaskOfProcess

public AFTaskList getAFTaskOfProcess(java.lang.String proID)
                              throws WFCIException
Return the task list of the Process.

Parameters:
proID - the given PASEProcessID
Returns:
the correspondence AFTaskList
Throws:
WFCIException
Since:
version 1.1.5
See Also:
AFTaskList

getAFTaskOfProcess

public AFTaskList getAFTaskOfProcess(java.lang.String proID,
                                     int state)
                              throws WFCIException
Return the task list of the Process with the specific state.

Parameters:
proID - the given PASEProcessID
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

getRootAFTaskOfProcess

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

Parameters:
proID - the given PASEProcessID
Returns:
Vector each element is TinyTask
Throws:
WFCIException
Since:
version 2.2.3

getRootAFTaskOfProcess

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

Parameters:
proID - the given PASEProcessID
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 java.util.HashMap initProcess(java.lang.String user,
                                     AFProcess process)
                              throws WFCIException
Initial the process.

Parameters:
user - the given Username, login ID.
process - the given AFProcess
Returns:
the result ( [Key:Value] = [rootTaskID:rootTaskID] ; [retValue:Boolean(true/false)])
Throws:
WFCIException
Since:
version 1.1.5

initProcess

public java.util.HashMap initProcess(java.lang.String user,
                                     java.lang.String roleID,
                                     java.lang.String processID,
                                     java.lang.String subject,
                                     int priority)
                              throws WFCIException
Initial the process.

Parameters:
user - the given Username, login ID.
roleID - the given RoleID
processID - the given ProcessID
subject - the given Subject
priority - the given Priority,
    priority value:
  • PRIORITY_HIGHEST = 0;
  • PRIORITY_HIGH = 1;
  • PRIORITY_NORMAL = 2;
Returns:
the result ( [Key:Value] = [rootTaskID:rootTaskID] ; [retValue:Boolean(true/false)])
Throws:
WFCIException
Since:
version 1.1.5

initProcess

public java.util.HashMap initProcess(java.lang.String user,
                                     java.lang.String roleID,
                                     java.lang.String depID,
                                     java.lang.String processID,
                                     java.lang.String processName,
                                     java.lang.String subject,
                                     int priority)
                              throws WFCIException
Initial the process.

Parameters:
user - the given Username, login ID.
roleID - the given RoleID
depID - the given DepartmentID
processID - the given ProcessID
processName - the given PoleName
subject - the given Subject
priority - the given Priority,
    priority value:
  • PRIORITY_HIGHEST = 0;
  • PRIORITY_HIGH = 1;
  • PRIORITY_NORMAL = 2;
Returns:
the result ( [Key:Value] = [rootTaskID:rootTaskID] ; [retValue:Boolean(true/false)])
Throws:
WFCIException
Since:
version 1.0.0

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.