Hi John,
I tried with other permuations and combinations. But I see while recurring call to subprocess works fine ( it holds the current data). Calling parent process ( 1st process of the workflow) , current data is lost..

Is it a defect or there is someworakaround?

Thanks & Regards
JP


JP Singh <[EMAIL PROTECTED]> wrote:
Date: Mon, 5 Jun 2006 23:49:54 -0700 (PDT)
From: JP Singh <[EMAIL PROTECTED]>
To: [email protected]
Subject: [OpenWFE-users] calling parent process


Hi John,

I see an interesting situation. When I thought everything is fine it was not.

While calling a child process from parent process all the variables from parent workitem to child workitem are passed with current value.

Whereas calling parent process from child process erases all values. In effect it starts a fresh problem. I have tried to send the values like this:

<subprocess ref="docflow" 
fields="author_name=(${field:customer_name})"/>

Hoever it does not work.

I am pasting the PDL below:

?xml version="1.0" encoding="UTF-8"?>
<process-definition
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"

xsi:noNamespaceSchemaLocation="http://www.openwfe.org/flowdef_r1.5.0.xsd"
name="docflow"

revision="1.0">

<description language="default">
concurrence example base version working littlebit don't change
</description>

<sequence>
<set field="author_name" value="fill this field" />
<set field="FilePath" value="" type="string" />
<set field="Name" value=" " type="string"/>
<set field="FileName" value="" type="string" />
<set field="approved1" value="true" type="boolean" />
<set field="approved2" value="false" type="boolean" />
<set field="sentdgn" value="false" type="boolean" />
<cursor>
<loop>
<participant ref="designer" filter="derw" />
<participant ref="reviewer1" filter="re1rw"/>
<until>
<equals field-value="approved1" other-value="true"/>
</until>
</loop>
<cursor>
<loop>
<participant
ref="reviewer2" filter="re2rw"/>
<subprocess ref="final-round"/>
<until>
<equals field-value="approved2" other-value="true" />
</until>
</loop>
</cursor>
</cursor>
</sequence>

<process-definition name="final-round">
<cursor>
<if>
<equals field-value="approved2" other-value="false" />
<if>
<equals field-value="sentdgn" other-value="true" />
<sequence>
<participant ref="reviewer1" filter="designer-filter" forget="true"/>
<!--<participant ref="designer" filter="derw"/> -->
<subprocess ref="docflow"
fields="author_name=(${field:customer_name})"/>
<!--<subprocess ref="de-re1" /> -->
</sequence>
<sequence>
<participant ref="reviewer1" filter="re1rw" />
<subprocess ref="docflow"

fields="author_name=(${field:customer_name})"/>
</sequence>
</if>
</if>
</cursor>
</process-definition>


<filter-definition name="designer-filter" type="closed" add="false"
remove="false">
<field regex="[aA-zZ]*" permissions="r" />
</filter-definition>
<filter-definition name="derw" type="closed" add="false"
remove="false">
<field regex="FilePath" permissions="rw"/>
<field regex="FileName" permissions="rw"/>
<field regex="Name" permissions="rw"/>
<field regex="author_name" permissions="rw" />
<field regex="approved1" permissions="r" />
<field regex="approved2" permissions="r" />
<field regex="sentdgn" permissions="r" />
<field regex="reviewer1_comments" permissions="r" />
<field regex="reviewer2_comments" permissions="r" />
</filter-definition>
<filter-definition
name="re1rw" type="closed" add="false"
remove="false">
<field regex="FilePath" permissions="r"/>
<field regex="FileName" permissions="r"/>
<field regex="Name" permissions="r"/>
<field regex="author_name" permissions="r" />
<field regex="approved1" permissions="rw" />
<field regex="reviewer1_comments" permissions="rw" />
<field regex="reviewer2_comments" permissions="r" />
<field regex="approved2" permissions="r" />
<field regex="sentdgn" permissions="r" />
</filter-definition>
<filter-definition name="re2rw" type="closed" add="false"
remove="false">
<field regex="FilePath" permissions="r"/>
<field regex="FileName" permissions="r"/>
<field regex="Name" permissions="r"/>
<field regex="author_name" permissions="r" />
<field regex="approved1" permissions="w" />
<field regex="reviewer1_comments" permissions="w"
/>
<field regex="reviewer2_comments" permissions="rw" />
<field regex="approved2" permissions="rw" />
<field regex="sentdgn" permissions="rw" />
</filter-definition>
</process-definition>

Is there any way to call parent process ad send the current values.

Thanks & Regards
JP
John Mettraux <[EMAIL PROTECTED]> wrote:
On 6/5/06, JP Singh wrote:
> Hi John,
> I did something like this
>
>
>
> and when I tried to press proceed for the workitem, I got following
> error.Rest looks fine.
>
> This does not cause any harm but don't you feel the edit button should
> be disabled for the workitems whose forget field has been set to true?

Well,

the webclient is just a debugging tool. You could maybe fill a feature
request for that :
http://sourceforge.net/tracker/?group_id=54621&atid=474247

But I think that the real point is that upon 'proceed', the workitem
should get discarded silently. That would be more natural.


Best regards,

--
John Mettraux -///- http://jmettraux.openwfe.org


_______________________________________________
OpenWFE - Open source WorkFlow Engine
OpenWFE-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openwfe-users

__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com _______________________________________________
OpenWFE - Open source WorkFlow Engine
OpenWFE-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openwfe-users

__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com

_______________________________________________
OpenWFE - Open source WorkFlow Engine
OpenWFE-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openwfe-users
_______________________________________________
OpenWFE - Open source WorkFlow Engine
OpenWFE-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openwfe-users

Reply via email to