-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #6 from wmeints/improve-workflow-behavior
Improve workflow structure
- Loading branch information
Showing
13 changed files
with
81 additions
and
36 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
7 changes: 6 additions & 1 deletion
7
apps/orchestrator/PaperBoy.Orchestrator/Activities/ScorePaperActivityInput.cs
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 |
---|---|---|
@@ -1,3 +1,8 @@ | ||
namespace PaperBoy.Orchestrator.Activities; | ||
|
||
public record ScorePaperActivityInput(Guid PaperId); | ||
/// <summary> | ||
/// Input information for the <see cref="ScorePaperActivityInput"/> | ||
/// </summary> | ||
/// <param name="Title">Title of the paper.</param> | ||
/// <param name="Summary">Summary for the paper.</param> | ||
public record ScorePaperActivityInput(string Title, string Summary); |
5 changes: 5 additions & 0 deletions
5
apps/orchestrator/PaperBoy.Orchestrator/Activities/ScorePaperActivityOutput.cs
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 |
---|---|---|
@@ -1,3 +1,8 @@ | ||
namespace PaperBoy.Orchestrator.Activities; | ||
|
||
/// <summary> | ||
/// Output of the <see cref="ScorePaperActivity"/> | ||
/// </summary> | ||
/// <param name="Score">Score received for the paper.</param> | ||
/// <param name="Explanation">Explanation of the score.</param> | ||
public record ScorePaperActivityOutput(int Score, string Explanation); |
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
3 changes: 3 additions & 0 deletions
3
apps/orchestrator/PaperBoy.Orchestrator/Activities/SubmitPaperDescriptionActivityInput.cs
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,3 @@ | ||
namespace PaperBoy.Orchestrator.Activities; | ||
|
||
public record SubmitPaperDescriptionActivityInput(Guid PaperId, string PaperDescription); |
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
11 changes: 9 additions & 2 deletions
11
apps/orchestrator/PaperBoy.Orchestrator/Activities/SummarizePaperActivityInput.cs
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 |
---|---|---|
@@ -1,3 +1,10 @@ | ||
namespace PaperBoy.Orchestrator.Activities; | ||
using PaperBoy.Orchestrator.Models; | ||
|
||
public record SummarizePaperActivityInput(Guid PaperId); | ||
namespace PaperBoy.Orchestrator.Activities; | ||
|
||
/// <summary> | ||
/// Input for the <see cref="SummarizePaperActivity"/>. | ||
/// </summary> | ||
/// <param name="PaperTitle">Title of the paper.</param> | ||
/// <param name="PageSummaries">Summaries of all pages in the paper.</param> | ||
public record SummarizePaperActivityInput(string PaperTitle, List<PageSummary> PageSummaries); |
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