2009/9/13 Neo <neocana...@gmail.com>:
>
> i wrote it like this
>
> expression = RuotePlugin.ruote_engine.get_expool.fetch_root(one_wfid)
>
> def get_histoy(expression,workflow_instances = [])
>     current_fei = expression.fei
>     workflow_instacnes << current_fei.workflow_instance_id
>
>     if current_fei.workflow_definition_name == "some_definition"
>         return workflow_instances.uniq
>   else
>         get_histoy(expression.get_parent,workflow_instances)
>   end
> end

Hi Neo,

so your are taking the root expression of the process instance "one_wfid".

Please not that this root expression has no parent expression (since
it's a root).

Are you trying to ?

a) return all the workflow_instance_ids that have the same
workflow_definition_name ?
b) return the list of subprocess instances for a given main process instance ?

?

I was confused by your question because in ruote-web and ruote-rest,
there is a resource called "history", available under /history that
details what happened to process and subprocess instances.


Best regards,

-- 
John Mettraux   -   http://jmettraux.wordpress.com

--~--~---------~--~----~------------~-------~--~----~
you received this message because you are subscribed to the "ruote users" group.
to post : send email to openwferu-users@googlegroups.com
to unsubscribe : send email to openwferu-users+unsubscr...@googlegroups.com
more options : http://groups.google.com/group/openwferu-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to