This REST request creates a new task instance and
adds it to the
Task Engine queue.
Use this HTTP request and include optional
parameters in the request body:
POST
/rest/pub/opentask
taskData
|
Map
Optional. The business data, if any, associated with this task. See
TaskData
for a description of the Map object used by
taskData.
|
taskInfo
|
TaskInfo
Optional. A complex structure that contains standard information about the task
(for example, name, expiration date, list of users to which the task is
assigned). See
TaskInfo
for a description of the fields in this object.
|
taskTypeID
|
String
Specifies the type of task that you want to queue. Each task type that is
deployed on the
Task Engine has a unique ID. This ID is assigned by the developer
when he or she creates a task application using
IBM webMethods Designer.
If you do not know the ID for the task
type that you want to queue, contact the
Task Engine administrator. An administrator can obtain a list of the
task types by viewing the
Task Configuration panel on the
Task Engine Administration page in
My webMethods.
Task type IDs are case-sensitive. The ID
in
taskTypeID must exactly match
the ID as it is specified on the
Task Engine.
|
user
|
String
Optional. The user ID of the
IBM My webMethods Server user on whose behalf this operation executes.
If
user
is not specified, the user ID under which your client program logged on is
used.
|
|
taskID
|
String
The identifier that the
Task Engine assigns to the task instance.
|
|
Usage Notes
The user ID specified in
user must
have permission to queue tasks on the
Task Engine. If the supplied ID does not have this permission, an
exception is generated.
If the date specified in taskScheduleDate is later than
the current date, the status of the task will be set to
scheduled
. When the
task starts or queues at the scheduled time, the global rule for task schedule
changes the status of the task from
scheduled
to
active
.