Clarification about DelegateExecution and Execution
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-26-2013 07:05 AM
Hi,
The classes I've mentioned are:
org.activiti.engine.runtime.Execution
org.activiti.engine.delegate.DelegateExecution
The latter is used in JavaDelegate and ExecutionListeners. The former is the result of some RuntimeService API methods. Is there a relation between them? Is casting one to another is safe or may I use one of them's id to get/query another?
Afaik, DelegateExecution or ExecutionEntity is a small representation of an Execution at some activity. At each step Activiti can supply DelegateExecution or ExecutionEntity via ExecutionListener or JavaDelegate methods. I can get the main/broader view of the related execution using runtimeService.createExecutionQuery() method.
If there are some other relations or explanations over those classes could you please explain?
Thanks.
The classes I've mentioned are:
org.activiti.engine.runtime.Execution
org.activiti.engine.delegate.DelegateExecution
The latter is used in JavaDelegate and ExecutionListeners. The former is the result of some RuntimeService API methods. Is there a relation between them? Is casting one to another is safe or may I use one of them's id to get/query another?
Afaik, DelegateExecution or ExecutionEntity is a small representation of an Execution at some activity. At each step Activiti can supply DelegateExecution or ExecutionEntity via ExecutionListener or JavaDelegate methods. I can get the main/broader view of the related execution using runtimeService.createExecutionQuery() method.
If there are some other relations or explanations over those classes could you please explain?
Thanks.
Labels:
- Labels:
-
Archive
4 REPLIES 4
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-26-2013 07:09 AM
You can discard ExecutionEntity totally. I've noticed it's implementation of those two other interfaces.
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-02-2014 04:07 PM
Any idea?
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-06-2014 07:13 AM
DelegateExecution hides a bit of the complexity so people can't burn their fingers when using it in a JavaDelegate.
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-12-2014 12:15 PM
Thanks
