public interface WorkflowContext extends SchedulableProgramContext, RuntimeContext, Transactional, MessagingContext, ServiceDiscoverer, DatasetContext, PluginContext, SecureStore, LineageRecorder, MetadataReader, MetadataWriter
Modifier and Type | Method and Description |
---|---|
void |
enableFieldLineageConsolidation()
Call this method to consolidate the field lineage operations at Workflow level, rather than emitting
them from nodes running inside the Workflow.
|
ConditionSpecification |
getConditionSpecification()
Returns
ConditionSpecification associated with the condition node in the Workflow. |
long |
getLogicalStartTime() |
Map<String,WorkflowNodeState> |
getNodeStates()
Return an immutable
Map of node ids to WorkflowNodeState . |
ProgramState |
getState()
Return the state of the workflow.
|
WorkflowToken |
getToken() |
WorkflowSpecification |
getWorkflowSpecification() |
getTriggeringScheduleInfo
getAdmin, getApplicationSpecification, getClusterName, getDataTracer, getNamespace, getRunId, getRuntimeArguments
execute, execute
getDirectMessagePublisher, getMessageFetcher, getMessagePublisher
getServiceURL, getServiceURL, getServiceURL
discardDataset, getDataset, getDataset, getDataset, getDataset, releaseDataset
getPluginProperties, getPluginProperties, loadPluginClass, newPluginInstance, newPluginInstance
get, list
flushLineage, record
getMetadata, getMetadata
addProperties, addTags, addTags, removeMetadata, removeProperties, removeProperties, removeTags, removeTags
WorkflowSpecification getWorkflowSpecification()
ConditionSpecification getConditionSpecification()
ConditionSpecification
associated with the condition node in the Workflow.UnsupportedOperationException
- if it is not called from Predicate
or Condition
long getLogicalStartTime()
WorkflowToken getToken()
WorkflowToken
@Beta Map<String,WorkflowNodeState> getNodeStates()
Map
of node ids to WorkflowNodeState
. This can be used
from AbstractWorkflow.destroy()
method to determine the status of all nodes
executed by the Workflow in the current run.@Beta ProgramState getState()
AbstractWorkflow.destroy()
to determine the status of the Workflow
.ProgramState
@Beta void enableFieldLineageConsolidation()
AbstractWorkflow.initialize(io.cdap.cdap.api.workflow.WorkflowContext)
method at which point no node has been executed yet. Calling this method means Workflow is taking
responsibility of emitting the field operations. In AbstractWorkflow.destroy()
method of the Workflow,
field operations will be available as WorkflowNodeState
by calling getNodeStates()
method.
If workflow does not call LineageRecorder.record(java.util.Collection<? extends io.cdap.cdap.api.lineage.field.Operation>)
method, then no field lineage will be emitted.Copyright © 2020 Cask Data, Inc. Licensed under the Apache License, Version 2.0.