Package bscw ::
Package api ::
Package Tasks ::
Module ap_addwbtask
|
|
Module ap_addwbtask
Add a task,
return id of new task.
API definition::
API = (('target_id', 'ASCII string', 1),
('name', 'Unicode string', 1),
('input', 'array', 0, [('datafield', 'struct', 1, [('name', 'Unicode string', 1),
('alternative', 'Unicode string', 0),
('obligation', 'int', 0),
('transparent', 'boolean', 0)])]),
('output', 'array', 0, [('datafield', 'struct', 1, [('name', 'Unicode string', 1),
('alternative', 'Unicode string', 0),
('obligation', 'int', 0),
('transparent', 'boolean', 0)])]),
('contractors', 'array', 0, [('user_name', 'ASCII string', 1)]),
('description', 'Unicode string', 0),
('duration', 'int', 0))
(c) Orbiteam Software GmbH, 2003
|
param_def()
Return the parameter definition. |
|
|
|
do_it(request,
target_id,
name,
input,
output,
contractors,
description='
' ,
duration=None)
See above. |
|
|
|
add_task(request,
target,
name,
infields,
outfields,
contractors,
description,
duration)
Add a new task to target, return new task (for user requests). |
|
|
|
__package__ = ' bscw.api.Tasks '
|
add_task(request,
target,
name,
infields,
outfields,
contractors,
description,
duration)
|
|
Add a new task to target, return new task (for user requests).
Arguments: target: folder or task to which the new task is to be added
name: name of new task infields: input fields of new task outfields:
output fields of new task contractors: the prospective contractors of new
task description: an (optional) description of the new task duration: an
(optional) expected duration of the new task in days (int)
|