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
_______________________________________________
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to