(Orchestration.V2)
- GetServerInfo - Get server info
- ListTriggers - List triggers
- CreateTrigger - Create trigger
- ReadTrigger - Read trigger
- DeleteTrigger - Delete trigger
- TestTrigger - Test trigger
- ListTriggersOccurrences - List triggers occurrences
- ListWorkflows - List registered workflows
- CreateWorkflow - Create workflow
- GetWorkflow - Get a flow by id
- DeleteWorkflow - Delete a flow by id
- RunWorkflow - Run workflow
- ListInstances - List instances of a workflow
- GetInstance - Get a workflow instance by id
- SendEvent - Send an event to a running workflow
- CancelEvent - Cancel a running workflow
- GetInstanceHistory - Get a workflow instance history by id
- GetInstanceStageHistory - Get a workflow instance stage history
Get server info
using formance;
using formance.Models.Components;
var sdk = new Formance(security: new Security() {
ClientID = "<YOUR_CLIENT_ID_HERE>",
ClientSecret = "<YOUR_CLIENT_SECRET_HERE>",
});
var res = await sdk.Orchestration.V2.GetServerInfoAsync();
// handle response
Error Type | Status Code | Content Type |
---|---|---|
formance.Models.Errors.V2Error | default | application/json |
formance.Models.Errors.SDKException | 4XX, 5XX | */* |
List triggers
using formance;
using formance.Models.Requests;
using formance.Models.Components;
var sdk = new Formance(security: new Security() {
ClientID = "<YOUR_CLIENT_ID_HERE>",
ClientSecret = "<YOUR_CLIENT_SECRET_HERE>",
});
var res = await sdk.Orchestration.V2.ListTriggersAsync(
cursor: "aHR0cHM6Ly9nLnBhZ2UvTmVrby1SYW1lbj9zaGFyZQ==",
pageSize: 100,
name: "<value>"
);
// handle response
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
Cursor |
string | ➖ | Parameter used in pagination requests. Set to the value of next for the next page of results. Set to the value of previous for the previous page of results. No other parameters can be set when this parameter is set. |
aHR0cHM6Ly9nLnBhZ2UvTmVrby1SYW1lbj9zaGFyZQ== |
PageSize |
long | ➖ | The maximum number of results to return per page. |
100 |
Name |
string | ➖ | search by name |
Models.Requests.V2ListTriggersResponse
Error Type | Status Code | Content Type |
---|---|---|
formance.Models.Errors.V2Error | default | application/json |
formance.Models.Errors.SDKException | 4XX, 5XX | */* |
Create trigger
using formance;
using formance.Models.Components;
using System.Collections.Generic;
var sdk = new Formance(security: new Security() {
ClientID = "<YOUR_CLIENT_ID_HERE>",
ClientSecret = "<YOUR_CLIENT_SECRET_HERE>",
});
V2TriggerData req = new V2TriggerData() {
Event = "<value>",
WorkflowID = "<id>",
};
var res = await sdk.Orchestration.V2.CreateTriggerAsync(req);
// handle response
Parameter | Type | Required | Description |
---|---|---|---|
request |
V2TriggerData | ✔️ | The request object to use for the request. |
Models.Requests.V2CreateTriggerResponse
Error Type | Status Code | Content Type |
---|---|---|
formance.Models.Errors.V2Error | default | application/json |
formance.Models.Errors.SDKException | 4XX, 5XX | */* |
Read trigger
using formance;
using formance.Models.Requests;
using formance.Models.Components;
var sdk = new Formance(security: new Security() {
ClientID = "<YOUR_CLIENT_ID_HERE>",
ClientSecret = "<YOUR_CLIENT_SECRET_HERE>",
});
var res = await sdk.Orchestration.V2.ReadTriggerAsync(triggerID: "<id>");
// handle response
Parameter | Type | Required | Description |
---|---|---|---|
TriggerID |
string | ✔️ | The trigger id |
Models.Requests.V2ReadTriggerResponse
Error Type | Status Code | Content Type |
---|---|---|
formance.Models.Errors.V2Error | default | application/json |
formance.Models.Errors.SDKException | 4XX, 5XX | */* |
Read trigger
using formance;
using formance.Models.Requests;
using formance.Models.Components;
var sdk = new Formance(security: new Security() {
ClientID = "<YOUR_CLIENT_ID_HERE>",
ClientSecret = "<YOUR_CLIENT_SECRET_HERE>",
});
var res = await sdk.Orchestration.V2.DeleteTriggerAsync(triggerID: "<id>");
// handle response
Parameter | Type | Required | Description |
---|---|---|---|
TriggerID |
string | ✔️ | The trigger id |
Error Type | Status Code | Content Type |
---|---|---|
formance.Models.Errors.V2Error | default | application/json |
formance.Models.Errors.SDKException | 4XX, 5XX | */* |
Test trigger
using formance;
using formance.Models.Requests;
using System.Collections.Generic;
using formance.Models.Components;
var sdk = new Formance(security: new Security() {
ClientID = "<YOUR_CLIENT_ID_HERE>",
ClientSecret = "<YOUR_CLIENT_SECRET_HERE>",
});
var res = await sdk.Orchestration.V2.TestTriggerAsync(
triggerID: "<id>",
requestBody: new Dictionary<string, object>() {
{ "key", "<value>" },
}
);
// handle response
Parameter | Type | Required | Description |
---|---|---|---|
TriggerID |
string | ✔️ | The trigger id |
RequestBody |
Dictionary<String, object> | ➖ | N/A |
Error Type | Status Code | Content Type |
---|---|---|
formance.Models.Errors.V2Error | default | application/json |
formance.Models.Errors.SDKException | 4XX, 5XX | */* |
List triggers occurrences
using formance;
using formance.Models.Requests;
using formance.Models.Components;
var sdk = new Formance(security: new Security() {
ClientID = "<YOUR_CLIENT_ID_HERE>",
ClientSecret = "<YOUR_CLIENT_SECRET_HERE>",
});
var res = await sdk.Orchestration.V2.ListTriggersOccurrencesAsync(
triggerID: "<id>",
cursor: "aHR0cHM6Ly9nLnBhZ2UvTmVrby1SYW1lbj9zaGFyZQ==",
pageSize: 100
);
// handle response
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
TriggerID |
string | ✔️ | The trigger id | |
Cursor |
string | ➖ | Parameter used in pagination requests. Set to the value of next for the next page of results. Set to the value of previous for the previous page of results. No other parameters can be set when this parameter is set. |
aHR0cHM6Ly9nLnBhZ2UvTmVrby1SYW1lbj9zaGFyZQ== |
PageSize |
long | ➖ | The maximum number of results to return per page. |
100 |
Models.Requests.V2ListTriggersOccurrencesResponse
Error Type | Status Code | Content Type |
---|---|---|
formance.Models.Errors.V2Error | default | application/json |
formance.Models.Errors.SDKException | 4XX, 5XX | */* |
List registered workflows
using formance;
using formance.Models.Requests;
using formance.Models.Components;
var sdk = new Formance(security: new Security() {
ClientID = "<YOUR_CLIENT_ID_HERE>",
ClientSecret = "<YOUR_CLIENT_SECRET_HERE>",
});
var res = await sdk.Orchestration.V2.ListWorkflowsAsync(
cursor: "aHR0cHM6Ly9nLnBhZ2UvTmVrby1SYW1lbj9zaGFyZQ==",
pageSize: 100
);
// handle response
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
Cursor |
string | ➖ | Parameter used in pagination requests. Set to the value of next for the next page of results. Set to the value of previous for the previous page of results. No other parameters can be set when this parameter is set. |
aHR0cHM6Ly9nLnBhZ2UvTmVrby1SYW1lbj9zaGFyZQ== |
PageSize |
long | ➖ | The maximum number of results to return per page. |
100 |
Models.Requests.V2ListWorkflowsResponse
Error Type | Status Code | Content Type |
---|---|---|
formance.Models.Errors.V2Error | default | application/json |
formance.Models.Errors.SDKException | 4XX, 5XX | */* |
Create a workflow
using formance;
using formance.Models.Components;
using System.Collections.Generic;
var sdk = new Formance(security: new Security() {
ClientID = "<YOUR_CLIENT_ID_HERE>",
ClientSecret = "<YOUR_CLIENT_SECRET_HERE>",
});
V2CreateWorkflowRequest req = new V2CreateWorkflowRequest() {
Stages = new List<Dictionary<string, object>>() {
new Dictionary<string, object>() {
{ "key", "<value>" },
},
},
};
var res = await sdk.Orchestration.V2.CreateWorkflowAsync(req);
// handle response
Parameter | Type | Required | Description |
---|---|---|---|
request |
V2CreateWorkflowRequest | ✔️ | The request object to use for the request. |
Models.Requests.V2CreateWorkflowResponse
Error Type | Status Code | Content Type |
---|---|---|
formance.Models.Errors.V2Error | default | application/json |
formance.Models.Errors.SDKException | 4XX, 5XX | */* |
Get a flow by id
using formance;
using formance.Models.Requests;
using formance.Models.Components;
var sdk = new Formance(security: new Security() {
ClientID = "<YOUR_CLIENT_ID_HERE>",
ClientSecret = "<YOUR_CLIENT_SECRET_HERE>",
});
var res = await sdk.Orchestration.V2.GetWorkflowAsync(flowId: "xxx");
// handle response
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
FlowId |
string | ✔️ | The flow id | xxx |
Models.Requests.V2GetWorkflowResponse
Error Type | Status Code | Content Type |
---|---|---|
formance.Models.Errors.V2Error | default | application/json |
formance.Models.Errors.SDKException | 4XX, 5XX | */* |
Delete a flow by id
using formance;
using formance.Models.Requests;
using formance.Models.Components;
var sdk = new Formance(security: new Security() {
ClientID = "<YOUR_CLIENT_ID_HERE>",
ClientSecret = "<YOUR_CLIENT_SECRET_HERE>",
});
var res = await sdk.Orchestration.V2.DeleteWorkflowAsync(flowId: "xxx");
// handle response
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
FlowId |
string | ✔️ | The flow id | xxx |
Error Type | Status Code | Content Type |
---|---|---|
formance.Models.Errors.V2Error | default | application/json |
formance.Models.Errors.SDKException | 4XX, 5XX | */* |
Run workflow
using formance;
using formance.Models.Requests;
using System.Collections.Generic;
using formance.Models.Components;
var sdk = new Formance(security: new Security() {
ClientID = "<YOUR_CLIENT_ID_HERE>",
ClientSecret = "<YOUR_CLIENT_SECRET_HERE>",
});
var res = await sdk.Orchestration.V2.RunWorkflowAsync(
workflowID: "xxx",
wait: false,
requestBody: new Dictionary<string, string>() {
{ "key", "<value>" },
}
);
// handle response
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
WorkflowID |
string | ✔️ | The flow id | xxx |
Wait |
bool | ➖ | Wait end of the workflow before return | |
RequestBody |
Dictionary<String, string> | ➖ | N/A |
Models.Requests.V2RunWorkflowResponse
Error Type | Status Code | Content Type |
---|---|---|
formance.Models.Errors.V2Error | default | application/json |
formance.Models.Errors.SDKException | 4XX, 5XX | */* |
List instances of a workflow
using formance;
using formance.Models.Requests;
using formance.Models.Components;
var sdk = new Formance(security: new Security() {
ClientID = "<YOUR_CLIENT_ID_HERE>",
ClientSecret = "<YOUR_CLIENT_SECRET_HERE>",
});
var res = await sdk.Orchestration.V2.ListInstancesAsync(
cursor: "aHR0cHM6Ly9nLnBhZ2UvTmVrby1SYW1lbj9zaGFyZQ==",
pageSize: 100,
workflowID: "xxx",
running: true
);
// handle response
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
Cursor |
string | ➖ | Parameter used in pagination requests. Set to the value of next for the next page of results. Set to the value of previous for the previous page of results. No other parameters can be set when this parameter is set. |
aHR0cHM6Ly9nLnBhZ2UvTmVrby1SYW1lbj9zaGFyZQ== |
PageSize |
long | ➖ | The maximum number of results to return per page. |
100 |
WorkflowID |
string | ➖ | A workflow id | xxx |
Running |
bool | ➖ | Filter running instances | true |
Error Type | Status Code | Content Type |
---|---|---|
formance.Models.Errors.V2Error | default | application/json |
formance.Models.Errors.SDKException | 4XX, 5XX | */* |
Get a workflow instance by id
using formance;
using formance.Models.Requests;
using formance.Models.Components;
var sdk = new Formance(security: new Security() {
ClientID = "<YOUR_CLIENT_ID_HERE>",
ClientSecret = "<YOUR_CLIENT_SECRET_HERE>",
});
var res = await sdk.Orchestration.V2.GetInstanceAsync(instanceID: "xxx");
// handle response
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
InstanceID |
string | ✔️ | The instance id | xxx |
Error Type | Status Code | Content Type |
---|---|---|
formance.Models.Errors.V2Error | default | application/json |
formance.Models.Errors.SDKException | 4XX, 5XX | */* |
Send an event to a running workflow
using formance;
using formance.Models.Requests;
using formance.Models.Components;
var sdk = new Formance(security: new Security() {
ClientID = "<YOUR_CLIENT_ID_HERE>",
ClientSecret = "<YOUR_CLIENT_SECRET_HERE>",
});
var res = await sdk.Orchestration.V2.SendEventAsync(
instanceID: "xxx",
requestBody: new V2SendEventRequestBody() {
Name = "<value>",
}
);
// handle response
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
InstanceID |
string | ✔️ | The instance id | xxx |
RequestBody |
V2SendEventRequestBody | ➖ | N/A |
Error Type | Status Code | Content Type |
---|---|---|
formance.Models.Errors.V2Error | default | application/json |
formance.Models.Errors.SDKException | 4XX, 5XX | */* |
Cancel a running workflow
using formance;
using formance.Models.Requests;
using formance.Models.Components;
var sdk = new Formance(security: new Security() {
ClientID = "<YOUR_CLIENT_ID_HERE>",
ClientSecret = "<YOUR_CLIENT_SECRET_HERE>",
});
var res = await sdk.Orchestration.V2.CancelEventAsync(instanceID: "xxx");
// handle response
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
InstanceID |
string | ✔️ | The instance id | xxx |
Error Type | Status Code | Content Type |
---|---|---|
formance.Models.Errors.V2Error | default | application/json |
formance.Models.Errors.SDKException | 4XX, 5XX | */* |
Get a workflow instance history by id
using formance;
using formance.Models.Requests;
using formance.Models.Components;
var sdk = new Formance(security: new Security() {
ClientID = "<YOUR_CLIENT_ID_HERE>",
ClientSecret = "<YOUR_CLIENT_SECRET_HERE>",
});
var res = await sdk.Orchestration.V2.GetInstanceHistoryAsync(instanceID: "xxx");
// handle response
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
InstanceID |
string | ✔️ | The instance id | xxx |
Error Type | Status Code | Content Type |
---|---|---|
formance.Models.Errors.V2Error | default | application/json |
formance.Models.Errors.SDKException | 4XX, 5XX | */* |
Get a workflow instance stage history
using formance;
using formance.Models.Requests;
using formance.Models.Components;
var sdk = new Formance(security: new Security() {
ClientID = "<YOUR_CLIENT_ID_HERE>",
ClientSecret = "<YOUR_CLIENT_SECRET_HERE>",
});
var res = await sdk.Orchestration.V2.GetInstanceStageHistoryAsync(
instanceID: "xxx",
number: 0
);
// handle response
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
InstanceID |
string | ✔️ | The instance id | xxx |
Number |
long | ✔️ | The stage number | 0 |
V2GetInstanceStageHistoryResponse
Error Type | Status Code | Content Type |
---|---|---|
formance.Models.Errors.V2Error | default | application/json |
formance.Models.Errors.SDKException | 4XX, 5XX | */* |