Skip to content

SWF Examples are missing

0

I was wondering where all of the SWF examples and tutorials have gone? As of right now, the documentation only has a Ruby example and the "Getting Started" project is no longer there. Nobody seems to be giving a proper tutorial online about how to get started with SWF in C#, other than one website that had a full tutorial but required you to download the template project in Visual Studio, which no longer exists. YouTube has been unhelpful, as all of those videos are explaining what SWF is, for your exams and none of them show code. I found an old GitHub repo from Amazon that had SWF code in it, but the Samples folder had since been deleted.

I know that the StepFunctions service is being advertised for workflows, but I liked the features that came with SWF. I'm finding it impossible to implement SWF in any capacity due to all of the documentation seeming to have been removed. It seems deliberate that Amazon is removing information about how to use the service. Are there any tutorials from Amazon about how to actually use SWF, or am I correct in my assumption that we're being gently guided towards StepFunctions?

asked 2 years ago329 views
2 Answers
1

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.

EXPERT
answered 2 years ago
0

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.
EXPERT
answered 2 years ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.