This library gives you a seemless integration of the Flowifier application into your code.
It allows you to:
- List all workflows for a specific organisation
- Retrieving the workflow details of a specific workflow
- Executing a workflow by creating a workflow instance
- Retrieving the workflow instance status
- Retrieving the workflow instance result if successful finished
This example shows you how to list all workflows for your organization.
var organizationId = '<YOUR-ORGANIZATION-ID>';
var organizationToken = '<YOUR-ORGANIZATION-ACCESS-TOKEN>';
var flowifier = new Flowifier(organizationId, organizationToken);
var workflows = await flowifier.GetWorkflows();
foreach (var workflow in workflows)
{
Console.WriteLine($"{workflow.Id}: {workflow.Name}");
}
This example shows you how to list execute a workflow.
var organizationId = '<YOUR-ORGANIZATION-ID>';
var organizationToken = '<YOUR-ORGANIZATION-ACCESS-TOKEN>';
var workflowId = '<YOUR-WORKFLOW-ID>';
var flowifier = new Flowifier(organizationId, organizationToken);
JObject contextObj = new JObject();
contextObj.Add("name", "John Doe");
contextObj.Add("age", 31);
var WorkflowInstance = await flowifier.ExecuteWorkflow(workflowId, contextObj);
Console.WriteLine($"New Workflow Instance Id: {WorkflowInstance.Id}");
dotnet add package Flowifier.Client