AWS Simple Workflow Service (SWF): Gotchas

After spending a whole day debugging task lists routing and coordination; I realized that the reason I kept getting errors was:

  • task/activity registration parameters (e.g. defaultTaskList) are immutable.

Once I realized this, the fix was extremely simple — change activities version to force the new types.

In part, this issue could be alleviated by enabling log4j; you need to create src/main/resources.log4.prorperties:

# Set root logger level to DEBUG and its only appender to A1.
log4j.rootLogger=INFO, A1

# A1 is set to be a ConsoleAppender.
log4j.appender.A1=org.apache.log4j.ConsoleAppender

# A1 uses PatternLayout.
log4j.appender.A1.layout=org.apache.log4j.PatternLayout
log4j.appender.A1.layout.ConversionPattern=%-4r [%t] %-5p %c %x - %m%n

log4j.logger.com.amazonaws=TRACE

 

 

 

 

References:

https://forums.aws.amazon.com/thread.jspa?messageID=422295&#422295

https://github.com/aws/aws-sdk-java/issues/103

 

 

keywords (search bread crumbs):

amazon work flow

 

After spending several days debugging task routing; I finally stumbled upon this post — which made me realize that the reason that I wasn’t able to get the task routing working was the immutability of activity registration parameters.

Would it be possible to add an exception if there is an attempt to overwrite the immutable registration parameters? I have submitted this issue to the aws-sdk github.

I think mentioning immutability in the SWF docs would be quite beneficial as well.

p.s. I greatly enjoy using SWF; am surprised that it is not as widely used (or promoted) yet 
(am working on converting my colleagues)

Searched for aws tasklist routing 6:51am
 
  Amazon SWF FAQs – Amazon Web Services – amazon.com – Viewed 2 times 6:51am
 
Searched for aws tasklist asia pacific 6:50am
 
Searched for aws child workflow 6:31am
 
  Child Workflow Executions – AWS Flow… – amazon.com 6:30am
 
  AWS Developer Forums: How to invoke child… – amazon.com 6:30am
 
  Advanced Concepts in Amazon SWF – Amazon… – amazon.com 6:30am
 
  Introduction to AWS SimpleWorkflow Extensions… – theburningmonk.com 6:30am
 
  Jiaqi’s Blog: A dozen things to know… – cyclopsgroup.org – Viewed 7 times
Searched for aws flow task routing 5:30pm
 
Searched for aws flow routing task list 5:26pm
 
  Basic Concepts in Amazon SWF – Amazon… – amazon.com

 

Searched for poll pull method 12:15am
 
  Push technology – Wikipedia, the free… – wikipedia.org 12:15am
 
Searched for poll method 12:15am
 
Searched for poll queue 12:15am
 
Searched for AWS CloudFormation 12:05am
 
  AWS CloudFormation – Amazon Web Services – amazon.com
Searched for aws workflow task list 11:29pm
 
  Amazon Simple Workflow – Cloud-Based… – typepad.com 11:29pm
 
Searched for aws workflow tasklist 11:21pm
 
  Amazon SWF FAQs – Amazon Web Services – amazon.com – Viewed 2 times 11:22pm
 
  TaskList – Amazon Simple Workflow Service… – amazon.com 11:22pm
 
  AWS Developer Forums: Make activity Worker… – amazon.com
earched for aws workflow stays active 6:13pm
 
  AWS Workflow Tracking | Symantec Connect… – symantec.com 6:13pm
 
  AWS Simple Workflow Service (SWF) –… – newvem.com 6:13pm
 

 

 

 

 

 

 

About Neil Rubens

see http://ActiveIntelligence.org

This entry was posted in Uncategorized. Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *

*