[jboss-user] [JBoss Seam] - How to start jbpm business process from an async quartz meth

pietermartin do-not-reply at jboss.com
Wed Nov 7 09:25:41 EST 2007


Hi,

I have tried calling 


  | package com.yannitech.virgin.bpm.session;
  | 
  | import java.util.Date;
  | 
  | import org.jboss.seam.ScopeType;
  | import org.jboss.seam.annotations.Logger;
  | import org.jboss.seam.annotations.Name;
  | import org.jboss.seam.annotations.Scope;
  | import org.jboss.seam.annotations.Transactional;
  | import org.jboss.seam.annotations.async.Asynchronous;
  | import org.jboss.seam.annotations.async.Expiration;
  | import org.jboss.seam.annotations.async.FinalExpiration;
  | import org.jboss.seam.annotations.async.IntervalDuration;
  | import org.jboss.seam.annotations.bpm.CreateProcess;
  | import org.jboss.seam.async.QuartzTriggerHandle;
  | import org.jboss.seam.log.Log;
  | 
  | @Name("pollPosForOBF")
  | @Scope(ScopeType.CONVERSATION)
  | public class PollPosForOBF {
  | 
  | 	@Logger
  | 	Log log;
  | 	
  | 	@Asynchronous
  | 	@Transactional
  | 	@CreateProcess(definition="OBFProcess")
  | 	public QuartzTriggerHandle poll(@Expiration
  | 									Date when, @IntervalDuration
  | 									Long interval, @FinalExpiration
  | 									Date endDate) {
  | 		log.info("Async poll happening ja wol");
  | 		return null;
  | 	}
  | 	
  | }
  | 

The code executes but the a instance of the business process is not created.

What is the correct way to start a jbpm business process from an async process?

Thanks
Pieter

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4102555#4102555

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4102555



More information about the jboss-user mailing list