wangting
2024-10-22 fc7f59bcd94cebfcc3b2a1278984a3bb7b39edaa
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
package org.jbpm.jpdl.internal.activity;
 
import org.jbpm.api.activity.ActivityExecution;
import org.jbpm.api.listener.EventListener;
import org.jbpm.api.listener.EventListenerExecution;
import org.jbpm.api.model.OpenExecution;
import org.jbpm.pvm.internal.model.ExecutionImpl;
 
 
public abstract class JpdlAutomaticActivity extends JpdlActivity implements EventListener {
 
  private static final long serialVersionUID = 1L;
 
  public void execute(ActivityExecution execution) throws Exception {
    perform(execution);
    ((ExecutionImpl)execution).historyAutomatic();
  }
    
  public void notify(EventListenerExecution execution) throws Exception {
    perform(execution);
  }    
    
  abstract void perform(OpenExecution execution) throws Exception;
}