def __init__(self, wf_spec, name, success=False, **kwargs):
TaskSpec.__init__(self, wf_spec, name, **kwargs)<EOL>self.cancel_successfully = success<EOL>
Constructor.

:type  wf_spec: WorkflowSpec
:param wf_spec: A reference to the workflow specification.
:type  name: str
:param name: The name of the task spec.
:type  success: bool
:param success: Whether to cancel successfully or unsuccessfully.
:type  kwargs: dict
:param kwargs: See :class:`SpiffWorkflow.specs.TaskSpec`.