Example #1
0
def decision_task_from_description(description):
    token = description.get('taskToken', None)
    if not token:
        return None

    process = AmazonSWFProcess.from_description(description)
    return DecisionTask(process, context={'token': token})
 def _process_from_description(self, description):
     # get and fill in event history
     history = self._workflow_execution_history(description)
     description.update(history)
     process = AmazonSWFProcess.from_description(description)
     return process
 def _process_from_description(self, description):
     # get and fill in event history
     history = self._workflow_execution_history(description)
     description.update(history)
     process = AmazonSWFProcess.from_description(description)
     return process