Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [bpel-dev] How can I get all activities in a scope or even in the process?

Hey Yunxiao,

I can provide you some sample code that does that - you just need a process
object (or a scope for that sake).
Then do the following:

            for (TreeIterator it = process.eAllContents(); it.hasNext(); )
{
                  Object model = it.next(););
                  if ( model instanceof Activity ) {
                        //TODO: Add it to your list or do what you want to
do, e.g. populate a tree viewer that is embedded in the propertyPage if you
want to show them there
                                                 }
                                 }

Hope that helps!

Mit freundlichen Grüßen / Kind regards

Simon Daniel Moser

Team Lead BPEL Editor - Websphere Integration Developer (WID)
IBM Software Group, Application and Integration Middleware Software
Business Process Solutions Development 1
                                                                       
                                                                       
                                                                       
                                                                       
                                                                       
 Phone:            +49-7031-16-4304           IBM Deutschland                      (Embedded
                                                                                 image moved
                                                                                    to file:
                                                                               pic02786.gif)
                                                                       
 Fax:              +49-7031-16-4890           Schoenaicher Str. 220    
                                                                       
 E-Mail:           smoser@xxxxxxxxxx          71032 Boeblingen         
                                                                       
                                              Germany                  
                                                                       
                                                                       
                                                                       
                                                                       
                                                                       
 IBM Deutschland                                                       
 Research &                                                            
 Development                                                           
 GmbH /                                                                
 Vorsitzender des                                                      
 Aufsichtsrats:                                                        
 Martin Jetter                                                         
 Geschäftsführung:                                                 
 Erich Baier                                                           
 Sitz der                                                              
 Gesellschaft:                                                         
 Böblingen /                                                         
 Registergericht:                                                      
 Amtsgericht                                                           
 Stuttgart, HRB                                                        
 243294                                                                
                                                                       




|------------>
| From:      |
|------------>
  >--------------------------------------------------------------------------------------------------------------------------------------------------|
  |yunxiao wang <wyxsunny04@xxxxxxxxxxx>                                                                                                             |
  >--------------------------------------------------------------------------------------------------------------------------------------------------|
|------------>
| To:        |
|------------>
  >--------------------------------------------------------------------------------------------------------------------------------------------------|
  |"bpel-dev@xxxxxxxxxxx" <bpel-dev@xxxxxxxxxxx>                                                                                                     |
  >--------------------------------------------------------------------------------------------------------------------------------------------------|
|------------>
| Date:      |
|------------>
  >--------------------------------------------------------------------------------------------------------------------------------------------------|
  |05.12.2008 16:01                                                                                                                                  |
  >--------------------------------------------------------------------------------------------------------------------------------------------------|
|------------>
| Subject:   |
|------------>
  >--------------------------------------------------------------------------------------------------------------------------------------------------|
  |[bpel-dev] How can I get all activities in a scope or even in the process?                                                                        |
  >--------------------------------------------------------------------------------------------------------------------------------------------------|





Hey,

can somebody tell me, how can I get all activities that are nested in
different depth in a scope or in the process?
Can I do this following the Outline that illustrates all activities too?
And if yes, how can I show this simplified outline (without variables,
partnerlinks...)
in the property views of scopes or process?  Or does somebody have besser
ideas?


Thanks a lot

Yunxiao

Windows Live Messenger Beta: Jetzt die neue Windows Live Messenger
Beta-Version testen!_______________________________________________
bpel-dev mailing list
bpel-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/bpel-dev

Attachment: pic02786.gif
Description: GIF image


Back to the top