Hi, I know that some of you use the ActiveParticipant in some systems that integrate OpenWFEru (ruote). I can remember of Maarten and Tomaso especially.
I have just made a change to the ActiveParticipant to avoid this problem : OpenWFE::ExpressionPool 'expressionPool' - expressionPool operation :do_apply on (fei 0.9.18 engine public/process_definitions/simple_sequence_1.xml simple_sequence 1 20080519-momijamipe participant 0.1.2) failed with exception : Mysql::Error: Duplicate entry '4-launcher' for key 2: INSERT INTO `fields` (`workitem_id`, `vclass`, `yvalue`, `fkey`, `svalue`) VALUES(4, 'String',NULL, 'launcher', 'admin') /Users/mettraux/ruote-web/vendor/rails/activerecord/lib/active_record/connection_adapters/abstract_adapter.rb:150:in `log' /Users/mettraux/ruote-web/vendor/rails/activerecord/lib/active_record/connection_adapters/mysql_adapter.rb:281:in `execute' (...) /Users/mettraux/ruote-web/vendor/rails/activerecord/lib/active_record/transactions.rb:112:in `save!' ../ruote/lib/openwfe/extras/participants/activeparticipants.rb:213:in `from_owfe _workitem' ../ruote/lib/openwfe/extras/participants/activeparticipants.rb:182:in `synchronize' ../ruote/lib/openwfe/extras/participants/activeparticipants.rb:182:in `from_owfe_workitem' ../ruote/lib/openwfe/extras/participants/activeparticipants.rb:712:in `consume' ../ruote/lib/openwfe/participants/participantmap.rb:217:in `dispatch' ../ruote/lib/openwfe/expressions/fe_participant.rb:172:in `apply' ../ruote/lib/openwfe/expressions/fe_participant.rb:165:in `initialize' ../ruote/lib/openwfe/expressions/fe_participant.rb:165:in `new' ../ruote/lib/openwfe/expressions/fe_participant.rb:165:in `apply' ../ruote/lib/openwfe/expressions/raw.rb:139:in `apply' ../ruote/lib/openwfe/expool/expressionpool.rb:885:in `send' ../ruote/lib/openwfe/expool/expressionpool.rb:885:in `do_apply_reply' ../ruote/lib/openwfe/util/workqueue.rb:73:in `send' I basically removed the mutex synchronization and made sure to save the workitem before adding fields, so that the workitem has a proper id before fields are added : http://github.com/jmettraux/ruote/commit/da6aa21d25dc637c19bee87e70ed500c07992243 If this change induces any problem for you, sooner or later, please notify me. Best regards, -- John Mettraux - http://jmettraux.wordpress.com --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "OpenWFEru users" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/openwferu-users?hl=en -~----------~----~----~----~------~----~------~--~---
