Skip to content

Instantly share code, notes, and snippets.

@cbeer
Created December 16, 2009 14:37
Show Gist options
  • Save cbeer/257865 to your computer and use it in GitHub Desktop.
Save cbeer/257865 to your computer and use it in GitHub Desktop.
fields = { :assets => ['a', 'b', 'c'], :state => 'A'}
require 'pp'
$engine.register_participant(:pp) do |workitem|
pp workitem
end
definition_xml = '
<?xml version="1.0"?>
<process-definition name="test_xml">
<if>
<equals field-value="state" other-value="A" />
<participant ref="pp" />
</if>
</process-definition>'
li = Ruote::Launchitem.new definition_xml, fields
$engine.launch li
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment