There are two types of custom composites you may end up writing:
To me the second of these is more interesting (although no doubt less common) and involves writing a bit of plumbing. In general, though, there is a common pattern to the code and so I have created a base class that wraps this plumbing.
CustomCompositeBase.zip (55.6 KB)
There are two fundemental overridable methods:
LastActivityReached: returns whether there are more child activities to executeGetNextActivity: returns the next activity to be scheduled
Inside the zip there is also a test project that implements a random execution composite (highly useful I know).
Feedback, as always, very welcome.
Remember Me