public class DagELFunctions extends Object
Modifier and Type | Field and Description |
---|---|
static String |
HADOOP_JOBS_PREFIX |
Constructor and Description |
---|
DagELFunctions() |
Modifier and Type | Method and Description |
---|---|
static void |
configureEvaluator(ELEvaluator evaluator,
WorkflowJobBean workflow,
WorkflowActionBean action) |
static WorkflowActionBean |
getAction() |
static String |
getActionVar(String actionName,
String varName) |
static org.apache.hadoop.conf.Configuration |
getProtoActionConf() |
static WorkflowJobBean |
getWorkflow() |
static void |
setActionInfo(WorkflowInstance workflowInstance,
WorkflowAction action) |
static Map<String,String> |
wf_actionData(String actionName)
Return the action data for an action.
|
static String |
wf_actionExternalId(String actionName)
Return the external ID of an action.
|
static String |
wf_actionExternalStatus(String actionName)
Return the action external status.
|
static String |
wf_actionTrackerUri(String actionName)
Return the tracker URI of an action.
|
static String |
wf_appPath()
Return the application path.
|
static String |
wf_callback(String externalStatusVar)
Create a callback URL for the current action.
|
static String |
wf_conf(String property)
Return a job configuration property.
|
static String |
wf_errorCode(String actionName)
Return the error code for an action.
|
static String |
wf_errorMessage(String actionName)
Return the error message for an action.
|
static String |
wf_group()
Return the job owner group name.
|
static String |
wf_id()
Return the job Id.
|
static String |
wf_lastErrorNode()
Return the name of the last action that ended in error.
|
static String |
wf_name()
Return the application name.
|
static int |
wf_run()
Return the workflow run number, unless a rerun it is always 1.
|
static String |
wf_transition(String actionName)
Return the transition taken by a workflow job action/decision action.
|
static String |
wf_user()
Return the job owner user name.
|
public static final String HADOOP_JOBS_PREFIX
public DagELFunctions()
public static void configureEvaluator(ELEvaluator evaluator, WorkflowJobBean workflow, WorkflowActionBean action)
public static WorkflowActionBean getAction()
public static WorkflowJobBean getWorkflow()
public static org.apache.hadoop.conf.Configuration getProtoActionConf()
public static void setActionInfo(WorkflowInstance workflowInstance, WorkflowAction action)
public static String wf_appPath()
public static String wf_conf(String property)
property
- property name.null
if the property is undefined.public static String wf_user()
public static String wf_group()
public static String wf_callback(String externalStatusVar)
externalStatusVar
- variable for the caller to inject the external status.public static String wf_transition(String actionName)
actionName
- action/decision action name.null
if the action has not completed yet.public static String wf_lastErrorNode()
null
if no action in the workflow job has
ended in error.public static String wf_errorCode(String actionName)
actionName
- action name.null
if the action has not ended in error.public static String wf_errorMessage(String actionName)
actionName
- action name.null
if the action has not ended in error.public static int wf_run()
public static Map<String,String> wf_actionData(String actionName)
actionName
- action name.public static String wf_actionExternalId(String actionName)
actionName
- action name.public static String wf_actionTrackerUri(String actionName)
actionName
- action name.public static String wf_actionExternalStatus(String actionName)
actionName
- action/decision action name.public static String getActionVar(String actionName, String varName)
Copyright © 2018 Apache Software Foundation. All rights reserved.