GetActivitiesHistoryAsync
Definition
Retrieves execution records for all activities associated with the specified process instance.
C#
public Task<IEnumerable<ActivityHistory>> GetActivitiesHistoryAsync(string processInstanceId);
Parameters
processInstanceId String
The unique identifier of the process instance for which activity execution records are requested.
Returns
Task<IEnumerable<ActivityHistory>> A task that represents the asynchronous operation. The result is a collection of activity execution records associated with the specified process instance.
Example
C#
using IntelliBuddies.Client;
using IntelliBuddies.Client.Models;
namespace Example
{
public class Program
{
static async Task Main(string[] args)
{
string serverUrl = "http://demo.onintellibuddies.com";
string userName = "demo";
string password = "password";
using var context = new ControlRoomContext(serverUrl, AuthenticationType.Basic, userName, password);
context.Open();
string processInstanceId = "f39386dd675d49ca82229df7bcbbd394";
var activitiesHistory = await context.ProcessInstances.GetActivitiesHistoryAsync(processInstanceId);
}
}
}