Class SafeActivityReturnVariable
java.lang.Object
com.appiancorp.suiteapi.process.framework.SafeActivityReturnVariable
Wrapper for
ActivityReturnVariable
that enforces non-null
value, and contains only getters so that users cannot change the values.-
Field Summary
-
Constructor Summary
ConstructorDescriptionSafeActivityReturnVariable
(ActivityReturnVariable delegate_) Deprecated.SafeActivityReturnVariable
(ActivityReturnVariable delegate_, TypeService ts) Instantiates a wrapper for aActivityReturnVariable
object. -
Method Summary
Modifier and TypeMethodDescriptionchildren()
If the type of the variable is BEAN, returns an array of ACP who are the fields of the bean.static SafeActivityReturnVariable
findByName
(SafeActivityReturnVariable[] variables_, String name_) Finds the variable in the given array whosename
corresponds to the given name.static ActivityReturnVariable[]
getArvs
(SafeActivityReturnVariable[] safes_) getKey()
getName()
getType()
Deprecated.getValue()
void
Sets the value of the typed variable.toString()
converts typed variable to a string
-
Field Details
-
LOG
protected static final org.apache.log4j.Logger LOG
-
-
Constructor Details
-
SafeActivityReturnVariable
Deprecated. -
SafeActivityReturnVariable
Instantiates a wrapper for aActivityReturnVariable
object.
-
-
Method Details
-
toString
converts typed variable to a string -
children
If the type of the variable is BEAN, returns an array of ACP who are the fields of the bean. If the type of the variable is BEAN_ARRAY, returns an array of the ACP who are the cells in the array. Otherwise, returnsnull
. All non-null return values are wrapped in SafeActivityReturnVariables.Note that this is not a getXXX method, so as not to be confused with a property (mostly by ASL/k).
-
getType
Deprecated.- Returns:
- the type of the typed variable
-
getInstanceType
-
getKey
- Returns:
- the key(name) of the typed variable
-
getName
-
getValue
- Returns:
- the value of the typed variable
-
setValue
Sets the value of the typed variable. Unlike the method on typed variable, this one will not do any conversions - the type must be exactly right.- Throws:
IllegalStateException
- If called on an object of type BEAN or BEAN_ARRAYIllegalArgumentException
- If called with an object that is not of the correct type
-
findByName
public static SafeActivityReturnVariable findByName(SafeActivityReturnVariable[] variables_, String name_) Finds the variable in the given array whosename
corresponds to the given name. If no such variable can be found, returnsnull
.- Parameters:
variables_
-SafeActivityReturnVariables
to search throughname_
- name of activity variable to search for- Returns:
- the first
SafeActivityReturnVariable
that exactly matches name_
-
getArvs
- Parameters:
safes_
- TheSafeActivityReturnVariable
objects to getActivityReturnVariable
objects for- Returns:
- the
ActivityReturnVariable
objects relating to the givenSafeActivityReturnVariable
objects
-
getInstanceType()