This content has been marked as final.
Show 2 replies
-
1. Re: How to start jbpm business process from an async quartz
pietermartin Nov 7, 2007 9:55 AM (in response to pietermartin)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 -
2. Re: How to start jbpm business process from an async quartz
pmuir Nov 12, 2007 7:37 AM (in response to pietermartin)Please file a JIRA issue for this, looks like a bug to me.