@classmethod
def from_generic_task(cls, task):
    """
        Casts a generic simpleflow.task.WorkflowTask into a SWF one.
        """
    return cls(task.executor, task.workflow, *task._args, **task._kwargs)
