Created
April 10, 2014 13:32
-
-
Save geronimod/10382694 to your computer and use it in GitHub Desktop.
SWF thoughts
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class FLVActivities | |
extend Activities | |
activities :generate_flv, :upload_flv | |
... | |
end | |
class ScreenshotActivies | |
extend Activities | |
activities :get_movie_duration, :grab_screenshot, :upload_screenshot | |
... | |
end | |
workflow do | |
video = download_video_activity | |
flv_activities = FLVActivities.new video | |
scr_activities = ScreenshotActivities.new video | |
flv = client.send_async(:generate_flv) | |
scr = client.send_async(:activity2) | |
wait_for_all(flv, scr) | |
cleanup | |
end |
tambien puede q send_async reciba el nombre de la activity en lugar de una instancia de la misma
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
fe de erratas, donde dice:
client.send_async :generate_flv, debe decir (client o some object).send_async :flv_activities
client.send_async :activity2, debe decir (client o some object).send_async :scr_activities