activiti learning summary 4

1. Script task scriptTask: When the process executes to the script task, a javascript script can be automatically executed, variables can be defined in the script, and variables can be obtained.
2. Java service task: When the process executes to the service task, it will automatically call the external java method
   a.activiti:class to specify the class path, the specified class must implement the JavaDelegate interface, and automatically execute the execute method of the class.
    b.activitiexpression specifies Expression, the method of calling the variable, pass the execution parameter when calling, and obtain the existing variable in the class method through the execution.
    c.activiti:delegateExpression Specifies the method of an object in the spring container.

3. Manual task manualTask: process execution Manual task, do not stop and continue to execute downward
4. Accept task receiveTask: When the process executes to receive the task, wait until it receives a signal and then execute it downward. The method of signaling is: runtimeService.signal().
5. User Task userTask: Specify a specific person to perform the task.
6. Execution listener executionListener: Monitor the process start and process end, execute the specified java method at the start and end
   a. class specifies the class path, the specified class implements ExceutionListener, and automatically executes the notify method
   b expression Specify the expression, call the method of the variable, pass the execution parameter when calling, and obtain the existing variable in the class method through the execution
   c delegateExpression specifies the method of an object in the spring container.

7. Task listener taskListener monitors task start, task end, task proxy assignment, and executes the specified java method. The task can only execute the assigned listener method when there is a specified person. , and the assigned operation precedes the task startup operation.

a: class: specifies the class path, the specified class implements TaskListener, and automatically executes notify
      b: expression: specifies the expression, calls the method of the variable, and passes the execution parameter when calling, through Execution obtains existing variables in the class method
      c: delegateExpression: a method to specify an object in the spring container

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326440427&siteId=291194637