Skip to content

Execution outputs #202

@krystian-panek-vmltech

Description

@krystian-panek-vmltech

imagine:

boolean canRun() {
    return conditions.always()
}

void doRun() { 
    def output = outputs.file { // or outputs.data() {
       label = "Report"
       description = "Users report generated as CSV file"
       downloadFileName = "report.csv"
   } 

    def users = [] // outsourced
    for (def user : users) {
           output.println("${user.name};${user.surname};${user.birth}") // John;Doe;1991
    }
}

that will cause that GUI will display download buttons for "report.csv" on the execution view

If output ID is skipped then "default" is assumed

to have consistent API logically arguments will be renamed to inputs so it will be breaking change (this should be the last breaking change before 1.0.0 planned soon)

Metadata

Metadata

Assignees

No one assigned

    Labels

    new featurecompletely new feature / not an update to existing one

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions