Skip to content

Commit

Permalink
Merge pull request #14 from EasyAbp/update-UpdateProcessStateModel
Browse files Browse the repository at this point in the history
Update `UpdateProcessStateModel`
  • Loading branch information
gdlcf88 authored Jun 30, 2024
2 parents fd3060e + 69b05cc commit 04ff2c1
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 7 deletions.
2 changes: 1 addition & 1 deletion common.props
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project>
<PropertyGroup>
<LangVersion>latest</LangVersion>
<Version>1.0.0-preview.1</Version>
<Version>1.0.0-preview.2</Version>
<NoWarn>$(NoWarn);CS1591;CS0436</NoWarn>
<AbpProjectType>module</AbpProjectType>
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
using System;
using Volo.Abp;
using Volo.Abp.MultiTenancy;

namespace EasyAbp.ProcessManagement.Processes;
Expand All @@ -8,14 +9,17 @@ public class UpdateProcessStateEto : UpdateProcessStateModel, IMultiTenant
{
public Guid? TenantId { get; set; }

public string CorrelationId { get; set; }

public UpdateProcessStateEto()

Check warning on line 14 in src/EasyAbp.ProcessManagement.Domain.Shared/EasyAbp/ProcessManagement/Processes/UpdateProcessStateEto.cs

View workflow job for this annotation

GitHub Actions / publish

Non-nullable property 'CorrelationId' must contain a non-null value when exiting constructor. Consider declaring the property as nullable.
{
}

public UpdateProcessStateEto(Guid? tenantId, string correlationId, string? actionName, ProcessStateFlag stateFlag,
string? stateSummaryText, DateTime stateUpdateTime, string stateName, string? stateDetailsText) : base(
correlationId, actionName, stateFlag, stateSummaryText, stateUpdateTime, stateName, stateDetailsText)
actionName, stateFlag, stateSummaryText, stateUpdateTime, stateName, stateDetailsText)
{
TenantId = tenantId;
CorrelationId = Check.NotNullOrWhiteSpace(correlationId, nameof(correlationId));
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@ namespace EasyAbp.ProcessManagement.Processes;
[Serializable]
public class UpdateProcessStateModel : ExtensibleObject, IProcessState
{
public string CorrelationId { get; set; }

public string? ActionName { get; set; }

public ProcessStateFlag StateFlag { get; set; }
Expand All @@ -25,10 +23,9 @@ public UpdateProcessStateModel()
{
}

public UpdateProcessStateModel(string correlationId, string? actionName, ProcessStateFlag stateFlag,
string? stateSummaryText, DateTime stateUpdateTime, string stateName, string? stateDetailsText)
public UpdateProcessStateModel(string? actionName, ProcessStateFlag stateFlag, string? stateSummaryText,
DateTime stateUpdateTime, string stateName, string? stateDetailsText)
{
CorrelationId = Check.NotNullOrWhiteSpace(correlationId, nameof(correlationId));
ActionName = actionName;
StateFlag = stateFlag;
StateSummaryText = stateSummaryText;
Expand Down

0 comments on commit 04ff2c1

Please sign in to comment.