Agentflow
V3.1

pe.pase
Class SpecialRole

java.lang.Object
  extended by pe.pase.SpecialRole
All Implemented Interfaces:
java.io.Serializable

public class SpecialRole
extends java.lang.Object
implements java.io.Serializable

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.

Since:
version 1.0.0
Version:
1.1.5,
Author:
yschen
See Also:
Role, Project, Serialized Form

Field 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

ROLE_FUNCTION_DEPARTMENTOF

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

ROLE_FUNCTION_MANAGEROF

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

ROLE_FUNCTION_MEMBEROF

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

ROLE_FUNCTION_ROLEOF

public static final java.lang.String ROLE_FUNCTION_ROLEOF
See Also:
Constant Field Values
Constructor Detail

SpecialRole

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

Parameters:
id - the special role id
Since:
version 1.0.0
Method Detail

getID

public java.lang.String getID()
Get the id of special role

Returns:
the special role id
Since:
version 1.0.0

getParamString

public java.lang.String getParamString()
Get the parameter of special role while the target is an artifact

Returns:
the special role parameter
Since:
version 1.0.0

getRoleFunction

public java.lang.String getRoleFunction()
Get the type of special role

Returns:
the special role function
Since:
version 1.0.0

getTarget

public java.lang.String getTarget()
Get the target of special role

Returns:
the special role target
Since:
version 1.0.0

setParamString

public void setParamString(java.lang.String s)
Set the parameter of special role while the target is an artifact

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

setRoleFunction

public void setRoleFunction(java.lang.String fun)
Set the type of special role

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

setTarget

public void setTarget(java.lang.String t)
Set the target of special role

Parameters:
t - the given special role target
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.