ProcessMaker Gem Quick Tip: Start a batch of cases with a few lines of code
About a month ago, I published a ProcessMaker gem for Ruby and had some traction with almost 500 downloads in three weeks. But what can the library do? This post will show you a little trick to take advantage of this gem.
200 cases at once? No problem, bro
So, let’s say we want to start 200 cases for any crazy reason. Perhaps you want to do some load testing on the application and the best way to accomplish this is to generate cases.
Ruby is your buddy
First, you’ll need to have Ruby installed. I won’t go into details on how to set it up, but once you have it, go to your terminal or command line and type this:
gem install processmaker
(This works on Windows and LINUX/UNIX)
Create a file: pm.rb
And make sure you have this:
wsdl: # your PM web service url
user_id: # username
password: # password
(1..200).each do |c|
process_list: # ID process
task_list: # TASK list
Did you see the (1..200) block almost at the end? That will loop through the new_case method 200 times. No more, no less.
And there you go! A simple trick that shows what you can accomplish with the ProcessMaker Gem.
I got a question!
Sure, you can find me on twitter: @yamilurbina
This is Riverflow for Processmaker. Coming this April
February 24, 2013 at 4:01pm
Integrate BPM into your Ruby apps with the ProcessMaker gem
I’m currently developing a cloud manager for ProcessMaker instances named Riverflow 2 and I couldn’t find an easy way to talk to my ProcessMaker instance from Ruby.
By default, ProcessMaker uses web services as their only source of communication (although rumor says that a REST implementation is coming on future releases). After some research, I found a SOAP client for Ruby called Savon, which parses the requests into xml and sends it to the web service for you.
So, I’m proudly introducing an open-source Ruby library for ProcessMaker based on Savon. The source code is available on Github for you to fork, edit and send me a pull request if you have some improvements to include.
Hey, yes you!
We’re giving away 5 copies of Thinglist. Just reblog this & list something you care about remembering for a chance to win.
P.S. Make sure you have your /ask feature turned on so we can contact you.
I need to remember my Zen meditation times
February 17, 2013 at 12:11pm
Upcoming project based on a very well known BPM
January 24, 2013 at 10:20pm
Introduccion a iOS: Hola Mundo!
Estos ultimos meses he estado jugando el SDK para iOS. Resulta que desarrollar aplicaciones para dispositivos Apple es intuitiva y la informacion que encuentras en internet ayuda mucho. La unica desventaja que encuentro es que necesitas una Mac para usar Xcode, el IDE de Apple desarrollado para hacer nuestras aplicaciones.
Tips y cómo aprovechar este red social.