Fix decision parameters: attributes are in foo*Decision*Attributes
This commit is contained in:
parent
417f732b53
commit
918cf8a4e3
2 changed files with 3 additions and 3 deletions
|
|
@ -286,7 +286,7 @@ class WorkflowExecution(object):
|
|||
# handle each decision separately, in order
|
||||
for decision in decisions:
|
||||
decision_type = decision["decisionType"]
|
||||
attributes_key = "{}EventAttributes".format(decapitalize(decision_type))
|
||||
attributes_key = "{}DecisionAttributes".format(decapitalize(decision_type))
|
||||
attributes = decision.get(attributes_key, {})
|
||||
if decision_type == "CompleteWorkflowExecution":
|
||||
self.complete(event_id, attributes.get("result"))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue