Under the standard allocation rule settings Users must undertake the Issues listed in [Offered]. However, it is possible a User might avoid operating a Step, and as a result the amount of work will differ between Users. By placing an automated [Service Task] to designate an operator you can eliminate the need to manually undertake an operation. (Script Step)
1. Overview of Operator Designation for Downstream Steps
- a. Designation at Human Task upstream
- The operator of an upstream Step designates an operator for the downstream Step (M210)
- b. Designation by Auto-Step upstream
- Automatically designate under a "taking turns" rule (Script)
- Set up a reference to a User-type data item to designate the downstream Step operator
- A Progress error occurs if the User name has not been set when the Issue arrives at the Step
2. Overview of the Method of Automatic Designation
- a. Equal allocation in the candidate list
- Allocate by taking turns in the list of the candidate operators (round robin)
- b. Allocation in the candidates list using a load difference
- Allocate by unbalancing the workload in the list of candidate operators
- c. Allocation in accordance with the Business Data
- Filter by complex rules, such as by cases with a file attached and containing the word "urgent"
- In a Script Step, you may be able to achieve rules that could not be realized in the gateway and data setting step
3. Set the ECMAScript in a Script Step
- 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 narrowing down to one User
- Write a script that conforms to ECMA
- 3. Write a function for overwriting User type 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 (advances to the next Step)
- The processing time of the script is limited to 30 seconds (although it will vary a little according to the load condition)
R2300: Java Classes available in Script Task
R2301: Script Data Retrieving / Assignment
BPMN Icons: Script Task
Comments
0 comments
Please sign in to leave a comment.