Agentflow
V3.1

pe.pase
Class DBProcess

java.lang.Object
  extended by pe.pase.DBProcess
All Implemented Interfaces:
com.flowring.entity.Entity, java.io.Serializable
Direct Known Subclasses:
CallProcess, CreateProcess, CSDBProcess, DTDBProcess, GatherProcess, IapDBProcess

public class DBProcess
extends java.lang.Object
implements java.io.Serializable, com.flowring.entity.Entity

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.

Since:
version 1.0.0
Version:
1.1.5,
Author:
yschen@flowring.com
See Also:
Task, Serialized Form

Field 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

LINK_AND

public static final java.lang.String LINK_AND
Task Condition: LINK_AND

Since:
version 1.1.0
See Also:
Constant Field Values

LINK_OR

public static final java.lang.String LINK_OR
Task Codition: LINK_OR

Since:
version 1.1.0
See Also:
Constant Field Values

LINK_XOR

public static final java.lang.String LINK_XOR
Task Condition: LINK_XOR

Since:
version 1.1.0
See Also:
Constant Field Values

POLICY_ALL

public static final java.lang.String POLICY_ALL
The Process will send to all authorized-member. All have to execute the Process.

Since:
version 1.0.0
See Also:
Constant Field Values

POLICY_AUDIT

public static final java.lang.String POLICY_AUDIT
The Process will send to all authorized-member. All have to execute the Process.

Since:
version 1.1.0
See Also:
Constant Field Values

POLICY_PREVIOUS

public static final java.lang.String POLICY_PREVIOUS
The Process will send to all authorized-member. All have to execute the Process.

Since:
version 1.1.0
See Also:
Constant Field Values

POLICY_QUEUE

public static final java.lang.String POLICY_QUEUE
The Process will send to all authorized-member. One and only one can execute the Process.

Since:
version 1.0.0
See Also:
Constant Field Values

POLICY_RANDOM

public static final java.lang.String POLICY_RANDOM
Randomly select a member to execute the Process.

Since:
version 1.0.0
See Also:
Constant Field Values

POSITION_END

public static final int POSITION_END
The Process position: POSITION_END

Since:
version 1.1.0
See Also:
Constant Field Values

POSITION_START

public static final int POSITION_START
The Process position: POSITION_START

Since:
version 1.1.0
See Also:
Constant Field Values

REJPOINT_PREVIOUS

public static final java.lang.String REJPOINT_PREVIOUS
See Also:
Constant Field Values

REJPOINT_START

public static final java.lang.String REJPOINT_START
See Also:
Constant Field Values

RETPOINT_NEXT

public static final java.lang.String RETPOINT_NEXT
See Also:
Constant Field Values

RETPOINT_START

public static final java.lang.String RETPOINT_START
See Also:
Constant Field Values

TYPE_CALLPROCESS

public static final java.lang.String TYPE_CALLPROCESS
Process type: CallProcess

Since:
version 1.0.0
See Also:
Constant Field Values

TYPE_COMPOUND

public static final java.lang.String TYPE_COMPOUND
Process type: CompoundProcess

Since:
version 1.0.3
See Also:
Constant Field Values

TYPE_COUNTERSIGN

public static final java.lang.String TYPE_COUNTERSIGN
Process type: CountersignProcess

Since:
version 1.0.0
See Also:
Constant Field Values

TYPE_CREATE

public static final java.lang.String TYPE_CREATE
See Also:
Constant Field Values

TYPE_DATATRANSFER

public static final java.lang.String TYPE_DATATRANSFER
See Also:
Constant Field Values

TYPE_GATHER

public static final java.lang.String TYPE_GATHER
See Also:
Constant Field Values

TYPE_IAP

public static final java.lang.String TYPE_IAP
See Also:
Constant Field Values

TYPE_ROOT

public static final java.lang.String TYPE_ROOT
Process type: RootProcess

Since:
version 1.0.0
See Also:
Constant Field Values

TYPE_SINGLE

public static final java.lang.String TYPE_SINGLE
Process type: SingleProcess

Since:
version 1.0.0
See Also:
Constant Field Values
Constructor Detail

DBProcess

public DBProcess()

DBProcess

public DBProcess(java.lang.String id)
Constructor. Construct a instance of DBProcess with the specified id.

Parameters:
id - the process id
Since:
version 1.0.0
Method Detail

addProWarning

public void addProWarning(long p_Time,
                          java.lang.String p_FuncName)
Set the operation to inform the user while overtime

Parameters:
p_Time - the overtime
p_FuncName - the operation
Since:
version 1.0.0

addSpeRole

public void addSpeRole(SpecialRole role)
Add a special role to the special role list

Parameters:
role - the given special role
Since:
version 1.0.0

