Class ActivityExecutionMetadata
java.lang.Object
com.appiancorp.suiteapi.process.framework.ActivityExecutionMetadata
- All Implemented Interfaces:
Serializable
Metadata attributes of an activity that are needed during its execution. Generally, these objects
are retrieved from API calls on the ProcessExecutionService, so developers should not interact
with the setter methods.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddAdditionalContext(String key, String value) Add additional context passed to the node from an external service, displacing only an item with the same key.voidaddAdditionalContext(Map<String, String> additionalContext) Add additional context passed to the node from an external service, displacing only items with the same key.Gets the properties of an activity, such as the task properties, process properties, and process model properties for a task, the process it is in, and the model for that process.A map of additional context that is passed to the node from an external service.intGets the url of the page that should be shown to the user who performs an attended task if that task completes successfully.The environment in which the activity executes, such as process execution engine or Java.getForm()getId()Gets the fully qualified class name of the java class that embodies the activity.String[]Gets the input parameters on which the activity operates.intGets the variables whose values are produced during activity execution.getToken()getUser()The user who executes the activityGets the workId of an activity if it's managed by the workq, null otherwise.Gets the unique disambiguation token of an activity if it's managed by the workq, null otherwiseGets the work type code of an activity if it's managed by the workq, null otherwisebooleanbooleanbooleanbooleanbooleanbooleanReturnstrueif this is a Quick Task,falseotherwise.booleanvoidsetActivityProperties(ActivityProperties activityProperties_) voidsetAdditionalContext(Map<String, String> additionalContext_) Deprecated.see addAdditionalContext to not displace existing contextvoidsetAsynchronous(boolean asynchronous_) voidsetAsyncState(int asyncStateCode) voidsetBackButtonEnabled(boolean backButtonEnabled_) voidsetChained(boolean chained_) voidsetChainingTimeout(Timestamp chainingTimeout) voidsetConfirmationUrl(String confirmationUrl_) Sets the url of the page that should be shown to the user who performs an attended task if that task completes successfully.voidsetExecutionEnvironment(Integer executionEnvironment_) The environment in which the activity executes, such as process execution engine or Java.voidsetForm(FormConfig form_) voidsetFormDeleted(boolean formDeleted_) voidsetGrantorUsername(String grantorUsername) voidvoidvoidsetJavaActivityClassname(String javaActivityClassname_) Sets the fully qualified class name of the java class that embodies the activity.voidsetLingering(boolean lingering_) voidsetOnCompleteKeepFormData(boolean onCompleteKeepFormData_) voidsetOutputExpressions(String[] outputExpressions) voidsetParameters(ActivityClassParameter[] parameters_) Sets the input parameters on which the activity operates.voidsetPrecedingChainedActivity(int precedingChainedActivity_) voidsetReturnVariables(ActivityReturnVariable[] returnVariables_) The variables whose values are produced during activity execution.voidToken to be passed along from the creation of this ActivityExecutionMetadata until its use.voidThe user who executes the activityvoidvoidsetWorkToken(Long _workToken) voidsetWorkType(Long workType) toString()
-
Constructor Details
-
ActivityExecutionMetadata
public ActivityExecutionMetadata()
-
-
Method Details
-
getId
-
setId
-
getToken
- Returns:
- Token to be passed along from the creation of this ActivityExecutionMetadata until its use.
-
setToken
Token to be passed along from the creation of this ActivityExecutionMetadata until its use.- Parameters:
token-
-
getExecutionEnvironment
The environment in which the activity executes, such as process execution engine or Java.- Returns:
- one of the
ActivityClassSchema.ENVIRONMENT_XXXconstants. - See Also:
-
setExecutionEnvironment
The environment in which the activity executes, such as process execution engine or Java.- Parameters:
executionEnvironment_- one of theActivityClassSchema.ENVIRONMENT_XXXconstants.- See Also:
-
getOutputExpressions
- Returns:
- output expressions for the activity, which are full expressions to be evaluated in context of the completed activity. Non-null.
-
setOutputExpressions
- Parameters:
outputExpressions- the output expressions or the activity, which are full expressions to be evaluated in context of the completed activity.
-
getJavaActivityClassname
Gets the fully qualified class name of the java class that embodies the activity. This method is only useful if the execution environment is Java.- Returns:
- the activity class name
-
setJavaActivityClassname
Sets the fully qualified class name of the java class that embodies the activity. This method is only useful if the execution environment is Java. -
getParameters
Gets the input parameters on which the activity operates.- Returns:
- the parameters
-
setParameters
Sets the input parameters on which the activity operates. -
getConfirmationUrl
Gets the url of the page that should be shown to the user who performs an attended task if that task completes successfully.- Returns:
- the confirmation page
-
setConfirmationUrl
Sets the url of the page that should be shown to the user who performs an attended task if that task completes successfully. -
getReturnVariables
Gets the variables whose values are produced during activity execution. These values are then stored in the database via a call toProcessExecutionService.completeActivity.- Returns:
- the results from the execution of the activity
- See Also:
-
setReturnVariables
The variables whose values are produced during activity execution. These values are then stored in the database via a call toProcessExecutionService.completeActivity. -
getUser
The user who executes the activity- Returns:
- the username of the user who executes the activity.
-
setUser
The user who executes the activity- Parameters:
_user- the primary key (username) of the user.
-
getActivityProperties
Gets the properties of an activity, such as the task properties, process properties, and process model properties for a task, the process it is in, and the model for that process.- Returns:
- the properties
- See Also:
-
setActivityProperties
-
getWorkId
Gets the workId of an activity if it's managed by the workq, null otherwise. -
setWorkId
-
getWorkToken
Gets the unique disambiguation token of an activity if it's managed by the workq, null otherwise -
setWorkToken
-
getWorkType
Gets the work type code of an activity if it's managed by the workq, null otherwise -
setWorkType
-
getGrantorUsername
-
setGrantorUsername
-
getForm
- Returns:
- the form configuration object which will specify the form that will be used for the activity. Forms can be internal, JSP or dynamic
- See Also:
-
setForm
-
getHelperInstance
- Returns:
- the instantiated Helper class for the activity
-
setHelper
-
getHelper
- Returns:
- fully qualified name of the helper class.
-
isAsynchronous
public boolean isAsynchronous()- Returns:
trueif the activity is asynchronous elsefalse. Asynchronous activities do not stall the Process Execution Engine
-
setAsynchronous
public void setAsynchronous(boolean asynchronous_) -
getPrecedingChainedActivity
public int getPrecedingChainedActivity() -
hasPrecedingChainedActivity
public boolean hasPrecedingChainedActivity() -
setPrecedingChainedActivity
public void setPrecedingChainedActivity(int precedingChainedActivity_) -
isChained
public boolean isChained() -
setChained
public void setChained(boolean chained_) -
getChainingTimeout
-
setChainingTimeout
-
isLingering
public boolean isLingering()Returnstrueif this is a Quick Task,falseotherwise.- Returns:
trueif it's a Quick Task,falseotherwise.
-
setLingering
public void setLingering(boolean lingering_) -
isBackButtonEnabled
public boolean isBackButtonEnabled() -
setBackButtonEnabled
public void setBackButtonEnabled(boolean backButtonEnabled_) -
isFormDeleted
public boolean isFormDeleted() -
setFormDeleted
public void setFormDeleted(boolean formDeleted_) -
isOnCompleteKeepFormData
public boolean isOnCompleteKeepFormData() -
setOnCompleteKeepFormData
public void setOnCompleteKeepFormData(boolean onCompleteKeepFormData_) -
getAdditionalContext
A map of additional context that is passed to the node from an external service. This item can be null -
setAdditionalContext
Deprecated.see addAdditionalContext to not displace existing context- Parameters:
additionalContext_-
-
addAdditionalContext
Add additional context passed to the node from an external service, displacing only an item with the same key.- Parameters:
key-value-
-
addAdditionalContext
Add additional context passed to the node from an external service, displacing only items with the same key.- Parameters:
additionalContext-
-
getAsyncState
public int getAsyncState() -
setAsyncState
public void setAsyncState(int asyncStateCode) -
toString
-