createDiscretionaryTaskWithProps operation
Creates a new activity instance of a discretionary activity type with the specified
properties.
| Parameter | Type | Description |
|---|---|---|
| caseId | String | The identifier of the case. You must set the expression for the caseID parameter to the F_CaseFolder business object field in the Expression Builder window. |
| discretionaryTaskSymbolicName | String | The symbolic name of the discretionary activity. The name format must be
PREFIX_ActivityName. This parameter is also used as the default activity name. If F_Subject is specified, that is used as the activity name instead (truncated to 64 characters). |
| taskPropertyNames | String[] | A String array of activity property symbolic names. If no properties need to be set, specify an empty string array {""}. |
| taskPropertyValues | String[] | A String array of property values. The list length must have the same length
as the taskPropertyNames parameter. Time values are expressed in the form
yyyy-MM-ddTHH:mm:ssZ. Multivalue properties are expressed in a string
representation of arrays. The parameters in the inner array should be surrounded by single quotes
('), not double quotes ("). The following example shows a possible entry in IBM®
FileNet® Process Designer for this argument:
|
| workflowParameterAuthoredNames | String[] | An array of parameter authored names to add to the launched workflow for the discretionary
activity. If no properties must be set, specify a null string {""} as an empty set.
F_Subject and F_Comment can be included. |
| workflowParameterValues | String[] | A String array of parameter values, if any, to add to the launched workflow
for the discretionary activity. Time values are expressed in the form MM/dd/yyyy
HH:mm:ss. Multivalue properties are expressed in a string representation of arrays. The
parameters in the inner array should be surrounded by single quotes ('), not double quotes ("). The
following example shows a possible entry in IBM
FileNet Process Designer for this
argument:
Process Engine-specific objects, such as Attachments or participants, can be passed into this argument, as they will be converted into a string automatically. If no properties need to be set, specify a null string {""} as an empty set. To specify an empty attachment, specify "||0|0||" for a single attachment and "{ "||0|0||" }" for an attachment array. |
| return_value | String | The GUID of the new activity. |