Hi Pranav,
why are you embedding an engine instantantiation + participant
registration inside of a process definition ? There are no such
examples in the documentation... Ruote is an interpreter for process
definition, it's not the task of the process definition to instantiate
the engine.
Since you are using ruote-web2, ruote-web2 does the job of running the
ruote engine for you.
If you need to register participants, you can do it under
config/initializers/participants.rb but that will require a restart of
ruote-web2.
> I am new to this so please tell me if I am missing anything
> fundamental. Also, I am trying to understand how the overall scheme of
> ruote-web2 + process definition + users + groups is working..
In ruote-web2, participants names are automatically mapped to user or
group names. If for example of have a user "alice" and a group
"authors", this process definition :
---8<---
OpenWFE.process_definition :name => 'sample' do
sequence do
alice
authors
end
end
--->8---
Will deliver a workitem to Alice and then to the authors group. You
won't need to register any participant as long as the the user and the
group exist.
Not that for proceeding a workitem in ruote-web2, you simply locate
the workitem under /workitems, click on it, then hit the "proceed"
button.
Best regards,
--
John Mettraux - http://jmettraux.wordpress.com
Hello Pranav,
you have to click on the workitem to enter into /workitems/xxxxx/yyy
The proceed button is in that screen.
you really don't see any "show | edit | pick" buttons ? Does an error
appear in the Rails log when this page gets rendered ?
> If I click on to workflow i.e. sample 0 then I get the following error
>
> ActiveRecord::ActiveRecordError: Unknown column 'ar_workitems.wf_name'
> in 'where clause': SELECT * FROM `ar_workitems` WHERE
> (`ar_workitems`.`store_name` IN ('pranav','unknown','team a') AND
> `ar_workitems`.`wf_name` = 'sample') ORDER BY dispatch_time DESC
> LIMIT 0, 30
>
> Clicking on any other item, same screen is shown :(
OK, I fixed this "wf_name" issue :
http://github.com/jmettraux/ruote-web2/commit/93dffd25cd61dd3f97f40fb224c783fadc948eef
Thanks a lot for reporting it.
Hello,
as I said in one of my emails, I could reproduce your "no connection"
issue, but had not had time to investigate it yet. I was quite
surprised and happy the error vanished for you. Now it's back, I guess
I will try again (but for personal reasons, I won't probably be able
to do much before next month).
> So, I was wondering if the "no connection" error had been actually
> resolved. If not, then how come it was working for some time and now
> it is not..
> Is it something to do with my jdbcmysql adapter? What is causing this
> unstable behavior(Sometimes /workitems page comeup.. sometimes it
> shows the error page)?
I have no idea. I will investigate.
Best regards,
Sorry, I'm afraid the only pointer I can give you is the error message
you are receiving.
Good luck,
Excellent piece of information. I will take a look at the jdbc / mysql
adapter maybe.
Thanks !
Hello Pranav,
I would really appreciate if you would ask your question in a new
thread since it's not directly related to your initial issue.
Doing so will make it easier for the other people reading the list to
find information.
Thanks in advance.