ExecutionEntity.java 2.9 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13
/* Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 * 
 *      http://www.apache.org/licenses/LICENSE-2.0
 * 
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

T
tombaeyens 已提交
14
package org.activiti.engine.impl.persistence.entity;
15

16
import java.util.Date;
17 18
import java.util.List;

T
Tijs Rademakers 已提交
19
import org.activiti.engine.delegate.DelegateExecution;
20
import org.activiti.engine.impl.db.Entity;
21
import org.activiti.engine.impl.db.HasRevision;
22 23
import org.activiti.engine.runtime.Execution;
import org.activiti.engine.runtime.ProcessInstance;
24 25 26

/**
 * @author Tom Baeyens
F
falko.menge 已提交
27 28
 * @author Daniel Meyer
 * @author Falko Menge
T
tijsrademakers 已提交
29
 * @author Saeid Mirzaei
30
 * @author Joram Barrez
31
 */
T
tijsrademakers 已提交
32

33
public interface ExecutionEntity extends DelegateExecution, Execution, ProcessInstance, Entity, HasRevision {
34 35 36 37 38 39
  
  void setBusinessKey(String businessKey);

  void setProcessDefinitionId(String processDefinitionId);

  void setProcessDefinitionKey(String processDefinitionKey);
T
Merge  
Tijs Rademakers 已提交
40

41
  void setProcessDefinitionName(String processDefinitionName);
T
Merge  
Tijs Rademakers 已提交
42

43
  void setProcessDefinitionVersion(Integer processDefinitionVersion);
44

45
  void setDeploymentId(String deploymentId);
46

47
  ExecutionEntity getProcessInstance();
48

49 50 51
  void setProcessInstance(ExecutionEntity processInstance);
  
  ExecutionEntity getParent();
52

53
  void setParent(ExecutionEntity parent);
54

55
  ExecutionEntity getSuperExecution();
56

57
  void setSuperExecution(ExecutionEntity superExecution);
58

59
  ExecutionEntity getSubProcessInstance();
60

61
  void setSubProcessInstance(ExecutionEntity subProcessInstance);
62

63
  void setRootProcessInstanceId(String rootProcessInstanceId);
64
  
65 66 67 68 69
  List<? extends ExecutionEntity> getExecutions();
  
  void addChildExecution(ExecutionEntity executionEntity);
  
  List<TaskEntity> getTasks();
70

71
  List<EventSubscriptionEntity> getEventSubscriptions();
72

73
  List<JobEntity> getJobs();
74
  
75
  List<IdentityLinkEntity> getIdentityLinks();
76

77
  void setProcessInstanceId(String processInstanceId);
78

79
  void setParentId(String parentId);
80

81
  void setEnded(boolean isEnded);
82

83
  void setEventName(String eventName);
84

85
  String getDeleteReason();
86

87
  void setDeleteReason(String deleteReason);
88

89
  int getSuspensionState();
90

91
  void setSuspensionState(int suspensionState);
92

93
  boolean isEventScope();
T
Merge  
Tijs Rademakers 已提交
94

95
  void setEventScope(boolean isEventScope);
96 97 98 99
  
  boolean isMultiInstanceRoot();
  
  void setMultiInstanceRoot(boolean isMultiInstanceRoot);
T
Merge  
Tijs Rademakers 已提交
100

101
  void setName(String name);
T
Merge  
Tijs Rademakers 已提交
102

103
  void setTenantId(String tenantId);
T
Merge  
Tijs Rademakers 已提交
104

105
  Date getLockTime();
106

107
  void setLockTime(Date lockTime);
T
Merge  
Tijs Rademakers 已提交
108

109 110 111
  boolean isDeleted();

  void setDeleted(boolean isDeleted);
112
  
113
  void forceUpdate();
114
  
115
}