Hi all!
Just for the record, we came up with a dead-simple solution:
@"lib/res/processes"
post '/processes' do
launchitem = rparse(:launchitem)
launchitem.authinfo={:initiator =>
user.login.to_s, :last_proceeded => { :user => 'none' } }
After that, "authinfo" can be used at participant level:
@assigned_to = workitem.authinfo['initiator']
And functional tests would work:
def test_sequence
pdef = OpenWFE.process_definition :name => 'test' do
sequence do
participant :ref => 'alpha',
:activity => 'fill',
:form_id => 'hr_42',
:form_ver => 'latest',
:owner_group => 'hr',
:priority => 0,
:description => 'Human resources: fire employee form'
participant :ref => 'bravo',
:activity => 'fill',
:form_id => 'boringform_001',
:form_ver => '4.5',
:assigned_to => 'initiator',
:priority => -19,
:description => 'Report unusual activities'
end
end
@engine.register_participant 'alpha',
OpenWFE::Extras::ArAuthParticipant
@engine.register_participant 'bravo',
OpenWFE::Extras::ArAuthParticipant
li = OpenWFE::LaunchItem.new(pdef)
li.brand = 'maserati'
li.authinfo = {'initiator' => 'charly', 'last_proceeded' =>
{ 'user' => 'none' }}
...
I hope this is useful.
Best regards,
//nando
--~--~---------~--~----~------------~-------~--~----~
you received this message because you are subscribed to the "ruote users" group.
to post : send email to [email protected]
to unsubscribe : send email to [email protected]
more options : http://groups.google.com/group/openwferu-users?hl=en
-~----------~----~----~----~------~----~------~--~---