Project Zero flow samples

Name Description Flow definition Link
Echo Echoes back whatever is sent source
Aggregate feeds Aggregates Yahoo and CNN feeds source
Sort feed entries Sort entries of the aggregated feed from Yahoo and CNN by title in ascending order source
Filter feed entries Filter the entries of the aggregated feed from Yahoo and CNN by the condition that its content contains 'U.S.'. source
XPath Select from the Yahoo feed "http://rss.news.yahoo.com/rss/topstories" and return the title of the first entry. source
Truncate feed entries Select from an sorted feed from Yahoo and CNN and return the first latest ten entries. source
unique Combine the entries with identical title source
Add Adds 2 numbers together source
Proxy Add Adds 2 numbers together via an <invoke> to the Add process above source
Math Calls Math.random() to generate a random number source
Input File Returns a file in XML format to the requester source
Input File #2 Returns the same file as above, but as HTML source
for each sum the list [1, 3, 5, 7] source
while sample sum all integers range from 1 to 99 source
pick sample Select your favorite fruit by <pick> source
deleteEntry delete one entry from todo resource that is provided by resource model (click here for steps to enable resource model support) source
Error Proxy Add This process takes two numbers and a port as URL encoded params. If the port is the one where Add is running (here assuming 8080), then it is successful and does the same as Proxy Add. Otherwise (here assuming 4040), the error from the POST to Add is caught by a different reply activity and the process returns an error message source
Music Mashup

Enrich the Yahoo Top Album feed with customer reviews from Amazon.

Note:

In order to play with some samples invoking Amazon ECS service, you need to configure your access ID key so that the zero.assemble.flow.demo module can access Amazon on your behalf. This is accomplished by adding an entry to your config/zero.config file. The entry looks like the following example:

/config/amazon/accessKeyId="xyxyxyxyxyxyxyxyxyxy"
				

source

Extension Activity Samples

Name Description Flow Definition Link
HelloWorld implemented by Groovy Event Handler HelloWorld - /app/scripts/sample/HelloWorld.groovy source
ExchangeRate implemented by Java Event Handler Change MXN to US dollar - /java/sample/ExchangeRate.java source
ExchangeRate2 implemented by Groovy extension activity Change MXN to US dollar - /app/assemble/activities/exchangeRate2.groovy source