Spring configuration for @StartProcess, @ProcessVariable

193 views
Skip to first unread message

florian...@gmail.com

unread,
Jan 8, 2015, 1:36:50 PM1/8/15
to camunda-...@googlegroups.com, Sacha Dolski
Hi all,

I started implementing a new project with camunda as process engine.
The project is spring-based (java config).

Now I saw a lot of stuff that looks very interesting. @StartProcess, @ProcessVariable, ProcessScope, ...
But unfortunately I don't find a lot of examples or documentation. The documentation for CDI is much better.

Is there a documentation that describes how to setup the project (java config) up so that everything works? Or is there a sample project that shows the certain aspects?

An answer would be great.

Best regards,
Florian

Roman Smirnov

unread,
Jan 12, 2015, 4:27:33 AM1/12/15
to camunda-...@googlegroups.com, sacha....@gmail.com
Hi Florian,

Unfortunately you are right that there is not much documentation about the Spring stuff (except[1]).

I think some of the annotations are inspired by the CDI implementation, so maybe the documentation about CDI could help you.

If you have some specific issues or questions, you are always welcome to post them here in the forum.

Cheers,
Roman

Florian Huonder

unread,
Jan 15, 2015, 2:03:26 AM1/15/15
to camunda-...@googlegroups.com, sacha....@gmail.com
Hi Roman,
Thanks for your answer.

I really have a concrete question:
How to setup the application context so that @StartProcess, @ProcessVariable and the process scope work?
E.g.: What I saw was, that for the @StartProcess annotation the corresponding BeanPostProcessor most be loaded so that the services can be enriched with the required AOP-Advice. 
I configure spring with JavaConfig. So the post processor must be configured in a static way that the framework picks it up, but the post processor has a dependency to the process engine that is then not yet loaded.
So you see... I am a little confused about the dependencies and the required beans to initialize in the application context.
It would help me much when you could shed some light on that topic.

Best regards,
Florian

Daniel Meyer

unread,
Jan 15, 2015, 5:02:13 AM1/15/15
to camunda-...@googlegroups.com, sacha....@gmail.com

Florian Huonder

unread,
Jan 16, 2015, 2:01:30 AM1/16/15
to camunda-...@googlegroups.com, sacha....@gmail.com
Hi Daniel,

Thanks a lot. I could solve it with your help.

Regards,
Florian
Reply all
Reply to author
Forward
0 new messages