UpdateCaseDeadline
TIBCO iProcess Workspace (Browser)
TIBCO iProcess Workspace (Windows)
Update an existing case deadline.
Syntax
UpdateCaseDeadline (procname, casenum, deadname, eventname, deadline)
where:
| • | procname(text) is the procedure name. A null value indicates the current procedure name. |
| • | casenum(numeric) is the case number. A value of 0 indicates the current case. |
| • | deadname(text) is the deadline name. |
| • | eventname(text) is the name of the event step. |
| • | deadline(text) is the time period and can be in one of the following formats: |
|
Type |
Format |
|
Period |
|
|
Expression |
|
| • | For the Period type deadline, each field cannot be omitted. If the values of some fields are null, set them to 0. For example, "2^0^0^0^0^0". |
| • | For the Expression type deadline, a field can be omitted if the value of the field is null, but the caret (^) is necessary. For example, "SW_DATE^" or "^SW_TIME". |
For more information on updating case deadline, see "Case Deadline Setting" in TIBCO iProcess Modeler Procedure Management.
Returns
One of the following numeric values:
|
Value |
Description |
|
1 |
Success. |
|
-100 |
Invalid or unknown procedure. |
|
-101 |
Invalid or unknown event step. |
|
-102 |
Invalid or unknown case number. |
|
-104 |
The type of event is not valid. |
|
-107 |
The specified case has terminated. |
|
-108 |
Unknown error from server. |
|
-109 |
Invalid or unknown parameters. |
|
-112 |
The deadline does not exist. |
|
-113 |
Invalid deadline value. |
Examples
TIBCO iProcess Modeler:
-
This example updates a period deadline:
UpdateCaseDeadline("TEST", 111 ,"WARNDEAD", "WARNEV", "2^1^1^1^1^2");Or
UpdateCaseDeadline("", 0, "WARNDEAD", "WARNEV", "2^1^1^1^1^2"); -
This example updates an expression deadline:
UpdateCaseDeadline("TEST", 111, "WARNDEAD", "WARNEV", "SW_DATE^SW_TIME+5");Or
UpdateCaseDeadline("", 0, "WARNDEAD", "WARNEV", "SW_DATE^SW_TIME+5");Or
UpdateCaseDeadline("", 0, "WARNDEAD", "WARNEV", "Date^Time");
(Where, Date is the name of a Date type field, Time is the name of a Time type field.)
TIBCO Business Studio
-
Equivalent of iProcess Example 1:
IPEProcessUtil.
UpdateCaseDeadline("TEST", 111, "WARNDEAD", "WARNEV", "2^1^1^1^1^2");Or
IPEProcessUtil.UpdateCaseDeadline("", 0, "WARNDEAD", "WARNEV", "2^1^1^1^1^2"); -
Equivalent of iProcess Example 2:
IPEProcessUtil.UpdateCaseDeadline("TEST", 111, "WARNDEAD", "WARNEV", "SW_DATE^SW_TIME+5");Or
IPEProcessUtil.UpdateCaseDeadline("", 0, "WARNDEAD", "WARNEV", "SW_DATE^SW_TIME+5");