Skip to content

Commit

Permalink
Model for updating instance process state and events in 1 transaction (
Browse files Browse the repository at this point in the history
  • Loading branch information
martinothamar authored Nov 25, 2024
1 parent 61cd17a commit f9f46e0
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions src/Storage.Interface/Models/ProcessStateUpdate.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
using System.Collections.Generic;
using Newtonsoft.Json;

namespace Altinn.Platform.Storage.Interface.Models;

/// <summary>
/// Process state update including events
/// </summary>
[JsonObject(ItemNullValueHandling = NullValueHandling.Ignore)]
public class ProcessStateUpdate
{
/// <summary>
/// The state of the process
/// </summary>
[JsonProperty(PropertyName = "state")]
public ProcessState State { get; set; }

/// <summary>
/// The instance events produced during process/next
/// </summary>
[JsonProperty(PropertyName = "events")]
public List<InstanceEvent> Events { get; set; }
}

0 comments on commit f9f46e0

Please sign in to comment.