Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft: Port: Add UnknownActivityAborted session #98

Open
wants to merge 6 commits into
base: dev
Choose a base branch
from

Conversation

1nf0rmagician
Copy link
Member

Ports: #95

Toxantron and others added 6 commits September 9, 2024 08:48
Session context struct avoids changes on previos sequence
Port Session context struct avoids changes on previos sequence to MORYX 6
The new type is a session-wrapper for activities that should be aborted, but for which the session is unknown for a cell. It can be created and uses a new session context.
@1nf0rmagician 1nf0rmagician added the enhancement New feature or request label Dec 2, 2024
@1nf0rmagician 1nf0rmagician requested a review from a team December 2, 2024 13:07
@1nf0rmagician 1nf0rmagician self-assigned this Dec 2, 2024
@1nf0rmagician 1nf0rmagician changed the title Port: Add UnknownActivityAborted session Draft: Port: Add UnknownActivityAborted session Dec 2, 2024
/// <param name="unknown"></param>
public static UnknownActivityAborted WrapUnknownActivity(IActivity unknown)
{
unknown.Fail();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why is the unknown activity failed here and also in the UnknownActivityAborted constructor?

@@ -46,10 +46,11 @@ public void TestCreateActivityStart()
{
var readyToWork = Session.StartSession(ActivityClassification.Production, ReadyToWorkType.Pull, 4242);

var activityStart = readyToWork.StartActivity(new DummyActivity { Process = new Process() });
var activityStart = readyToWork.StartActivity(new DummyActivity { Process = new Process { Id = 4242 } });
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why this change and is the UnknownActivityAborted tested somewhere?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants