public class TaskContextVariableExtractor extends Object implements Serializable
Constructor and Description |
---|
TaskContextVariableExtractor() |
Modifier and Type | Method and Description |
---|---|
Map<String,byte[]> |
extractPropagatedVariables(TaskContext taskContext)
Extract variables from the previous task result to be propagated to children tasks in case of internal error.
|
Map<String,String> |
extractThirdPartyCredentials(TaskContext taskContext) |
Map<String,String> |
extractVariablesThirdPartyCredentialsAndSystemEnvironmentVariables(TaskContext taskContext)
Retrieve all third party credential variables in a map.
|
Map<String,Serializable> |
getAllNonTaskVariables(TaskContext taskContext)
Method to retrieve all variables in scope.
|
Map<String,Serializable> |
getAllNonTaskVariablesInjectNodesFile(TaskContext taskContext,
String nodesFile)
Method to retrieve all variables in scope.
|
Map<String,Serializable> |
getAllVariables(TaskContext taskContext)
Method to retrieve all variables in scope.
|
Map<String,Serializable> |
getAllVariablesWithTaskResult(TaskContext taskContext,
TaskResult taskResult)
Return all variables available.
|
Map<String,Serializable> |
getScopeVariables(TaskContext taskContext)
Return all variables in scope of a given taskContext.
|
public Map<String,String> extractVariablesThirdPartyCredentialsAndSystemEnvironmentVariables(TaskContext taskContext)
taskContext
- all information to extract third party credentials is here.public Map<String,String> extractThirdPartyCredentials(TaskContext taskContext)
public Map<String,Serializable> getScopeVariables(TaskContext taskContext)
taskContext
- task context container.public Map<String,Serializable> getAllNonTaskVariables(TaskContext taskContext)
taskContext
- task context container.public Map<String,Serializable> getAllNonTaskVariablesInjectNodesFile(TaskContext taskContext, String nodesFile)
taskContext
- task context container.public Map<String,Serializable> getAllVariablesWithTaskResult(TaskContext taskContext, TaskResult taskResult)
taskContext
- context containing all variables inside.taskResult
- used to retrieve the result task variables.public Map<String,Serializable> getAllVariables(TaskContext taskContext)
taskContext
- public Map<String,byte[]> extractPropagatedVariables(TaskContext taskContext)
taskContext
- contains the information needed to extract.