addSubProcess

public void addSubProcess(DBProcess process)
Add a porcess into the list of sub-processes

Parameters:
process - the given sub-process
Since:
version 1.0.0

getAction

public java.lang.String getAction()
Get the Agentflow Script defined in the process running time

Returns:
the Agentflow Script
Since:
version 1.0.0

getAddAnnounceQuantity

public int getAddAnnounceQuantity()

getAddASArtState

public PASEartState getAddASArtState()

getAddASEndAction

public java.lang.String getAddASEndAction()

getAddASPostAction

public java.lang.String getAddASPostAction()

getAddASPreAction

public java.lang.String getAddASPreAction()

getAddASReturnPoint

public java.lang.String getAddASReturnPoint()

getAddASStartAction

public java.lang.String getAddASStartAction()

getAddPAWeightList

public java.util.HashMap getAddPAWeightList()

getAddPAWeightListStr

public java.lang.String getAddPAWeightListStr()

getAddSignQuantity

public int getAddSignQuantity()

getAddSignRejectPoint

public java.lang.String getAddSignRejectPoint()

getDispatchAction

public java.lang.String getDispatchAction()

getDuration

public long getDuration()
Get the time by which user is asked to complete the process

Returns:
the process duration
Since:
version 1.0.0

getEndImageType

public java.lang.String getEndImageType()

getExceptionList

public java.util.List getExceptionList()

getExtCond

public java.util.Vector getExtCond()
Get the exit condition list.

Returns:
the exit conditions. (the element is the string)
Since:
version 1.0.0

getGoBackToProList

public java.util.Vector getGoBackToProList()

getGroupSignArtComponent

public java.util.Vector getGroupSignArtComponent()

getHashKey

public java.lang.Object getHashKey()
Specified by:
getHashKey in interface com.flowring.entity.Entity

getHeight

public int getHeight()

getID

public java.lang.String getID()
Get the process id

Returns:
the process id
Since:
version 1.0.0

getImageType

public java.lang.String getImageType()

getInfoSpec

public java.lang.String getInfoSpec()
Get the process information specification.

Returns:
the process information specification
Since:
version 1.0.0

getName

public java.lang.String getName()
Get the process name

Returns:
the process name
Since:
version 1.0.0

getNotifyMailContent

public java.lang.String getNotifyMailContent()
Get the mail content sent while the process is email-notify

Returns:
the mail content
Since:
version 1.0.0

getNotifyMailSubject

public java.lang.String getNotifyMailSubject()
Get the mail subject sent while the process is email-notify

Returns:
the mail subject
Since:
version 1.0.0

getOprArtifact

public 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.

Returns:
the operation artifact's id
Since:
version 1.0.0

getOprArtifactList

public java.util.Vector getOprArtifactList()
Get the list of operation artifacts' id

Returns:
the operation artifact list. (each element in Vector is instance of artifact id)
Since:
version 1.0.0

getParentID

public java.lang.String getParentID()
Get the process id of parent process

Returns:
the process id
Since:
version 1.0.0

getPolicy

public java.lang.String getPolicy()
Get the process policy

Returns:
the POLICY_RANDOM, POLICY_QUEUE, POLICY_PREVIOUS, POLICY_ALL, or POLICY_AUDIT
Since:
version 1.0.0

getPostAction

public java.lang.String getPostAction()
Get the Agentflow Script defined in the process completing time

Returns:
the Agentflow Script
Since:
version 1.0.0

getPreAction

public java.lang.String getPreAction()
Get the Agentflow Script defined in the process invokating time

Returns:
the Agentflow Script
Since:
version 1.0.0

getPrjID

public java.lang.String getPrjID()
Get the project id

Returns:
the project id
Since:
version 1.0.0

getPrjName

public java.lang.String getPrjName()
Get the project name

Returns:
the project name
Since:
version 1.1.6

getProcessType

public java.lang.String getProcessType()
Get the process type

Returns:
the TYPE_ROOT, TYPE_COMPOUND, TYPE_SINGLE, TYPE_CALLPROCESS, or TYPE_COUNTERSIGN
Since:
version 1.0.0

getProjectRoleList

public java.util.Vector getProjectRoleList()
Get the project role list

Returns:
the project role list (each element in Vector is instance of ProjectRole)
Since:
version 1.0.0

getProWarning

public java.util.Vector getProWarning()
Get the operation to inform the user while overtime

Returns:
the process warning message
Since:
version 1.0.0

getRefArtifactList

public java.util.Vector getRefArtifactList()
Get the list of reference artifacts' id

