Models workflow metadata properties and notification handler
Type | Name and description |
---|---|
java.lang.String |
commandLine Command line as enter by the user to launch the workflow execution |
java.lang.String |
commitId Git commit ID of the executed repository |
java.util.Date |
complete Timestamp at workflow execution complete |
java.lang.Object |
container Docker image used to run workflow tasks. |
nextflow.util.Duration |
duration Time elapsed to complete workflow execution |
java.lang.String |
errorMessage Error message of the task that caused the workflow execution to fail |
java.lang.String |
errorReport Detailed error of the task that caused the workflow execution to fail |
java.lang.Integer |
exitStatus The exit status of the task that caused the workflow execution to fail |
java.nio.file.Path |
launchDir Directory where workflow execution has been launched |
java.util.Map |
nextflow Nextflow runtime info, it includes the following entries: |
java.lang.String |
profile The used configuration profile |
java.nio.file.Path |
projectDir Directory where workflow project is store on the computer |
java.lang.String |
repository Project repository Git remote URL |
boolean |
resume Returns ``true`` whenever the current instance is resumed from a previous execution |
java.lang.String |
revision Git branch/tag of the executed repository |
java.lang.String |
runName Run name |
java.nio.file.Path |
scriptFile The main script file path |
java.lang.String |
scriptId The script unique hash key |
java.lang.String |
scriptName The main script name |
java.util.UUID |
sessionId The current sessionId |
java.util.Date |
start Timestamp at workflow execution start |
boolean |
success Reports if the execution completed successfully |
java.nio.file.Path |
workDir Workflow working directory |
Constructor and description |
---|
WorkflowMetadata
(ScriptRunner owner) Initialise the available workflow properties |
Type Params | Return Type | Name and description |
---|---|---|
|
void |
invokeOnError(java.lang.Object trace) |
|
void |
onComplete(groovy.lang.Closure action) Implements the following idiom in the pipeline script: workflow.onComplete { // do something } |
|
void |
onError(groovy.lang.Closure action) Implements the following idiom in the pipeline script: workflow.onError { // do something } |
|
void |
setOnComplete(groovy.lang.Closure action) Implements the following idiom in the pipeline script: workflow.onComplete = { // do something } |
|
void |
setOnError(groovy.lang.Closure action) Implements the following idiom in the pipeline script: workflow.onError = { // do something } |
|
java.lang.String |
toString() @return Render the workflow properties |
Methods inherited from class | Name |
---|---|
class java.lang.Object |
java.lang.Object#wait(long, int), java.lang.Object#wait(long), java.lang.Object#wait(), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |
Command line as enter by the user to launch the workflow execution
Git commit ID of the executed repository
Timestamp at workflow execution complete
Docker image used to run workflow tasks. It report the docker image defined in the pipeline configuration. When more than an image is used it returns a java.util.Map object containing (process name, image name) pair entries.
Time elapsed to complete workflow execution
Error message of the task that caused the workflow execution to fail
Detailed error of the task that caused the workflow execution to fail
The exit status of the task that caused the workflow execution to fail
Directory where workflow execution has been launched
Nextflow runtime info, it includes the following entries:
The used configuration profile
Directory where workflow project is store on the computer
Project repository Git remote URL
Returns ``true`` whenever the current instance is resumed from a previous execution
Git branch/tag of the executed repository
Run name
The main script file path
The script unique hash key
The main script name
The current sessionId
Timestamp at workflow execution start
Reports if the execution completed successfully
Workflow working directory
Initialise the available workflow properties
owner
- An instance of ScriptRunnerImplements the following idiom in the pipeline script:
workflow.onComplete { // do something }
action
- The action handlerImplements the following idiom in the pipeline script:
workflow.onError { // do something }
Implements the following idiom in the pipeline script:
workflow.onComplete = { // do something }
action
- The action handlerImplements the following idiom in the pipeline script:
workflow.onError = { // do something }
action
- The action handler
Groovy Documentation