[Yanel-dev] What is setExpression() method good for?
Michael Wechner
michael.wechner at wyona.com
Wed May 7 09:15:52 CEST 2008
Josias Thöny wrote:
> Michael Wechner wrote:
>
>> Hi
>>
>> What is the setExpression() method of the class
>>
>> src/core/java/org/wyona/yanel/core/workflow/Condition.java
>
>
> This method is used when a workflow configuration is read from a file
> and the workflow engine is built. The expression of a condition is the
> text content of a <condition> element, e.g. "write" in the following
> example:
>
> <condition
> class="org.wyona.yanel.impl.workflow.RoleCondition">write</condition>
>
> Maybe this method should not be part of the interface, but each
> condition implementation should read the condition element itself.
yes, I would rather consider this condition specific, whereas I could
imagine as a utility method of a default implementation it would make a
lot of sense
WDYT?
Cheers
Michi
>
> josias
>
>>
>> good for?
>>
>> Thanks
>>
>> Michi
>>
>
>
--
Michael Wechner
Wyona - Open Source Content Management - Yanel, Yulup
http://www.wyona.com
michael.wechner at wyona.com, michi at apache.org
+41 44 272 91 61
More information about the Yanel-development
mailing list