How to get ExecutionContext

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-27-2012 10:14 AM
Hello Guys,
I need to access the ExecutionContext, but if I try to get the context with:
method. Because if the stack is null then a new Stack will created and then if the peack() method is calling an EmptyStackException will thrown.
How is it possible to get the ExecutionContext? Or isn't there anyway to do this?
I need to access the ExecutionContext, but if I try to get the context with:
Context.getExecutionContext()
I get an EmptyStackException. Then I debug it and saw that there could a problem in theprotected static <T> Stack<T> getStack(ThreadLocal<Stack<T>> threadLocal)
method. Because if the stack is null then a new Stack will created and then if the peack() method is calling an EmptyStackException will thrown.
How is it possible to get the ExecutionContext? Or isn't there anyway to do this?
Labels:
- Labels:
-
Archive
4 REPLIES 4
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-27-2012 11:04 AM
Context.getExecutionContext()
only works if the calling thread is currently performing an atomic operation in activiti

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-28-2012 07:30 AM
Okay, thanks.

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-12-2014 05:33 AM
I've run into the same problem. Had to upgrade from 5.13 to 5.14 for other bug-fixes and where via Camel we could use Context.getExecutionContext(), it no longer works. I've not much experience with Activiti and would like to know how to handle this "atomic operation".

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-12-2014 12:56 PM
Could you share some code what you are trying to do?
Thanks,
Thanks,
