public class Assignment extends java.lang.Object implements JSONCacheable, XMLable, AppianTypeHolder
Multiple instances of a node can run in a process because of Spawning, Recurrence or Loops in the process model. In these cases, the process engine provides separate assignment functions which can be used to either distribute the tasks across the users in the assignment pool or assign the next instance of the tasks to the user who completed previous instances of the task. It should be noted that assignment can be distributed only when the node is set to spawn and task can be assigned to previous assignee only when node is not set to spawn.
ActivityClass
,
Assignment.Assignee
,
Serialized FormModifier and Type | Class and Description |
---|---|
static class |
Assignment.Assignee
A user, group, role, or function that is assigned to a task.
|
Modifier and Type | Field and Description |
---|---|
static int |
ACCEPT_AUTO_ALWAYS
Constant indicating that acceptance always happens automatically.
|
static int |
ACCEPT_AUTO_IF_ONLY_ASSIGNEE
Constant indicating that acceptance happens automatically only if the size
of the assignment pool is 1.
|
static int |
ACCEPT_MANUAL
Constant indicating that acceptance must be performed manually by the
runtime user.
|
static int |
ASSIGNEE_TYPE_ACTOR
Constant indicating that an assignment is to an actor
|
static int |
ASSIGNEE_TYPE_EXPRESSIONS
Constant indicating that an assignment is to an expression
|
static int |
ASSIGNEE_TYPE_FUNCTION
Deprecated.
This assignment type is not used.
|
static int |
ASSIGNEE_TYPE_GROUPS
Constant indicating that an assignment is to a group.
|
static int |
ASSIGNEE_TYPE_ROLE
Constant indicating that an assignment is to a role.
|
static int |
ASSIGNEE_TYPE_USERS
Constant indicating that an assignment is to a user.
|
static int |
MULTIPLE_INSTANCE_DISTRIBUTE_ASSIGNEE
Constant indicating that the spawned instances of the tasks should be distributed
across the users in the assignment pool.
|
static int |
MULTIPLE_INSTANCE_PREVIOUS_ASSIGNEE
Constant indicating that the new instance of the task should be assigned
to the previous assignee of this task.
|
static java.lang.Long |
PRIVILEGE_REASSIGN_TO_ANY
Allowed to reject the task and to reassign the task to anyone.
|
static java.lang.Long |
PRIVILEGE_REASSIGN_WITHIN_POOL
Allowed to reject the task and to reassign the task within the assignment pool.
|
static java.lang.Long |
PRIVILEGE_REJECT_ONLY
Allowed only to reject the task.
|
hiddenAttributes$TRANSIENT
DEFAULT_BUFFER_SIZE
Constructor and Description |
---|
Assignment() |
Modifier and Type | Method and Description |
---|---|
void |
fillInAppianTypes(AppianTypeCache cache_)
Adds the primary keys of each assignees that is a user or group to the
appian type cache.
|
java.lang.Long |
getAcceptMode() |
Assignment.Assignee[] |
getAssignees()
Returns the assignees for this Assignment
|
ActivityClass |
getAssignmentFunction()
Deprecated.
Use
getAssignees instead; see setAssignmentFunction(com.appiancorp.suiteapi.process.ActivityClass) for
an alternative method of setting the assignment. |
java.lang.Long |
getAssignmentPosition()
Deprecated.
The value retrieved by this method is not used.
|
java.util.HashSet |
getHiddenAttributes()
Returns the set of attributes (properties) that should not be included in
the JSON representation of the object.
|
java.lang.Integer |
getMultipleInstanceAssigneeType()
Returns the type of the Assignee function to use when multiple instances
of are nodes executed in a process.
|
void |
setAcceptMode(java.lang.Long acceptMode_)
sets the acceptmode
|
void |
setAssignees(Assignment.Assignee[] assignees_)
sets the assignees for this Assignment
|
void |
setAssignmentFunction(ActivityClass assignmentFunction_)
Deprecated.
Instead, set the assignment by calling
setAssignees(com.appiancorp.suiteapi.process.Assignment.Assignee[]) with an Assignee of type ASSIGNEE_TYPE_EXPRESSIONS
with the value set to an expression. |
void |
setAssignmentPosition(java.lang.Long assignmentPosition_)
Deprecated.
The value set by this method is not used.
|
void |
setMultipleInstanceAssigneeType(java.lang.Integer multipleInstanceAssigneeType_)
Sets the type of the Assignee function when multiple instances of the
nodes are executed in a process
|
java.lang.String |
toXML()
Generates an XML representation of this object (including all
child objects).
|
void |
toXML(java.lang.StringBuilder buffer_)
Appends an XML representation of this object to the given buffer.
|
public static final int ASSIGNEE_TYPE_EXPRESSIONS
public static final int ASSIGNEE_TYPE_USERS
public static final int ASSIGNEE_TYPE_GROUPS
public static final int ASSIGNEE_TYPE_ROLE
@Deprecated public static final int ASSIGNEE_TYPE_FUNCTION
public static final int ASSIGNEE_TYPE_ACTOR
public static final java.lang.Long PRIVILEGE_REJECT_ONLY
public static final java.lang.Long PRIVILEGE_REASSIGN_WITHIN_POOL
public static final java.lang.Long PRIVILEGE_REASSIGN_TO_ANY
public static final int ACCEPT_AUTO_ALWAYS
public static final int ACCEPT_AUTO_IF_ONLY_ASSIGNEE
public static final int ACCEPT_MANUAL
public static final int MULTIPLE_INSTANCE_PREVIOUS_ASSIGNEE
public static final int MULTIPLE_INSTANCE_DISTRIBUTE_ASSIGNEE
public java.util.HashSet getHiddenAttributes()
JSONable
getHiddenAttributes
in interface JSONable
public Assignment.Assignee[] getAssignees()
public void setAssignees(Assignment.Assignee[] assignees_)
assignees_
- the assignees to set for this Assignment@Deprecated public ActivityClass getAssignmentFunction()
getAssignees
instead; see setAssignmentFunction(com.appiancorp.suiteapi.process.ActivityClass)
for
an alternative method of setting the assignment.ActivityClass
which is the AssignmentFunction for
this assignment@Deprecated public void setAssignmentFunction(ActivityClass assignmentFunction_)
setAssignees(com.appiancorp.suiteapi.process.Assignment.Assignee[])
with an Assignee
of type ASSIGNEE_TYPE_EXPRESSIONS
with the value
set to an expression.assignmentFunction_
- the assignment activity class for this assignmentpublic java.lang.String toXML()
XMLable
StringBuilder
and call
toXML( StringBuilder )
on it.public void toXML(java.lang.StringBuilder buffer_)
@Deprecated public java.lang.Long getAssignmentPosition()
@Deprecated public void setAssignmentPosition(java.lang.Long assignmentPosition_)
assignmentPosition_
- zero-based index into the list of preactivities, determining when
assignement should be performed.public java.lang.Long getAcceptMode()
public void setAcceptMode(java.lang.Long acceptMode_)
acceptMode_
- the acceptMode to set, which should be one of the ACCEPT_XXX
constants.public java.lang.Integer getMultipleInstanceAssigneeType()
public void setMultipleInstanceAssigneeType(java.lang.Integer multipleInstanceAssigneeType_)
multipleInstanceAssigneeType_
- Assignment.MULTIPLE_INSTANCE_PREVIOUS_ASSIGNEE or
Assignment.MULTIPLE_INSTANCE_DISTRIBUTE_ASSIGNEEpublic void fillInAppianTypes(AppianTypeCache cache_)
fillInAppianTypes
in interface AppianTypeHolder
cache_
- cache of Appian-typed objects.Copyright © 2003-2024 Appian Corporation. All Rights Reserved.