[jboss-user] [JBoss Seam] - Re: How to start jbpm business process from an async quartz
pietermartin
do-not-reply at jboss.com
Wed Nov 7 09:55:23 EST 2007
Solved,
| @Name("pollPosForOBF")
| @Scope(ScopeType.CONVERSATION)
| public class PollPosForOBF {
|
| @Logger
| Log log;
|
| @In(create=true)
| private OBFProcessAction oBFProcessAction;
|
| @Asynchronous
| @Transactional
| public QuartzTriggerHandle poll(@Expiration
| Date when, @IntervalDuration
| Long interval, @FinalExpiration
| Date endDate) {
| log.info("Async poll happening ja wol");
| oBFProcessAction.startOBFBusinessProcess();
| return null;
| }
| }
|
| @Name("oBFProcessAction")
| public class OBFProcessAction {
|
| @Logger Log log;
|
| @Out(scope=ScopeType.BUSINESS_PROCESS, required=false)
| String orderId;
|
| @CreateProcess(definition="OBFProcess")
| public void startOBFBusinessProcess() {
| log.info("startPolling");
| orderId = new UID().toString();
| }
| }
|
|
Seams like delegating @CreateProcess made it work, not sure why tho.
Cheers
Pieter
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4102568#4102568
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4102568
More information about the jboss-user
mailing list