[Yanel-dev] What is setExpression() method good for?
Josias Thöny
josias.thoeny at wyona.com
Wed May 7 09:19:34 CEST 2008
Michael Wechner wrote:
> 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?
+1
josias
>
> Cheers
>
> Michi
>
>>
>> josias
>>
>>>
>>> good for?
>>>
>>> Thanks
>>>
>>> Michi
>>>
>>
>>
>
>
--
Josias Thöny
Wyona - Open Source Content Management
http://www.wyona.com
More information about the Yanel-development
mailing list