Netflix / glisten

Ease of use Groovy library for building JVM applications with Amazon Simple Workflow (SWF)
Apache License 2.0
67 stars 31 forks source link

Continuous workflows #34

Open bsideup opened 9 years ago

bsideup commented 9 years ago

Hi!

How can I implement continuous workflows with Glisten?

With normal sdk it's http://docs.aws.amazon.com/amazonswf/latest/awsflowguide/continuous.html

Thanks!

claymccoy commented 9 years ago

Have you tried using ContinueAsNewWorkflowSelfClient in a workflow like the example referenced? I would expect this to work. Glisten could be extended to add an abstraction around the implementation of this in WorflowOperations so that different implementation could be provided (a unit test one for instance). This should be similar to starting child workflows, which also needs to be added.

bsideup commented 9 years ago

Hi @claymccoy,

Thanks for you response!

ContinueAsNewWorkflowSelfClient is aspect-generated client for workflow, and as far as I know main idea of Glisten is not to use aspects at all.

Any ETA on child workflows and other things?

Btw, I got some progress with it using low-level API and can post example, but I need your help because I'm not sure in implementation.

claymccoy commented 9 years ago

What part of it is aspect generated? The class is just initialized and called.

Not ETA for child workflows. There is a separate Github issue for it. We just haven't needed it yet for our uses.