1. Overview of the String Processing Mechanism
- a. String literal (Primitive Value)
- b. String Object
- You can also use Java's string methods, with "new java.lang.String()".
- Be careful when using methods with different behaviours (for example, regular expressions, arrays, etc.)
2. Overview of Practical Examples of String Processing
- a. Concatenation
- Connecting string to string.
- b. Substring
- Extracting a portion of a string.
- c. Replacement
- Replacement of text letter case, replacement by Regular Expression, etc.
- In accordance with ECMAScript provisions a plus sign "+" will always be the String Concatenator when either one is a string
3. Configure ECMAScript on a Script Task
- 1. Write a Function that References Business Data
- Use a unique reference expression; For example: var tmp = engine.findDataByNumber("99").
- 2. Write a Script for Processing a String
- Write a string manipulation script that conforms to ECMA.
- 3. Write a Function for Overwriting Business Data
- Use a unique assignment expression; For example: engine.setDataByNumber("99", tmp).
- Assignment and overwriting of Business Data will be performed collectively after the script processing is completed
- Assignment and overwriting will not be performed in the event of an error (go to the next processing Step)
- The processing time of scripts is limited to 5 seconds (It will vary a little according to the load condition)