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

ActivityName as expression. It solves #542 issue. (Activity Compound Key) #838

Merged
merged 5 commits into from
Aug 27, 2022

Conversation

alimozdemir
Copy link
Contributor

Describe the change
The event type of Activity only requires a name which is equal to eventKey of WaitFor. Currently, the name is just a value. In that case, when an activity enqueued the first activity will be processed (GetFirstOpenSubscription).

The PR includes an overload method for Activity. Allows the developer the customize their eventKey for activities. In the Sample20, I changed the activityName to a compound key. (e.g. get-approval to get-approval-{workflowId})

The issue #542 will be fixed with this PR.

Describe your implementation or design
How did you go about implementing the change?

Only added an overload method for Activity with Expression<Func<TData, IStepExecutionContext, string>> activityName.

Tests
Did you cover your changes with tests?
Yes

Breaking change
Do you changes break compatibility with previous versions?
No

Additional context
Any additional information you'd like to provide?
No

@sunilsoniudaipur
Copy link

Sometimes if we can write like this it is also works

.Activity("",data=>DateTime.Now) .Input(step=>step.ActivityName, data=>data.UniqueId) Input(step=>step.EffectiveDate,data=>DateTime.Now)

@alimozdemir
Copy link
Contributor Author

The PR build keep failing due to tests. (1 hour limit). Should I do something about it ?

@MathSee
Copy link

MathSee commented Jul 7, 2021

Is this change published on the last current nuget package available? (v3.5.1)

@danielgerlag
Copy link
Owner

No, we cannot merge until the tests are passing.

@alimozdemir
Copy link
Contributor Author

@danielgerlag The tests are failing due to time limit. I asked a question, it is not too hard to reply. Can I do something about it ? If you could answer the question, I would like to merge the PR.

@MathSee
Copy link

MathSee commented Jul 12, 2021

@danielgerlag please give it a look to the PR #864. It's an another proposal solution for the #542 issue.

@danielgerlag
Copy link
Owner

@lyzerk The tests run fine on the master branch, so something has changed that is breaking them, you would need to debug them on your branch.

@alimozdemir
Copy link
Contributor Author

@danielgerlag I have added a new test scenario. Therefore, it could increase the total execution time. I will remove the test scenario today.

@alimozdemir alimozdemir closed this Aug 2, 2021
@alimozdemir alimozdemir reopened this Aug 2, 2021
@danielgerlag danielgerlag merged commit 2e46c11 into danielgerlag:master Aug 27, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants