Hello All,
thanks for the new release for the process definition :) I was testing it, and I found some inconsistences with  the old examples that comes in the workflow-definitions folder. So it must be that the examples are not synchronized.
Well, below you can see some of them, most of them satisfy the schema after you change <workflow-definition> by <process-definition>.
___________________________________________________________________________


flow__1.6.xml

<process-definition name="flow" revision="1.6" xmlns:tsd="http://namespaces.softwareag.com/tamino/TaminoSchemaDefinition" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="C:\Documents and Settings\Administrator\Desktop\esquema\flowdef_r1.6.1.tsd">
    <description>
    a subprocess is some kind of 'routine' or 'procedure'. It allows you to decompose the activities in a flow.
    </description>
    <!-- main -->
    <sequence>
        <!-- poor role-charly is the ham between two slices of bread -->
        <subprocess ref="review"/>
        <participant ref="role-charly"/>
        <subprocess ref="review"/>
    </sequence>
    <!-- activity definitions -->
    <subprocess-definition name="review">
        <concurrence>
            <participant ref="role-alpha"/>
            <participant ref="role-bravo"/>
        </concurrence>
    </subprocess-definition>
</process-definition>

I think the problem is here ... <subprocess-definition name="review">, it should be a process-definition tag
________________________________________________________________________________________________________________


<?xml version="1.0" encoding="UTF-8"?>
<!--
    A flowdef that determines if a field of the workitem is defined (e.g. has
    a value) or undefined.

    $Id: flow__1.3b.xml,v 1.1 2005/02/12 10:16:27 jmettraux Exp $
-->
<process-definition name="flow" revision="1.3b" xmlns:tsd="http://namespaces.softwareag.com/tamino/TaminoSchemaDefinition" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="C:\Documents and Settings\Administrator\Desktop\esquema\flowdef_r1.6.1.tsd">
    <description>
    Another 'if', but this time, the non-existence of a field in the workitem is tested.
    As usual, role-charly finally gets the workitem.
    </description>
    <sequence>
        <if>
            <not>
                <defined field-value="a_field_name"/>
            </not>
            <participant ref="role-alpha"/>
            <participant ref="role-bravo"/>
        </if>
        <participant ref="role-charly"/>
    </sequence>
</process-definition>


the problem is the <if><not><defined>---> i think (according the schema) it should be    <if><undefined field-value="a_field_name"/>

___________________________________________________________________________________________________________________________________
flow flow__1.15b.xml

<concurrence>
        <when>
            <defined variable-value="/saved-workitem"/>
            <sequence> ...
<defined> doesn't exist in the schema, so we could use (without schema changes but not the best solution)
<concurrence>
        <when>
            <not>
                <undefined variable-value="/saved-workitem"/>
            </not>
            <sequence>
____________________________________________________________________________________________________________________________________

flow__1.12.xml
same problem that flow__1.15b.xml

_________________________________________________________________________________________________________________________

If the engine is not using right now the process definition, how can you know if a process definition file that an user is defining is ok or not... Could you give me some directions where is that code?
Thanks in advance...
My best regard, Romina


--
Saludos, Romina

Reply via email to