(Orchestration.V1 )
OrchestrationgetServerInfo
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 . V1 . OrchestrationgetServerInfoAsync ( ) ;
// handle response
OrchestrationgetServerInfoResponse
Error Type
Status Code
Content Type
formance.Models.Errors.Error
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 . V1 . ListTriggersAsync ( name : "<value>" ) ;
// handle response
Parameter
Type
Required
Description
Name
string
➖
search by name
Models.Requests.ListTriggersResponse
Error Type
Status Code
Content Type
formance.Models.Errors.Error
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>" ,
} ) ;
TriggerData req = new TriggerData ( ) {
Event = "<value>" ,
WorkflowID = "<id>" ,
} ;
var res = await sdk . Orchestration . V1 . CreateTriggerAsync ( req ) ;
// handle response
Parameter
Type
Required
Description
request
TriggerData
✔️
The request object to use for the request.
Models.Requests.CreateTriggerResponse
Error Type
Status Code
Content Type
formance.Models.Errors.Error
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 . V1 . ReadTriggerAsync ( triggerID : "<id>" ) ;
// handle response
Parameter
Type
Required
Description
TriggerID
string
✔️
The trigger id
Models.Requests.ReadTriggerResponse
Error Type
Status Code
Content Type
formance.Models.Errors.Error
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 . V1 . DeleteTriggerAsync ( triggerID : "<id>" ) ;
// handle response
Parameter
Type
Required
Description
TriggerID
string
✔️
The trigger id
DeleteTriggerResponse
Error Type
Status Code
Content Type
formance.Models.Errors.Error
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 . V1 . ListTriggersOccurrencesAsync ( triggerID : "<id>" ) ;
// handle response
Parameter
Type
Required
Description
TriggerID
string
✔️
The trigger id
Models.Requests.ListTriggersOccurrencesResponse
Error Type
Status Code
Content Type
formance.Models.Errors.Error
default
application/json
formance.Models.Errors.SDKException
4XX, 5XX
*/*
List registered workflows
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 . V1 . ListWorkflowsAsync ( ) ;
// handle response
Models.Requests.ListWorkflowsResponse
Error Type
Status Code
Content Type
formance.Models.Errors.Error
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>" ,
} ) ;
CreateWorkflowRequest req = new CreateWorkflowRequest ( ) {
Stages = new List < Dictionary < string , object > > ( ) {
new Dictionary < string , object > ( ) {
{ "key" , "<value>" } ,
} ,
} ,
} ;
var res = await sdk . Orchestration . V1 . CreateWorkflowAsync ( req ) ;
// handle response
Parameter
Type
Required
Description
request
CreateWorkflowRequest
✔️
The request object to use for the request.
Models.Requests.CreateWorkflowResponse
Error Type
Status Code
Content Type
formance.Models.Errors.Error
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 . V1 . GetWorkflowAsync ( flowId : "xxx" ) ;
// handle response
Parameter
Type
Required
Description
Example
FlowId
string
✔️
The flow id
xxx
Models.Requests.GetWorkflowResponse
Error Type
Status Code
Content Type
formance.Models.Errors.Error
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 . V1 . DeleteWorkflowAsync ( flowId : "xxx" ) ;
// handle response
Parameter
Type
Required
Description
Example
FlowId
string
✔️
The flow id
xxx
DeleteWorkflowResponse
Error Type
Status Code
Content Type
formance.Models.Errors.Error
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 . V1 . 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.RunWorkflowResponse
Error Type
Status Code
Content Type
formance.Models.Errors.Error
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 . V1 . ListInstancesAsync (
workflowID : "xxx" ,
running : true
) ;
// handle response
Parameter
Type
Required
Description
Example
WorkflowID
string
➖
A workflow id
xxx
Running
bool
➖
Filter running instances
true
ListInstancesResponse
Error Type
Status Code
Content Type
formance.Models.Errors.Error
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 . V1 . GetInstanceAsync ( instanceID : "xxx" ) ;
// handle response
Parameter
Type
Required
Description
Example
InstanceID
string
✔️
The instance id
xxx
GetInstanceResponse
Error Type
Status Code
Content Type
formance.Models.Errors.Error
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 . V1 . SendEventAsync (
instanceID : "xxx" ,
requestBody : new SendEventRequestBody ( ) {
Name = "<value>" ,
}
) ;
// handle response
Parameter
Type
Required
Description
Example
InstanceID
string
✔️
The instance id
xxx
RequestBody
SendEventRequestBody
➖
N/A
SendEventResponse
Error Type
Status Code
Content Type
formance.Models.Errors.Error
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 . V1 . CancelEventAsync ( instanceID : "xxx" ) ;
// handle response
Parameter
Type
Required
Description
Example
InstanceID
string
✔️
The instance id
xxx
CancelEventResponse
Error Type
Status Code
Content Type
formance.Models.Errors.Error
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 . V1 . GetInstanceHistoryAsync ( instanceID : "xxx" ) ;
// handle response
Parameter
Type
Required
Description
Example
InstanceID
string
✔️
The instance id
xxx
GetInstanceHistoryResponse
Error Type
Status Code
Content Type
formance.Models.Errors.Error
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 . V1 . GetInstanceStageHistoryAsync (
instanceID : "xxx" ,
number : 0
) ;
// handle response
Parameter
Type
Required
Description
Example
InstanceID
string
✔️
The instance id
xxx
Number
long
✔️
The stage number
0
GetInstanceStageHistoryResponse
Error Type
Status Code
Content Type
formance.Models.Errors.Error
default
application/json
formance.Models.Errors.SDKException
4XX, 5XX
*/*