[werkflow-user] Estrange behaviour in jelly action

Leonardo <[email protected]> 18 Sep 2003 08:43:25 -0300
Newsgroups gmane.comp.java.werkflow
Organization WIdesoft
Message-ID <1063885404.709.5.camel@leonardo>
Hi guys,
	I did a simple werkflow xml file as following : 
<processes xmlns="werkflow:basic"
           xmlns:j="jelly:core"
           xmlns:jelly="werkflow:jelly"
           xmlns:java="werkflow:java"
           xmlns:python="werkflow:python">


    <message-types>
        <message-type id="my.entry">
            <python:selector type="werkflow.test.MyArray"/>
        </message-type>
    </message-types>


    <process id="my"
             initiation="message">

        <attributes>
            <attribute id="some">
                <java:attr-type type="java.lang.String"/>
            </attribute>
        </attributes>

        <sequence>
            <receive type="my.entry">
                <jelly:action>
                    <j:set var="title" value="${message.some}"/>
                    <j:set var="do" value="false" />
                </jelly:action>
            </receive>
            <jelly:log message="received: ${title} "/>
            <java:action>
                import java.util.Date;
                System.err.println( new Date() + " :: waiting for action
for: " + title);
            </java:action>
            <jelly:action>
                <j:choose>
                    <j:when test="${title}=='OK'">
                        <j:set var="do" value="isOK" />
                    </j:when>
                    <j:otherwise>
                        <j:set var="do" value="notOK" />
                    </j:otherwise>
                </j:choose>
            </jelly:action>
            <jelly:log message="Current Status is : ${do} "/>
        </sequence>

    </process>

</processes>

It is basically a copy of blog example. I send a message of type
werkflow.test.MyArray that contains only methods setSome(String) and
getSome():String. The getSome() returns a hardcoded String "OK". 
The execution goes fine but the jelly:log at the end prints "Current
Status is notOK" . What is wrong ? The title variable contains value
"OK". Can someone help-me ? Thanks in advance

Leonardo