public interface TaskOutput
Modifier and Type | Method and Description |
---|---|
TaskState |
getState()
Retrieves the task state for a specific state.
|
<T extends JobValue> |
getValue(String name,
Class<T> returnType)
Retrieves the value identified by the given
name from the task output. |
<T> T |
getValue(String name,
JobValueType<T> valueType)
Retrieves the value identified by the given
name from the task output. |
void |
setState(TaskState taskState)
Sets task state for a specific task.
|
void |
setValue(String name,
Object value)
Sets the value of a task parameter.
|
void setValue(String name, Object value)
Job.process(JobProcessContext)
to set the output
parameters of a task when the task is completed.name
- name of the parametervalue
- new value to set on the parameter. Must be one of the data types specified in JobValueType
or implements JobValue
.<T> T getValue(String name, JobValueType<T> valueType)
name
from the task output.T
- type of object requested. Cannot be null.name
- name of the object to get from the task output. Cannot be null.valueType
- type of object requested. Cannot be null.<T extends JobValue> T getValue(String name, Class<T> returnType)
name
from the task output.T
- type of object requested. Cannot be null.name
- name of the object to get from the task output. Cannot be null.returnType
- type of object requested. Cannot be null.TaskState getState()
Copyright © Veeva Systems 2017–2021. All rights reserved.