-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into madu/impl-cim-xml-rsm012-parser
- Loading branch information
Showing
35 changed files
with
296 additions
and
214 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
29 changes: 29 additions & 0 deletions
29
source/ProcessManager.Core/Application/Orchestration/IOrchestrationInstanceExecutor.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,29 @@ | ||
// Copyright 2020 Energinet DataHub A/S | ||
// | ||
// Licensed under the Apache License, Version 2.0 (the "License2"); | ||
// you may not use this file except in compliance with the License. | ||
// You may obtain a copy of the License at | ||
// | ||
// http://www.apache.org/licenses/LICENSE-2.0 | ||
// | ||
// Unless required by applicable law or agreed to in writing, software | ||
// distributed under the License is distributed on an "AS IS" BASIS, | ||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
// See the License for the specific language governing permissions and | ||
// limitations under the License. | ||
|
||
using Energinet.DataHub.ProcessManagement.Core.Domain.OrchestrationDescription; | ||
using Energinet.DataHub.ProcessManagement.Core.Domain.OrchestrationInstance; | ||
|
||
namespace Energinet.DataHub.ProcessManagement.Core.Application.Orchestration; | ||
|
||
/// <summary> | ||
/// Abstracts the execution of orchestration instances from technology specific implementations. | ||
/// </summary> | ||
internal interface IOrchestrationInstanceExecutor | ||
{ | ||
/// <summary> | ||
/// Start a new orchestration instance. | ||
/// </summary> | ||
Task StartNewOrchestrationInstanceAsync(OrchestrationDescription orchestrationDescription, OrchestrationInstance orchestrationInstance); | ||
} |
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
50 changes: 50 additions & 0 deletions
50
source/ProcessManager.Core/Application/Orchestration/IOrchestrationInstanceRepository.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,50 @@ | ||
// Copyright 2020 Energinet DataHub A/S | ||
// | ||
// Licensed under the Apache License, Version 2.0 (the "License2"); | ||
// you may not use this file except in compliance with the License. | ||
// You may obtain a copy of the License at | ||
// | ||
// http://www.apache.org/licenses/LICENSE-2.0 | ||
// | ||
// Unless required by applicable law or agreed to in writing, software | ||
// distributed under the License is distributed on an "AS IS" BASIS, | ||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
// See the License for the specific language governing permissions and | ||
// limitations under the License. | ||
|
||
using Energinet.DataHub.ProcessManagement.Core.Domain.OrchestrationInstance; | ||
using NodaTime; | ||
|
||
namespace Energinet.DataHub.ProcessManagement.Core.Application.Orchestration; | ||
|
||
internal interface IOrchestrationInstanceRepository | ||
{ | ||
/// <summary> | ||
/// Use <see cref="IUnitOfWork.CommitAsync"/> to save changes. | ||
/// </summary> | ||
public IUnitOfWork UnitOfWork { get; } | ||
|
||
/// <summary> | ||
/// Add the orchestration instance. | ||
/// To commit changes use <see cref="UnitOfWork"/>. | ||
/// </summary> | ||
Task AddAsync(OrchestrationInstance orchestrationInstance); | ||
|
||
/// <summary> | ||
/// Get existing orchestration instance. | ||
/// To commit changes use <see cref="UnitOfWork"/>. | ||
/// </summary> | ||
Task<OrchestrationInstance> GetAsync(OrchestrationInstanceId id); | ||
|
||
/// <summary> | ||
/// Get all orchestration instances filtered by their related orchestration definition name and version, | ||
/// and their lifecycle / termination states. | ||
/// </summary> | ||
Task<IReadOnlyCollection<OrchestrationInstance>> SearchAsync( | ||
string name, | ||
int? version, | ||
OrchestrationInstanceLifecycleStates? lifecycleState, | ||
OrchestrationInstanceTerminationStates? terminationState, | ||
Instant? startedAtOrLater, | ||
Instant? terminatedAtOrEarlier); | ||
} |
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
Oops, something went wrong.