|
Agentflow V3.1 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectpe.pase.SpecialRole
public class SpecialRole
A data object to represent the concept of special-role.
The special role is used to define the role with particular purpose. In Agentflow System, there are three kinds of data object of Role. The other two are Role and ProjectRole.
Condiser a workflow of 'leave'. At first, Some user fills the 'leave request application'. After the manager agree the leave, the application will be back to inform the user. In the simple example, the leave request application has to pass to the 'Manager of the executor in the first step', and return back to the 'Member of the first step'.
The two roles described in the previous example are represented by SpecialRole. It is composed of SpecialRoleFunc and SpecialRoleTarget. The type include 'MemberOf', 'ManagerOf', 'RoleOf', and 'DepartmentOf', and the target could be a executor of previous step or a value of one component in the operatino artifact. For the former target, the ProcessID is stored in the SpecialRoleTarget, and for the last one, the ArtifactID and the ArtFormItemID are stored in the SpecialRoleTarget and SpecialRoleParam.
In addition, The SpecialRoleID is the identifier of the Special Role.
Role
,
Project
,
Serialized FormField Summary | |
---|---|
static java.lang.String |
ROLE_FUNCTION_DEPARTMENTOF
|
static java.lang.String |
ROLE_FUNCTION_MANAGEROF
|
static java.lang.String |
ROLE_FUNCTION_MEMBEROF
|
static java.lang.String |
ROLE_FUNCTION_ROLEOF
|
Constructor Summary | |
---|---|
SpecialRole(java.lang.String id)
Constructor. |
Method Summary | |
---|---|
java.lang.String |
getID()
Get the id of special role |
java.lang.String |
getParamString()
Get the parameter of special role while the target is an artifact |
java.lang.String |
getRoleFunction()
Get the type of special role |
java.lang.String |
getTarget()
Get the target of special role |
void |
setParamString(java.lang.String s)
Set the parameter of special role while the target is an artifact |
void |
setRoleFunction(java.lang.String fun)
Set the type of special role |
void |
setTarget(java.lang.String t)
Set the target of special role |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String ROLE_FUNCTION_DEPARTMENTOF
public static final java.lang.String ROLE_FUNCTION_MANAGEROF
public static final java.lang.String ROLE_FUNCTION_MEMBEROF
public static final java.lang.String ROLE_FUNCTION_ROLEOF
Constructor Detail |
---|
public SpecialRole(java.lang.String id)
SpecialRole
with the specified role id
id
- the special role idMethod Detail |
---|
public java.lang.String getID()
public java.lang.String getParamString()
public java.lang.String getRoleFunction()
public java.lang.String getTarget()
public void setParamString(java.lang.String s)
s
- the given special role parameterpublic void setRoleFunction(java.lang.String fun)
fun
- the given special role functionpublic void setTarget(java.lang.String t)
t
- the given special role target
|
Agentflow V3.1 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |