Package com.appiancorp.suiteapi.process
Class Instances
java.lang.Object
com.appiancorp.suiteapi.process.Instances
- All Implemented Interfaces:
XMLable
,Serializable
Class defines how many instances of the node will be created. The number
to be spawned can be specified as a constant, value of process variable,
length of an Array type process variable, number of assignee in the
assignment pool or by an expression.
- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
Number of spawned instances should be equal to the number of possible assignees in the assignment pool.static final int
Number of spawned instances is specified using a constant.static final int
Number of spawned instances is specified using an expression.static final int
Number of spawned instances is specified as number of values in a Process Variable of type multiple elements (eg Array, Vector).static final int
Number of spawned instances is specified using a process variable, whose value evaluates to a numberFields inherited from interface com.appiancorp.suiteapi.common.XMLable
DEFAULT_BUFFER_SIZE
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Returns whether multiple instances of nodes should be created.void
setExpression
(String expression_) Sets the expression about how to spawn multiple instances of node.void
setInstanceType
(Integer instanceType_) Sets how the number of instances is specified.void
setNextSpawnNew
(boolean nextSpawnType_) Sets Whether many instances of nodes should be createdtoXML()
Generates an XML representation of this object (including all child objects).void
toXML
(StringBuilder buffer_) Appends the XML representation of theInstances
to the given buffer.
-
Field Details
-
SPAWN_COUNT_CONSTANT
public static final int SPAWN_COUNT_CONSTANTNumber of spawned instances is specified using a constant.- See Also:
-
SPAWN_COUNT_PV_VALUE
public static final int SPAWN_COUNT_PV_VALUENumber of spawned instances is specified using a process variable, whose value evaluates to a number- See Also:
-
SPAWN_COUNT_PV_LENGTH
public static final int SPAWN_COUNT_PV_LENGTHNumber of spawned instances is specified as number of values in a Process Variable of type multiple elements (eg Array, Vector).- See Also:
-
SPAWN_COUNT_ASSIGNEE_COUNT
public static final int SPAWN_COUNT_ASSIGNEE_COUNTNumber of spawned instances should be equal to the number of possible assignees in the assignment pool.- See Also:
-
SPAWN_COUNT_EXPRESSION
public static final int SPAWN_COUNT_EXPRESSIONNumber of spawned instances is specified using an expression.- See Also:
-
-
Constructor Details
-
Instances
public Instances()
-
-
Method Details
-
getExpression
- Returns:
- the expression that specifies the how the instances of nodes are to be spawned
-
setExpression
Sets the expression about how to spawn multiple instances of node. -
getInstanceType
- Returns:
- how the instances of node are to be spawned. It is one of the SPAWN_COUNT_XXX Constants.
-
setInstanceType
Sets how the number of instances is specified. -
toXML
Description copied from interface:XMLable
Generates an XML representation of this object (including all child objects). A typical implementation is to create a newStringBuilder
and calltoXML( StringBuilder )
on it. -
toXML
Appends the XML representation of theInstances
to the given buffer. -
getNextSpawnNew
public boolean getNextSpawnNew()Returns whether multiple instances of nodes should be created.- Returns:
true
if multiple instances are to be created,false
otherwise.
-
setNextSpawnNew
public void setNextSpawnNew(boolean nextSpawnType_) Sets Whether many instances of nodes should be created- Parameters:
nextSpawnType_
-true
if many instances of nodes are to spwaned,false
otherwise.
-