ActivityExecution.takeAll: what is the 2nd parameter?
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-05-2013 06:23 AM
Sorry for the silly question, but could you explain the meaning of the 2nd parameter of method of ActivityExecution.takeAll?
Thank you very much.
Bye
Franco
Thank you very much.
Bye
Franco
Labels:
- Labels:
-
Archive
6 REPLIES 6
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-05-2013 11:15 AM
Well, the javadoc sais:
How it is used can best be seen if youanalyze t code a littl and find references of its usage. It as to do with gateways.
/**
* Takes the given outgoing transitions, and potentially reusing
* the given list of executions that were previously joined.
*/
void takeAll(List<PvmTransition> outgoingTransitions, List<ActivityExecution> joinedExecutions);
How it is used can best be seen if youanalyze t code a littl and find references of its usage. It as to do with gateways.
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-06-2013 07:07 AM
First of all, thank you for your answer.
I already tried to understand the engine source code, but, since I'm not so smart, I was asking you some hints 🙂
Anyway, I'll try again, thanks.
Bye
Franco
I already tried to understand the engine source code, but, since I'm not so smart, I was asking you some hints 🙂
Anyway, I'll try again, thanks.
Bye
Franco
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-06-2013 03:34 PM
My I ask why you need to know this? I use activiti all the time and never needed this INTERNAL method in normal usage (it is not in the public api). The only moment I needed to know parts of the internal api whas when fixing some bug in a gateway.
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-07-2013 06:32 AM
I need this method because I'm writing a special kind of gateway implemening some particular business rules of my process.
Thanks
Bye
Franco
Thanks
Bye
Franco
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-07-2013 07:00 AM
… but, since I'm not so smart
I'm writing a special kind of gateway implemening…
Ok… I'd still go for analyzing how it is used then… I doubt an answer by one of the core devs would help you in actually using it… And they most likely will not write the 'special gateway' for you.
Can't the businessrule not be implemented using the existing gateways?
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-07-2013 11:11 AM
Can't the businessrule not be implemented using the existing gateways?
It could definitively be implemented using existing gateways, but I think it would be a bit "convoluted".
Anyway, I did it this way, and it seems it works:
public class MyGateway implements ActivityBehavior {
public void execute(ActivityExecution execution) throws Exception {
List<PvmTransition> transitions = findTransitionsWithMyFunnyRules();
execution.inactivate();
execution.takeAll(transitions, new ArrayList<ActivityExecution>());
}
}
Thanks.
Bye
Franco
