|
From: Dennis S. <d.s...@gm...> - 2007-02-01 15:36:52
|
Hello Marco and Openflow Team, Maybe its the best when I try to explain what I want to do exactly. I would like to model a purchase request approval process with openflow. All logged in persons (Role Authenticated? <http://localhost:8080/ttt/process/account/ed/manage_roleForm?role_to_manage=Authenticated>) can create a purchase request (fill out a form) When submitted, a process instance should be created. The next approver (budget holder) is not static and has to be looked up in a relational data base. How to to this? Is it good to create a local role for this purpose? Then the next approver (division head) has to be looked up in the data base as well. When approved, it finally goes to the administration that can print out the order. (Administration is a fixed group of users, so I add a fixed local role?) It is not too complicated, but I just dont know where to start. I looked at the examples on the openflow website (account.zexp, leave.zexp). Maybe you have a similar process that you could share ? The interesting things for me are how to call the api functions of openflow from a zope filesystem product. (I have the forms basically ready as zope filesystem page templates and want to build it together with openflow now) A question regarding the addInstance: What is the customer field for? The docu says that it is created from customer id and creation time. but it also works like this: i_id = l_wf.addInstance(l_process_id, '', '', '', 0) The instance is uniquely identified only by the returned i_id in the future? So I have to save this ID with my workflowed object or how else can I identify it? Kind Regards and Thank you very much for your help, Dennis |