Reference documentation and code samples for the Google Cloud Workflows V1 Client class Execution.
A running instance of a Workflow .
Generated from protobuf message google.cloud.workflows.executions.v1.Execution
Namespace
Google \ Cloud \ Workflows \ Executions \ V1Methods
__construct
Constructor.
data
array
Optional. Data for populating the Message object.
↳ name
string
Output only. The resource name of the execution. Format: projects/{project}/locations/{location}/workflows/{workflow}/executions/{execution}
↳ start_time
↳ end_time
↳ state
int
Output only. Current state of the execution.
↳ argument
string
Input parameters of the execution represented as a JSON string. The size limit is 32KB. Note
: If you are using the REST API directly to run your workflow, you must escape any JSON string value of argument
. Example: '{"argument":"{\"firstName\":\"FIRST\",\"lastName\":\"LAST\"}"}'
↳ result
string
Output only. Output of the execution represented as a JSON string. The value can only be present if the execution's state is SUCCEEDED
.
↳ error
Google\Cloud\Workflows\Executions\V1\Execution\Error
Output only. The error which caused the execution to finish prematurely. The value is only present if the execution's state is FAILED
or CANCELLED
.
↳ workflow_revision_id
string
Output only. Revision of the workflow this execution is using.
↳ call_log_level
int
The call logging level associated to this execution.
getName
Output only. The resource name of the execution.
Format: projects/{project}/locations/{location}/workflows/{workflow}/executions/{execution}
string
setName
Output only. The resource name of the execution.
Format: projects/{project}/locations/{location}/workflows/{workflow}/executions/{execution}
var
string
$this
getStartTime
Output only. Marks the beginning of execution.
hasStartTime
clearStartTime
setStartTime
Output only. Marks the beginning of execution.
$this
getEndTime
Output only. Marks the end of execution, successful or not.
hasEndTime
clearEndTime
setEndTime
Output only. Marks the end of execution, successful or not.
$this
getState
Output only. Current state of the execution.
int
setState
Output only. Current state of the execution.
var
int
$this
getArgument
Input parameters of the execution represented as a JSON string.
The size limit is 32KB. Note
: If you are using the REST API directly to run your workflow, you
must escape any JSON string value of argument
. Example: '{"argument":"{\"firstName\":\"FIRST\",\"lastName\":\"LAST\"}"}'
string
setArgument
Input parameters of the execution represented as a JSON string.
The size limit is 32KB. Note
: If you are using the REST API directly to run your workflow, you
must escape any JSON string value of argument
. Example: '{"argument":"{\"firstName\":\"FIRST\",\"lastName\":\"LAST\"}"}'
var
string
$this
getResult
Output only. Output of the execution represented as a JSON string. The
value can only be present if the execution's state is SUCCEEDED
.
string
setResult
Output only. Output of the execution represented as a JSON string. The
value can only be present if the execution's state is SUCCEEDED
.
var
string
$this
getError
Output only. The error which caused the execution to finish prematurely.
The value is only present if the execution's state is FAILED
or CANCELLED
.
hasError
clearError
setError
Output only. The error which caused the execution to finish prematurely.
The value is only present if the execution's state is FAILED
or CANCELLED
.
$this
getWorkflowRevisionId
Output only. Revision of the workflow this execution is using.
string
setWorkflowRevisionId
Output only. Revision of the workflow this execution is using.
var
string
$this
getCallLogLevel
The call logging level associated to this execution.
int
setCallLogLevel
The call logging level associated to this execution.
var
int
$this