|
Agentflow V3.1 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectpe.pase.DBProcess
public class DBProcess
An abstract representation of Process. It is the kernal data object in the Agemtflow System.
The Process is the step in the Work Flow. For example, consider a Work Flow about the purchasing. It is composed by several steps such as purchase requirement introducing, vender survey, merchandise ordering, reception, payment, and so on. Each step can be regarded as a Process. To describe a Process, the class has to provide the fields to define all related factors such as how to execute, who is permitted to execute, how to invoke the next process while this step is complete(the features is denoted as Procss-Routing), and so on.
The fields in the class are introduced by dividing into several catagories, the self-information, the Role information, the Artifact information, the relationship information, and the display information.
Self information:
The information related to the Process itself shows in the following:
Descriptor | Comment |
ProcessID | the identifier of Process in the Agentflow System |
ProcessName | the name of the Process |
ProcessInfoSpec | the guide to describe how to execute the Process |
ProcessSynopsis | the comment of the Process |
ProjectID | the ID of the attached project |
ProcessDuration | the time by witch user is asked to complete the Process |
ProcessWarnMsg | the operation to inform the user while overtime |
The following are some field to denote the state of Process:
Descriptor | Type | Comment |
pPolicy | POLICY_RANDOM, POLICY_QUEUE, POLICY_PREVIOUS, POLICY_ALL, POLICY_AUDIT | the policy of Procss-Routing |
pType | TYPE_ROOT, TYPE_COMPOUND, TYPE_SINGLE, TYPE_CALLPROCESS, TYPE_COUNTERSIGN | different type the Agentflow System supports |
ProcessEmailNotify | true/false | true to sent E-Mail to user while the Process is invoked; false otherwise |
ProcessDisableDeputy | true/false | true if the Process is Non-deputized; false otherwise |
ProcessAutoExec | true/false | true if the Process is executed by Agentflow System; false by user |
The field ProcessAutoExec in the previous table is part of the programmable interface in Agentflow System. The interface is used to exetend System functionality. You can write AgentFlow Script Code attached to the Process. The Agentflow System will execute the code while the Process is invoking, running, or completing. The Script executed in these trigger time are stores in ProcessPreAction, ProcessAction, and ProcessPostAction.
Role-information:
The user permitted to execute the Process are stored in the Role-information.
Three kinds of Roles are provided in the Agentflow System: DepartmentRole,
ProjectRole, and SpecialRole. They are stored in DepartmentRoleList,
ProjectRoleList, and SpecialRoleList. The detail of
these roles can reference the class Role
, ProjectRole
,
and SpecialRole
.
Artifact-information:
In Agentflow System, the Artifact is the electronic-document. The OprArtifact represents the Artifact operated by user in the Process. Then the RefArtifact represents the e-documents necessary to as reference user while executing the Process.
Relationship-information:
The Agentflow provides several kinds of Process. The Work Flow is denoted as the RootProcess, and the step in the Work Flow is defined as the SingleProcess. To increase the convenience to design the Work Flow, the CompoundProcess is used to gather the connatural Processes. For example, the by the front example of purchasing, the sub-steps of reception can by divided into merchandise reception, inventory, and quality inspection. The sub-steps are the SingleProcess and the reception are the CompoundProcess. Moreover, for the benefit of reuse, the existed Work Flow can be use in another Work Flow. This kind of Process is named CallProcess. Thus, the Work Flow is a tree-structured composed by several different Process.
Besides the parent-child relationship, the flow-relationship exists in the Work Flow. It defines the relationship among sibling Process(with the same ParentNode) in the tree-structure.
The fields to descibe the parent-child relationship include
ParentProcessID, RootProcessID, and
SubProcessList. Then we use ProcessEntryCond,
ProcessExitCond, ProcessExitCondList,
OutProcessList, and InProcessList to define the
sibling relationship. The former two fields are type of LINK_OR
,
LINK_AND
, or LINK_XOR
.
Graphy-information:
Because the Work Flow is designed by the graphical-interface, the class provides some field to setup the coordinate.
Task
,
Serialized FormField Summary | |
---|---|
static java.lang.String |
LINK_AND
Task Condition: LINK_AND |
static java.lang.String |
LINK_OR
Task Codition: LINK_OR |
static java.lang.String |
LINK_XOR
Task Condition: LINK_XOR |
static java.lang.String |
POLICY_ALL
The Process will send to all authorized-member. |
static java.lang.String |
POLICY_AUDIT
The Process will send to all authorized-member. |
static java.lang.String |
POLICY_PREVIOUS
The Process will send to all authorized-member. |
static java.lang.String |
POLICY_QUEUE
The Process will send to all authorized-member. |
static java.lang.String |
POLICY_RANDOM
Randomly select a member to execute the Process. |
static int |
POSITION_END
The Process position: POSITION_END |
static int |
POSITION_START
The Process position: POSITION_START |
static java.lang.String |
REJPOINT_PREVIOUS
|
static java.lang.String |
REJPOINT_START
|
static java.lang.String |
RETPOINT_NEXT
|
static java.lang.String |
RETPOINT_START
|
static java.lang.String |
TYPE_CALLPROCESS
Process type: CallProcess |
static java.lang.String |
TYPE_COMPOUND
Process type: CompoundProcess |
static java.lang.String |
TYPE_COUNTERSIGN
Process type: CountersignProcess |
static java.lang.String |
TYPE_CREATE
|
static java.lang.String |
TYPE_DATATRANSFER
|
static java.lang.String |
TYPE_GATHER
|
static java.lang.String |
TYPE_IAP
|
static java.lang.String |
TYPE_ROOT
Process type: RootProcess |
static java.lang.String |
TYPE_SINGLE
Process type: SingleProcess |
Constructor Summary | |
---|---|
DBProcess()
|
|
DBProcess(java.lang.String id)
Constructor. |
Method Summary | |
---|---|
void |
addProWarning(long p_Time,
java.lang.String p_FuncName)
Set the operation to inform the user while overtime |
void |
addSpeRole(SpecialRole role)
Add a special role to the special role list |
void |
addSubProcess(DBProcess process)
Add a porcess into the list of sub-processes |
java.lang.String |
getAction()
Get the Agentflow Script defined in the process running time |
int |
getAddAnnounceQuantity()
|
PASEartState |
getAddASArtState()
|
java.lang.String |
getAddASEndAction()
|
java.lang.String |
getAddASPostAction()
|
java.lang.String |
getAddASPreAction()
|
java.lang.String |
getAddASReturnPoint()
|
java.lang.String |
getAddASStartAction()
|
java.util.HashMap |
getAddPAWeightList()
|
java.lang.String |
getAddPAWeightListStr()
|
int |
getAddSignQuantity()
|
java.lang.String |
getAddSignRejectPoint()
|
java.lang.String |
getDispatchAction()
|
long |
getDuration()
Get the time by which user is asked to complete the process |
java.lang.String |
getEndImageType()
|
java.util.List |
getExceptionList()
|
java.util.Vector |
getExtCond()
Get the exit condition list. |
java.util.Vector |
getGoBackToProList()
|
java.util.Vector |
getGroupSignArtComponent()
|
java.lang.Object |
getHashKey()
|
int |
getHeight()
|
java.lang.String |
getID()
Get the process id |
java.lang.String |
getImageType()
|
java.lang.String |
getInfoSpec()
Get the process information specification. |
java.lang.String |
getName()
Get the process name |
java.lang.String |
getNotifyMailContent()
Get the mail content sent while the process is email-notify |
java.lang.String |
getNotifyMailSubject()
Get the mail subject sent while the process is email-notify |
java.lang.String |
getOprArtifact()
The recent Agentflow System only support one OprArtifact, so the method is used to get the only one operation artifact's id. |
java.util.Vector |
getOprArtifactList()
Get the list of operation artifacts' id |
java.lang.String |
getParentID()
Get the process id of parent process |
java.lang.String |
getPolicy()
Get the process policy |
java.lang.String |
getPostAction()
Get the Agentflow Script defined in the process completing time |
java.lang.String |
getPreAction()
Get the Agentflow Script defined in the process invokating time |
java.lang.String |
getPrjID()
Get the project id |
java.lang.String |
getPrjName()
Get the project name |
java.lang.String |
getProcessType()
Get the process type |
java.util.Vector |
getProjectRoleList()
Get the project role list |
java.util.Vector |
getProWarning()
Get the operation to inform the user while overtime |
java.util.Vector |
getRefArtifactList()
Get the list of reference artifacts' id |
java.util.Vector |
getRoleList()
Get the department role list |
java.lang.String |
getRootID()
Get process id of root process(the Work Flow) |
int |
getRootSiblingOrder()
|
int |
getSiblingOrder()
|
java.util.Vector |
getSpeRoleList()
Get the special role list |
java.lang.String |
getStartImageType()
|
java.util.Vector |
getSubProcessList()
Get the list of sub-processes |
java.lang.String |
getSynopsis()
Get the process synopsis |
int |
getWidth()
|
boolean |
isAddASExecuteArtFunc()
|
boolean |
isAddSignAllowReverify()
|
boolean |
isAllowAddAandS()
|
boolean |
isAllowAddAnnounce()
|
boolean |
isAllowAddSandA()
|
boolean |
isAllowAddSign()
|
boolean |
isAllowGoBackTo()
|
boolean |
isAllowModifyAddSignArtifact()
|
boolean |
isAllowViewOtherPAOpinion()
|
boolean |
isAutoExecution()
Check whether the process is auto-execution |
boolean |
isDisableDeputy()
Check whether the process is non-deputized. |
boolean |
isEmailNotify()
Check whether the process is email-notify |
boolean |
isGroupSign()
|
boolean |
isGroupSignOKAction()
|
void |
setAction(java.lang.String action)
Set the Agentflow Script defined in the process running time |
void |
setAddAnnounceQuantity(int quantity)
|
void |
setAddASArtState(PASEartState state)
|
void |
setAddASEndAction(java.lang.String action)
|
void |
setAddASExecuteArtFunc(boolean flag)
|
void |
setAddASPostAction(java.lang.String action)
|
void |
setAddASPreAction(java.lang.String action)
|
void |
setAddASReturnPoint(java.lang.String retPoint)
|
void |
setAddASStartAction(java.lang.String action)
|
void |
setAddPAWeightList(java.util.HashMap list)
|
void |
setAddPAWeightList(java.lang.String listStr)
|
void |
setAddSignAllowReverify(boolean flag)
|
void |
setAddSignQuantity(int quantity)
|
void |
setAddSignRejectPoint(java.lang.String rejectPoint)
|
void |
setAllowAddAandS(boolean isAllow)
|
void |
setAllowAddAnnounce(boolean isAllow)
|
void |
setAllowAddSandA(boolean isAllow)
|
void |
setAllowAddSign(boolean isAllow)
|
void |
setAllowGoBackTo(boolean flag)
|
void |
setAllowModifyAddSignArtifact(boolean isAllow)
|
void |
setAllowViewOtherPAOpinion(boolean flag)
|
void |
setAutoExecution(boolean b)
Set the process auto-execution |
void |
setDisableDeputy(boolean b)
Set the process disable deputy |
void |
setDispatchAction(java.lang.String action)
|
void |
setDuration(long time)
Set the time by which user is asked to complete the process |
void |
setEmailNotify(boolean b)
Set the process email notify |
void |
setEndImageType(java.lang.String imgID)
|
void |
setExceptionList(java.util.List exceptionList)
|
void |
setExtCond(java.util.Vector v)
Set the exit condition list. |
void |
setGoBackToProList(java.util.Vector list)
|
void |
setGroupSign(boolean flag)
|
void |
setGroupSignArtComponent(java.util.Vector comps)
|
void |
setGroupSignOKAction(boolean flag)
|
void |
setHeight(int height)
|
void |
setID(java.lang.String id)
Set the process id |
void |
setImageType(java.lang.String pImage)
|
void |
setInfoSpec(java.lang.String spec)
Set the process information specification |
void |
setName(java.lang.String name)
Set the process name |
void |
setOprArtifactList(java.util.Vector list)
Set the list of operation artifacts' id |
void |
setParentID(java.lang.String id)
Set the process id of parent process |
void |
setPolicy(java.lang.String policy)
Set the process policy |
void |
setPostAction(java.lang.String action)
Set the Agentflow Script defined in the process completing time |
void |
setPreAction(java.lang.String action)
Set the Agentflow Script defined in the process invokating time |
void |
setPrjID(java.lang.String id)
Set the project id |
void |
setPrjName(java.lang.String name)
Set the project name |
void |
setProcessType(java.lang.String type)
Set the process type |
void |
setProjectRoleList(java.util.Vector list)
Set the project role list |
void |
setRefArtifactList(java.util.Vector list)
Set the list of reference artifacts' id |
void |
setRoleList(java.util.Vector list)
Set the department role list |
void |
setRootID(java.lang.String id)
Set the process id of root process(the Work Flow) |
void |
setRootSiblingOrder(int order)
|
void |
setSiblingOrder(int order)
|
void |
setSpeRoleList(java.util.Vector list)
Set the special role list |
void |
setStartImageType(java.lang.String imgID)
|
void |
setSubProcessList(java.util.Vector list)
Set the list of sub-processes |
void |
setSynopsis(java.lang.String syn)
Set the process synopsis |
void |
setWidth(int width)
|
java.lang.String |
toString()
Get a string representation of the DBProcess . |
void |
update(java.lang.Object obj)
|
void |
updateAddAS(java.lang.Object obj)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String LINK_AND
public static final java.lang.String LINK_OR
public static final java.lang.String LINK_XOR
public static final java.lang.String POLICY_ALL
public static final java.lang.String POLICY_AUDIT
public static final java.lang.String POLICY_PREVIOUS
public static final java.lang.String POLICY_QUEUE
public static final java.lang.String POLICY_RANDOM
public static final int POSITION_END
public static final int POSITION_START
public static final java.lang.String REJPOINT_PREVIOUS
public static final java.lang.String REJPOINT_START
public static final java.lang.String RETPOINT_NEXT
public static final java.lang.String RETPOINT_START
public static final java.lang.String TYPE_CALLPROCESS
public static final java.lang.String TYPE_COMPOUND
public static final java.lang.String TYPE_COUNTERSIGN
public static final java.lang.String TYPE_CREATE
public static final java.lang.String TYPE_DATATRANSFER
public static final java.lang.String TYPE_GATHER
public static final java.lang.String TYPE_IAP
public static final java.lang.String TYPE_ROOT
public static final java.lang.String TYPE_SINGLE
Constructor Detail |
---|
public DBProcess()
public DBProcess(java.lang.String id)
DBProcess
with the
specified id.
id
- the process idMethod Detail |
---|
public void addProWarning(long p_Time, java.lang.String p_FuncName)
p_Time
- the overtimep_FuncName
- the operationpublic void addSpeRole(SpecialRole role)
role
- the given special rolepublic void addSubProcess(DBProcess process)
process
- the given sub-processpublic java.lang.String getAction()
public int getAddAnnounceQuantity()
public PASEartState getAddASArtState()
public java.lang.String getAddASEndAction()
public java.lang.String getAddASPostAction()
public java.lang.String getAddASPreAction()
public java.lang.String getAddASReturnPoint()
public java.lang.String getAddASStartAction()
public java.util.HashMap getAddPAWeightList()
public java.lang.String getAddPAWeightListStr()
public int getAddSignQuantity()
public java.lang.String getAddSignRejectPoint()
public java.lang.String getDispatchAction()
public long getDuration()
public java.lang.String getEndImageType()
public java.util.List getExceptionList()
public java.util.Vector getExtCond()
public java.util.Vector getGoBackToProList()
public java.util.Vector getGroupSignArtComponent()
public java.lang.Object getHashKey()
getHashKey
in interface com.flowring.entity.Entity
public int getHeight()
public java.lang.String getID()
public java.lang.String getImageType()
public java.lang.String getInfoSpec()
public java.lang.String getName()
public java.lang.String getNotifyMailContent()
public java.lang.String getNotifyMailSubject()
public java.lang.String getOprArtifact()
public java.util.Vector getOprArtifactList()
Vector
is instance of artifact id)public java.lang.String getParentID()
public java.lang.String getPolicy()
public java.lang.String getPostAction()
public java.lang.String getPreAction()
public java.lang.String getPrjID()
public java.lang.String getPrjName()
public java.lang.String getProcessType()
public java.util.Vector getProjectRoleList()
Vector
is
instance of ProjectRole
)public java.util.Vector getProWarning()
public java.util.Vector getRefArtifactList()
Vector
is instance of artifact's id)public java.util.Vector getRoleList()
Vector
is instance of Role
)public java.lang.String getRootID()
public int getRootSiblingOrder()
public int getSiblingOrder()
public java.util.Vector getSpeRoleList()
Vector
is
instance of public java.lang.String getStartImageType()
public java.util.Vector getSubProcessList()
Vector
is
instance of DBProcess
)public java.lang.String getSynopsis()
public int getWidth()
public boolean isAddASExecuteArtFunc()
public boolean isAddSignAllowReverify()
public boolean isAllowAddAandS()
public boolean isAllowAddAnnounce()
public boolean isAllowAddSandA()
public boolean isAllowAddSign()
public boolean isAllowGoBackTo()
public boolean isAllowModifyAddSignArtifact()
public boolean isAllowViewOtherPAOpinion()
public boolean isAutoExecution()
public boolean isDisableDeputy()
public boolean isEmailNotify()
public boolean isGroupSign()
public boolean isGroupSignOKAction()
public void setAction(java.lang.String action)
action
- the Agentflow Scriptpublic void setAddAnnounceQuantity(int quantity)
public void setAddASArtState(PASEartState state)
public void setAddASEndAction(java.lang.String action)
public void setAddASExecuteArtFunc(boolean flag)
public void setAddASPostAction(java.lang.String action)
public void setAddASPreAction(java.lang.String action)
public void setAddASReturnPoint(java.lang.String retPoint)
public void setAddASStartAction(java.lang.String action)
public void setAddPAWeightList(java.util.HashMap list)
public void setAddPAWeightList(java.lang.String listStr)
public void setAddSignAllowReverify(boolean flag)
public void setAddSignQuantity(int quantity)
public void setAddSignRejectPoint(java.lang.String rejectPoint)
public void setAllowAddAandS(boolean isAllow)
public void setAllowAddAnnounce(boolean isAllow)
public void setAllowAddSandA(boolean isAllow)
public void setAllowAddSign(boolean isAllow)
public void setAllowGoBackTo(boolean flag)
public void setAllowModifyAddSignArtifact(boolean isAllow)
public void setAllowViewOtherPAOpinion(boolean flag)
public void setAutoExecution(boolean b)
b
- true if the process is executed by Agentflow
System; false by userpublic void setDisableDeputy(boolean b)
b
- true if the process is non-deputized; false
otherwisepublic void setDispatchAction(java.lang.String action)
public void setDuration(long time)
time
- the given process durationpublic void setEmailNotify(boolean b)
b
- true to sent E-Mail to user while the process is
invoked; false otherwisepublic void setEndImageType(java.lang.String imgID)
public void setExceptionList(java.util.List exceptionList)
public void setExtCond(java.util.Vector v)
v
- the given exit condition listpublic void setGoBackToProList(java.util.Vector list)
public void setGroupSign(boolean flag)
public void setGroupSignArtComponent(java.util.Vector comps)
public void setGroupSignOKAction(boolean flag)
public void setHeight(int height)
public void setID(java.lang.String id)
id
- the given process idpublic void setImageType(java.lang.String pImage)
public void setInfoSpec(java.lang.String spec)
spec
- the given process information specificationpublic void setName(java.lang.String name)
name
- the given process namepublic void setOprArtifactList(java.util.Vector list)
list
- the operation artifact list. (each element in Vector
is instance of artifact's id)public void setParentID(java.lang.String id)
id
- the given process idpublic void setPolicy(java.lang.String policy)
policy
- one of POLICY_RANDOM, POLICY_QUEUE, POLICY_PREVIOUS,
POLICY_ALL, or POLICY_AUDITpublic void setPostAction(java.lang.String action)
action
- the Agentflow Scriptpublic void setPreAction(java.lang.String action)
action
- the Agentflow Scriptpublic void setPrjID(java.lang.String id)
id
- the given project idpublic void setPrjName(java.lang.String name)
id
- the given project namepublic void setProcessType(java.lang.String type)
type
- one of TYPE_ROOT, TYPE_COMPOUND, TYPE_SINGLE,
TYPE_CALLPROCESS, or TYPE_COUNTERSIGNpublic void setProjectRoleList(java.util.Vector list)
list
- the given project role list (each element in Vector
is instance of ProjectRole
)public void setRefArtifactList(java.util.Vector list)
list
- the reference artifact list. (each element in Vector
is instance of artifact's id)public void setRoleList(java.util.Vector list)
list
- the given department role list (each element in Vector
is instance of Role
)public void setRootID(java.lang.String id)
id
- the given process idpublic void setRootSiblingOrder(int order)
public void setSiblingOrder(int order)
public void setSpeRoleList(java.util.Vector list)
list
- the given special role list (each element in Vector
is instance of SpecialRole
)public void setStartImageType(java.lang.String imgID)
public void setSubProcessList(java.util.Vector list)
list
- the given sub-process list. (each element in Vector
is instance of DBProcess
)public void setSynopsis(java.lang.String syn)
syn
- the given process synopsispublic void setWidth(int width)
public java.lang.String toString()
DBProcess
.
toString
in class java.lang.Object
DBProcess
namepublic void update(java.lang.Object obj)
update
in interface com.flowring.entity.Entity
public void updateAddAS(java.lang.Object obj)
|
Agentflow V3.1 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |