i want to see and understand how the closure operation works. I'm using the following expression on a BPEL process instance, just to compute the number of all the activities (elements composing the process) in the BPEL process instance:
It doesn't retrun the correct value. It doesn't navigate inside the other activities that may contain other activities (for example, another Sequence BPEL element that may contain different kind of activities and so on, we can go further in dept in the tree), and does not return them in the collection.
I want to recursively navigate in dept in the process for any composed activity and collect all the element then compute their number.
Or with this expression where i'm trying to get the number of a specific activity in the process: