Applying Alterations
var alterations = new List<IAlteration>
{
new ModifyVariable
{
VariableId = "83fde420b5794bc39a0a7db725405511",
Value = "MyValue"
}
};
var workflowInstanceIds = new[] { "26cf02e60d4a4be7b99a8588b7ac3bb9" };
var runner = serviceProvider.GetRequiredService<IAlterationRunner>();
var results = await runner.RunAsync(workflowInstanceIds, alterations, cancellationToken);Resuming scheduled work
var dispatcher = serviceProvider.GetRequiredService<IAlteredWorkflowDispatcher>();
await dispatcher.DispatchAsync(results, cancellationToken);Service API versus HTTP API
Last updated