2009/9/13 Neo <[email protected]>:
>>a) return all the workflow_instance_ids that have the same
> workflow_definition_name ?
>
> <process-definition>
> <sequence>
> <set field="is_empty" value="${field:is_empty}"/>
> <case>
> <equals filed="is_empty" other_value="yes"/>
> <subprocess ref="a"/>
> <subprocess ref="b"/>
> </case>
> </sequence>
> <process-definition name="a">
> <participant ref="a"/>
> </process-definition>
> <process-definition name="b"/>
> <participant ref="b"/>
> </process-definition>
> </process-definition>
>
> the definition with different name
>
>>return workflow_instances.uniq
> to gets the different instance id
>
> then
>
> ArWorkitem.find(:all,:conditions => ["wfid in
> (?)",get_histoy(expression,workflow_instances = [])])
>
> gets all workitems of one subprocess hava applied,
> use HistoryEntry has to sort by the column "fei",it is a long string ^_^
>
>>b) return the list of subprocess instances for a given main process
>> instance ?
> right
>
> is there other way to get the history?
Hello,
what about simply something like
ArWorkitem.find(:all, :conditions => [ "wfid LIKE ?", "%#{root_wfid}%" ]
?
I think I start to understand the issue, I will fix that for ruote 2.0.
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 [email protected]
to unsubscribe : send email to [email protected]
more options : http://groups.google.com/group/openwferu-users?hl=en
-~----------~----~----~----~------~----~------~--~---