Returns:
the reference artifact list. (each element in Vector is instance of artifact's id)
Since:
version 1.0.0

getRoleList

public java.util.Vector getRoleList()
Get the department role list

Returns:
the department role list (each element in Vector is instance of Role)
Since:
version 1.0.0

getRootID

public java.lang.String getRootID()
Get process id of root process(the Work Flow)

Returns:
the process id
Since:
version 1.0.0

getRootSiblingOrder

public int getRootSiblingOrder()

getSiblingOrder

public int getSiblingOrder()

getSpeRoleList

public java.util.Vector getSpeRoleList()
Get the special role list

Returns:
the special role list (each element in Vector is instance of SpecialRole)
Since:
version 1.0.0

getStartImageType

public java.lang.String getStartImageType()

getSubProcessList

public java.util.Vector getSubProcessList()
Get the list of sub-processes

Returns:
the sub-process list. (each element in Vector is instance of DBProcess)
Since:
version 1.0.0

getSynopsis

public java.lang.String getSynopsis()
Get the process synopsis

Returns:
the process synopsis
Since:
version 1.0.0

getWidth

public int getWidth()

isAddASExecuteArtFunc

public boolean isAddASExecuteArtFunc()

isAddSignAllowReverify

public boolean isAddSignAllowReverify()

isAllowAddAandS

public boolean isAllowAddAandS()

isAllowAddAnnounce

public boolean isAllowAddAnnounce()

isAllowAddSandA

public boolean isAllowAddSandA()

isAllowAddSign

public boolean isAllowAddSign()

isAllowGoBackTo

public boolean isAllowGoBackTo()

isAllowModifyAddSignArtifact

public boolean isAllowModifyAddSignArtifact()

isAllowViewOtherPAOpinion

public boolean isAllowViewOtherPAOpinion()

isAutoExecution

public boolean isAutoExecution()
Check whether the process is auto-execution

Returns:
true if the process is executed by Agentflow System; false by user
Since:
version 1.0.0

isDisableDeputy

public boolean isDisableDeputy()
Check whether the process is non-deputized.

Returns:
true if the process is non-deputized; false otherwise
Since:
version 1.0.0

isEmailNotify

public boolean isEmailNotify()
Check whether the process is email-notify

Returns:
true to sent E-Mail to user while the process is invoked; false otherwise
Since:
version 1.0.0

isGroupSign

public boolean isGroupSign()

isGroupSignOKAction

public boolean isGroupSignOKAction()

setAction

public void setAction(java.lang.String action)
Set the Agentflow Script defined in the process running time

Parameters:
action - the Agentflow Script
Since:
version 1.0.0

setAddAnnounceQuantity

public void setAddAnnounceQuantity(int quantity)

setAddASArtState

public void setAddASArtState(PASEartState state)

setAddASEndAction

public void setAddASEndAction(java.lang.String action)

setAddASExecuteArtFunc

public void setAddASExecuteArtFunc(boolean flag)

setAddASPostAction

public void setAddASPostAction(java.lang.String action)

setAddASPreAction

public void setAddASPreAction(java.lang.String action)

setAddASReturnPoint

public void setAddASReturnPoint(java.lang.String retPoint)

setAddASStartAction

public void setAddASStartAction(java.lang.String action)

setAddPAWeightList

public void setAddPAWeightList(java.util.HashMap list)

setAddPAWeightList

public void setAddPAWeightList(java.lang.String listStr)

setAddSignAllowReverify

public void setAddSignAllowReverify(boolean flag)

setAddSignQuantity

public void setAddSignQuantity(int quantity)

setAddSignRejectPoint

public void setAddSignRejectPoint(java.lang.String rejectPoint)

setAllowAddAandS

public void setAllowAddAandS(boolean isAllow)

setAllowAddAnnounce

public void setAllowAddAnnounce(boolean isAllow)

setAllowAddSandA

public void setAllowAddSandA(boolean isAllow)

setAllowAddSign

public void setAllowAddSign(boolean isAllow)

setAllowGoBackTo

public void setAllowGoBackTo(boolean flag)

setAllowModifyAddSignArtifact

public void setAllowModifyAddSignArtifact(boolean isAllow)

setAllowViewOtherPAOpinion

public void setAllowViewOtherPAOpinion(boolean flag)

setAutoExecution

public void setAutoExecution(boolean b)
Set the process auto-execution

Parameters:
b - true if the process is executed by Agentflow System; false by user
Since:
version 1.0.0

setDisableDeputy

public void setDisableDeputy(boolean b)
Set the process disable deputy

Parameters:
b - true if the process is non-deputized; false otherwise
Since:
version 1.0.0

setDispatchAction

public void setDispatchAction(java.lang.String action)

setDuration

public void setDuration(long time)
Set the time by which user is asked to complete the process

Parameters:
time - the given process duration
Since:
version 1.0.0

setEmailNotify

public void setEmailNotify(boolean b)
Set the process email notify

Parameters:
b - true to sent E-Mail to user while the process is invoked; false otherwise
Since:
version 1.0.0

setEndImageType

public void setEndImageType(java.lang.String imgID)

setExceptionList

public void setExceptionList(java.util.List exceptionList)

setExtCond

public void setExtCond(java.util.Vector v)
Set the exit condition list.

Parameters:
v - the given exit condition list
Since:
version 1.0.0

setGoBackToProList

public void setGoBackToProList(java.util.Vector list)

setGroupSign

public void setGroupSign(boolean flag)

setGroupSignArtComponent

public void setGroupSignArtComponent(java.util.Vector comps)

setGroupSignOKAction

public void setGroupSignOKAction(boolean flag)

setHeight

public void setHeight(int height)

setID

public void setID(java.lang.String id)
Set the process id

Parameters:
id - the given process id
Since:
version 1.0.0

setImageType

public void setImageType(java.lang.String pImage)

setInfoSpec

public void setInfoSpec(java.lang.String spec)
Set the process information specification

Parameters:
spec - the given process information specification
Since:
version 1.0.0

setName

public void setName(java.lang.String name)
Set the process name

Parameters:
name - the given process name
Since:
version 1.0.0

setOprArtifactList

public void setOprArtifactList(java.util.Vector list)
Set the list of operation artifacts' id

Parameters:
list - the operation artifact list. (each element in Vector is instance of artifact's id)
Since:
version 1.0.0

setParentID

public void setParentID(java.lang.String id)
Set the process id of parent process

Parameters:
id - the given process id
Since:
version 1.0.0

setPolicy

public void setPolicy(java.lang.String policy)
Set the process policy

Parameters:
policy - one of POLICY_RANDOM, POLICY_QUEUE, POLICY_PREVIOUS, POLICY_ALL, or POLICY_AUDIT
Since:
version 1.0.0

setPostAction

public void setPostAction(java.lang.String action)
Set the Agentflow Script defined in the process completing time

Parameters:
action - the Agentflow Script
Since:
version 1.0.0

setPreAction

public void setPreAction(java.lang.String action)
Set the Agentflow Script defined in the process invokating time

Parameters:
action - the Agentflow Script
Since:
version 1.0.0

setPrjID

public void setPrjID(java.lang.String id)
Set the project id

Parameters:
id - the given project id
Since:
version 1.0.0

setPrjName

public void setPrjName(java.lang.String name)
Set the project name

Parameters:
id - the given project name
Since:
version 1.1.6

setProcessType

public void setProcessType(java.lang.String type)
Set the process type

Parameters:
type - one of TYPE_ROOT, TYPE_COMPOUND, TYPE_SINGLE, TYPE_CALLPROCESS, or TYPE_COUNTERSIGN
Since:
version 1.0.0

setProjectRoleList

public void setProjectRoleList(java.util.Vector list)
Set the project role list

Parameters:
list - the given project role list (each element in Vector is instance of ProjectRole)
Since:
version 1.0.0

setRefArtifactList

public void setRefArtifactList(java.util.Vector list)
Set the list of reference artifacts' id

Parameters:
list - the reference artifact list. (each element in Vector is instance of artifact's id)
Since:
version 1.0.0

setRoleList

public void setRoleList(java.util.Vector list)
Set the department role list

Parameters:
list - the given department role list (each element in Vector is instance of Role)
Since:
version 1.0.0

setRootID

public void setRootID(java.lang.String id)
Set the process id of root process(the Work Flow)

Parameters:
id - the given process id
Since:
version 1.0.0

setRootSiblingOrder

public void setRootSiblingOrder(int order)

setSiblingOrder

public void setSiblingOrder(int order)

setSpeRoleList

public void setSpeRoleList(java.util.Vector list)
Set the special role list

Parameters:
list - the given special role list (each element in Vector is instance of SpecialRole)
Since:
version 1.0.0

setStartImageType

public void setStartImageType(java.lang.String imgID)

setSubProcessList

public void setSubProcessList(java.util.Vector list)
Set the list of sub-processes

Parameters:
list - the given sub-process list. (each element in Vector is instance of DBProcess)
Since:
version 1.0.0

setSynopsis

public void setSynopsis(java.lang.String syn)
Set the process synopsis

Parameters:
syn - the given process synopsis
Since:
version 1.0.0

setWidth

public void setWidth(int width)

toString

public java.lang.String toString()
Get a string representation of the DBProcess.

Overrides:
toString in class java.lang.Object
Returns:
the DBProcess name
Since:
version 1.0.0

update

public void update(java.lang.Object obj)
Specified by:
update in interface com.flowring.entity.Entity

updateAddAS

public void updateAddAS(java.lang.Object obj)

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.