[Yanel-dev] Enhancing the workflow interface with hasWorkflowInstance

Josias Thöny josias.thoeny at wyona.com
Thu May 24 13:47:17 CEST 2007


Michael Wechner wrote:
> Hi
> 
> I have noticed that one can use the WorkflowHelper class to get the 
> workflow instance of a resource instance, but
> it seems to me that it would make sense if the workflow interface would 
> containt such a method, e.g.
> 
> Workflow getWorkflowInstance()
> 
> if the resource instance doesn't have a workflow instance, it would 
> return null.
> 
> This way the method of attaching the workflow schema resp. instance 
> would be hardcoded, but
> could be made dependent of the resource.
> 
> WDYT?

It's ok with me to add this method.
Is there a concrete reason to add it, I mean do you need it for something?

Josias

> 
> Cheers
> 
> Michi
> 




More information about the Yanel-development mailing list