- Newest
- Most votes
- Most comments
You are correct that AWS are recommending using Step Functions instead of SWF. And with the improvements made in the former in recent years, especially the massive increase in services it integrates with, it really is a good idea.
Hi DTorre,
Please Try the below solution i hope it will helps to resolve your issue.
1. AWS SDK for .NET Documentation
- While specific SWF tutorials might be sparse, the AWS SDK for .NET documentation can help you understand how to use SWF with C#:
AWS SDK for .NET Documentation https://docs.aws.amazon.com/sdk-for-net/v3/developer-guide/welcome.html
2. Old GitHub Repositories
- If you found old GitHub repositories from Amazon, try exploring the history of the repository to see if you can access previous versions of the Samples folder:
AWS SDK for .NET GitHub Repository
https://github.com/aws/aws-sdk-net
3. Using SWF with AWS SDK for .NET
- Here’s a basic example of how to start a workflow execution using SWF with the AWS SDK for .NET:
using Amazon;
using Amazon.SimpleWorkflow;
using Amazon.SimpleWorkflow.Model;
class Program
{
static void Main(string[] args)
{
var client = new AmazonSimpleWorkflowClient(RegionEndpoint.USEast1);
var request = new StartWorkflowExecutionRequest
{
Domain = "your-domain",
WorkflowId = "your-workflow-id",
WorkflowType = new WorkflowType
{
Name = "your-workflow-name",
Version = "1.0"
},
TaskList = new TaskList
{
Name = "default"
},
Input = "your-input"
};
StartWorkflowExecutionResponse response = client.StartWorkflowExecution(request);
Console.WriteLine("Workflow started with RunId: " + response.Run.RunId);
}
}
4. AWS Forums and Community
- You can ask for help or find examples in the AWS Developer Forums or Stack Overflow. The community might have shared projects or code snippets:
https://repost.aws/forums?newRedirect=1&origin=/index.jspa
https://stackoverflow.com/questions/tagged/amazon-swf
5. Third-Party Tutorials
Look for third-party blogs or tutorials. Although they might not be from AWS, they can provide valuable insights and examples:
- Search for blogs or tutorials on sites like Medium, Dev.to, or GitHub.
Relevant content
- asked 4 years ago
- asked 4 years ago
- asked 7 years ago
