-
Notifications
You must be signed in to change notification settings - Fork 950
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(core): allow flow to define and expose outputs (#2133)
- Loading branch information
1 parent
9e1b660
commit 0fee77a
Showing
26 changed files
with
718 additions
and
104 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
36 changes: 36 additions & 0 deletions
36
core/src/main/java/io/kestra/core/models/flows/Output.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
package io.kestra.core.models.flows; | ||
|
||
import io.micronaut.core.annotation.Introspected; | ||
import lombok.Getter; | ||
import lombok.NoArgsConstructor; | ||
import lombok.experimental.SuperBuilder; | ||
|
||
import javax.validation.constraints.NotBlank; | ||
import javax.validation.constraints.NotNull; | ||
import javax.validation.constraints.Pattern; | ||
|
||
/** | ||
* Definition of a flow's output. | ||
*/ | ||
@SuperBuilder | ||
@Getter | ||
@NoArgsConstructor | ||
@Introspected | ||
public class Output { | ||
/** | ||
* The output's unique id. | ||
*/ | ||
@NotNull | ||
@NotBlank | ||
@Pattern(regexp = "^[a-zA-Z0-9][.a-zA-Z0-9_-]*") | ||
String id; | ||
/** | ||
* Short description of the output. | ||
*/ | ||
String description; | ||
/** | ||
* The output value. Can be a dynamic expression. | ||
*/ | ||
@NotNull | ||
Object value; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.