Chapter 6 Managing Process Execution

157

Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 157

Engine Sessions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 158

Disrupted Sessions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 159

Explicitly Suspended Sessions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 161

Explicitly Terminated Sessions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 161

Activity States . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 162

Activity Types . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 165

Process Execution . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 165

Process Instance Creation

166

Process Instance Execution

167

Activity Creation

167

Activity Execution

168

Activity Termination

171

Process Instance Termination

173

Completed Process Instances

173

Aborted Process Instances

173

Monitoring and Managing Engine Sessions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 173

Monitoring the State of a Session

174

Managing Sessions

176

Suspending or Terminating Sessions

176

Sending and Broadcasting Messages to Sessions

177

Monitoring and Managing Process Execution . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 179

Managing Process Instances

181

Checking the Status of a Process Instance

181

Aborting a Process Instance

184

Managing Activity Instances

185

Checking the Status of an Activity

185

Changing the State of an Activity

186

Managing Activity Queues

188

Checking the Status of an Activity Queue

188

Reprioritizing a Queued Activity

189

Managing Timer Instances

191

Checking the Status of a Timer

191

Changing the Timer State and Expiration Time

192

Managing Process Attributes

193

Checking the Value and Lock State of a Process Attribute

193

Changing a Process Attribute Value

194

Removing a Process Attribute Lock

195

Checking for Bottlenecks in Process Execution

196

Analyzing Process Execution . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 197

History Log Schema . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 198 State Values . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 198

7

Page 7
Image 7
Sun Microsystems 3 manual Managing Process Execution 157