ode-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Karel Gardas <karel.gar...@centrum.cz>
Subject Re: Is there any way how to get bpmn:id?
Date Tue, 07 Jul 2009 22:08:06 GMT

Hi Alex,

thanks a lot for your quick help. Unfortunately I do have quite problem
to find BpelManagementFactory class. I've tried to find it in ode-trunk,
in my ode-1.X source tree and also in ode-1.2 but it's nowhere. Could
you be so kind and kick me into the right direction?

Thanks,
Karel

Alex Boisvert wrote:
> Hi Karel,
> 
> Here's a code fragment that does roughtly what you want:
> 
>         ProcessManagementConnection conn =
> BpelManagementFactory.getInstance().createConnection();
>         try {
>             ActivityExtInfoListDocument s =
> conn.getExtensibilityElements(pid, aiid);
>             TActivitytExtInfoList l = s.getActivityExtInfoList();
>             List<TActivityExtInfo> ll = l.getActivityExtInfoList();
>             for (TActivityExtInfo info : ll) {
>                 NodeList nl = ((Element)
> info.getDomNode()).getElementsByTagNameNS(BPMN_NS, BPMN_ID);
>                 for (int i = 0; i < nl.getLength(); i++) {
>                     Node n = nl.item(i);
>                     result.add(n.getFirstChild().getNodeValue());
>                 }
>             }
>         } catch (Exception e) {
>             ...
> 
>         }
> 
> As you can see, you mostly need to use the Process Management API and the
> BPEL object model.
> 
> alex
> 
> On Tue, Jul 7, 2009 at 6:07 AM, Karel Gardas <karel.gardas@centrum.cz>wrote:
> 
>> Hello,
>>
>> I'm trying to find out but so far unsuccessful hence the question: is
>> there any way how to get bpmn:id which is assigned to some action
>> directly in action's code? i.e. I do have following code:
>>
>>  <bpel:sequence>
>>
>>    <bpel:scope bpmn:label="SubProcess" name="SubProcess"
>> bpmn:id="_KddAgBq8Ed6g-K1VcIMszw">
>> ....
>>
>> and I would like to get bpmn:id's value, i.e. "_KddAgBq8Ed6g-K1VcIMszw"
>> somehow in SCOPE.java code. I'm currently using ODE from 1.X branch.
>>
>> Thanks,
>> Karel
>>
> 


Mime
View raw message