def __init__(self, wf_spec, name, context, times=<NUM_LIT:1>, **kwargs):
assert wf_spec is not None<EOL>assert name is not None<EOL>assert context is not None<EOL>assert isinstance(context, list)<EOL>TaskSpec.__init__(self, wf_spec, name, **kwargs)<EOL>self.context = context<EOL>self.times = times<EOL>self.queued = <NUM_LIT:0><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  context: list(str)
:param context: A list of the names of tasks that are to be triggered.
:type  times: int or :class:`SpiffWorkflow.operators.Term`
:param times: The number of signals before the trigger fires.
:type  kwargs: dict
:param kwargs: See :class:`SpiffWorkflow.specs.TaskSpec`.