|
PowerFolder 工作流服务器版本0.5 试驾之旅(5)(8) Description - create a collection of web values with the same name (webValue). Example - client.loadWebValues("ReviewedCases"); 3.2.5 Arithmetic数学 3.2.5.1 add加 Inputs - arguement1 (Decimal), arguement2 (Decimal) Return - (Decimal) Description - adds two Decimals together. You really don't need to use this function, you can use a simple '+' instead. Example - client.add(client.getDecimalValue("TotalAttendees"), 1); 3.2.5.2 divide除 Inputs - arguement1 (Decimal), argument2 (Decimal) Return - (Decimal) Description - divides (arguement1) by (arguement2). You really don't need to use this function, you can use a simple '/' instead. Example - client.divide(client.getDecimalValue("DogYears"), 12); 3.2.5.3 multiply乘 Inputs - arguement1 (Decimal), argument2 (Decimal) Return - (Decimal) Description - multiplies (arguement1) with (arguement2). You really don't need to use this function, you can use a simple '*' instead. Example - client.multiply(client.getDecimalValue("GallonsOfGas"), 1.59); 3.2.5.4 subtract减 Inputs - arguement1 (Decimal), argument2 (Decimal) Return - (Decimal) Description - subtract (arguement2) from (arguement1). You really don't need to use this function, you can use a simple '-' instead. Example - client.subtract(client.getDecimalValue("BankBalance"), 20); 3.2.6 Logical逻辑 3.2.6.1 and逻辑与 Inputs - arguement1 (Boolean), argument2 (Boolean) Return - (Boolean) Description - true if both (arguement1) and (arguement2) are both true, false otherwise. Example - client.and(client.getBooleanAttribute("collegeDegree"), client.getBooleanAttribute("speaksLatin")); 3.2.6.2 isEqual相等 Inputs - arguement1 (Decimal), argument2 (Decimal) Return - (Boolean) Description - true if (arguement1) and (arguement2) are equal, false otherwise. Example - client.isEqual(client.getDecimalAttribute("BlackjackHand"), 21); 3.2.6.3 isGreaterThan大于 Inputs - arguement1 (Decimal), argument2 (Decimal)
|