very usefull!
my solution was boring
tanks a lot

2007/5/17, Bartłomiej Jendyk <[EMAIL PROTECTED]>:
>
>
> I got the solution. hope that someone will find it useful :)
>
> // launch the workflow first and obtain workflow instance id
> String wfid = workSession.launch("mainEngine", li);
> Pattern p = Pattern.compile("[0-9]{7,}");
> Matcher m = p.matcher(wfid);
> if(m.find())
>    wfid = m.group(); // yeah, regexp rulez :]
>
> // ...
>
> List l = workSession.getHeaders("Store.bravo", 10);
>
>                             if(l.size() > 0)
>                             {
>                                 boolean brk = false;
>                                 for(int i=0; i<l.size(); i++)
>                                 {
>                                     Header h = (Header)l.get(i);
>
> if(wfid.equals(h.getExpressionId().getWorkflowInstanceId()))
>                                     {
>                                         InFlowWorkItem wi =
> workSession.getAndLock("Store.bravo", h.getExpressionId());
>                                         // do stuff with the workitem...
>
>                                         // pass the workitem back to
> the workflow
>                                         workSession.proceed("Store.bravo",
> wi);
>                                         brk = true;
>                                         break;
>                                     }
>
>                                 }
>                             }
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"OpenWFE users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/openwfe-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to