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
FieldsModifier and TypeFieldDescriptionstatic final intNumber of spawned instances should be equal to the number of possible assignees in the assignment pool.static final intNumber of spawned instances is specified using a constant.static final intNumber of spawned instances is specified using an expression.static final intNumber of spawned instances is specified as number of values in a Process Variable of type multiple elements (eg Array, Vector).static final intNumber 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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns whether multiple instances of nodes should be created.voidsetExpression(String expression_) Sets the expression about how to spawn multiple instances of node.voidsetInstanceType(Integer instanceType_) Sets how the number of instances is specified.voidsetNextSpawnNew(boolean nextSpawnType_) Sets Whether many instances of nodes should be createdtoXML()Generates an XML representation of this object (including all child objects).voidtoXML(StringBuilder buffer_) Appends the XML representation of theInstancesto 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:XMLableGenerates an XML representation of this object (including all child objects). A typical implementation is to create a newStringBuilderand calltoXML( StringBuilder )on it. -
toXML
Appends the XML representation of theInstancesto the given buffer. -
getNextSpawnNew
public boolean getNextSpawnNew()Returns whether multiple instances of nodes should be created.- Returns:
trueif multiple instances are to be created,falseotherwise.
-
setNextSpawnNew
public void setNextSpawnNew(boolean nextSpawnType_) Sets Whether many instances of nodes should be created- Parameters:
nextSpawnType_-trueif many instances of nodes are to spwaned,falseotherwise.
-