Skip to content

Instantly share code, notes, and snippets.

@jmettraux
Created June 14, 2013 22:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jmettraux/5785678 to your computer and use it in GitHub Desktop.
Save jmettraux/5785678 to your computer and use it in GitHub Desktop.
def test_update_workitem_alt
@dashboard.register_participant 'alpha', Ruote::StorageParticipant
wfid = @dashboard.launch(Ruote.process_definition { alpha })
wait_for(:alpha)
#wi = @dashboard.process(wfid).workitems.first
#alpha = @dashboard.participant(wi.participant_name)
alpha = @dashboard.participant('alpha')
wi = alpha.first
wi.set_field('my_field', 'abc123')
alpha.update(wi)
assert_equal nil, @dashboard.process(wfid).workitems.first.fields['my_field']
assert_equal 'abc123', alpha.first.fields['my_field']
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment